Sign in
fuchsia
/
third_party
/
github.com
/
smartystreets
/
go-disruptor
/
3b15605eda808e76ea342b11e32ef49efd4daae5
/
.
/
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)
}
}