blob: 3975ec9d41366679151a44df6a893e39c0677cb8 [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.Load()
}
}