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)
}
}