blob: ee0f2a1c1c185f45b56a60c254f3174529552e34 [file] [log] [blame]
package main
import "testing"
func BenchmarkSequenceLoad(b *testing.B) {
sequence := NewSequence()
iterations := int64(b.N)
b.ReportAllocs()
b.ResetTimer()
for i := int64(0); i < iterations; i++ {
sequence.Load()
}
}
func BenchmarkSequenceStore(b *testing.B) {
sequence := NewSequence()
iterations := int64(b.N)
b.ReportAllocs()
b.ResetTimer()
for i := int64(0); i < iterations; i++ {
sequence.Store(i)
}
}