Sign in
fuchsia
/
third_party
/
github.com
/
smartystreets
/
go-disruptor
/
36b4c2ab9bef10c2a67d1bc6e4c38b75c5e4b330
/
.
/
barrier_test.go
blob: a4e59043bb3ddb0e79b9ddcf3251b91f5b619a6a [
file
] [
log
] [
blame
]
package disruptor
import "testing"
func BenchmarkBarrierLoadSingle(b *testing.B) {
barrier := NewCursor()
iterations := int64(b.N)
b.ReportAllocs()
b.ResetTimer()
for i := int64(0); i < iterations; i++ {
barrier.LoadBarrier(0)
}
}