blob: 1a727336b91a27d2168e6fcde36c32f205002202 [file] [log] [blame]
package disruptor
import "testing"
func BenchmarkCompositeBarrierLoad(b *testing.B) {
barrier := NewCompositeBarrier(NewCursor(), NewCursor(), NewCursor(), NewCursor())
iterations := int64(b.N)
b.ReportAllocs()
b.ResetTimer()
for i := int64(0); i < iterations; i++ {
barrier.LoadBarrier(0)
}
}