Sign in
fuchsia
/
third_party
/
github.com
/
smartystreets
/
go-disruptor
/
df0a7a1f37910af4e67c997076405b622e552407
/
.
/
barrier_test.go
blob: e17d31afcb92f649efc871a079af28da87e2729b [
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.Load()
}
}