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