blob: 9696429d365ee646afc0427c6a1a55bce10c1d84 [file] [log] [blame]
package disruptor
import "testing"
func BenchmarkCompositeBarrierRead(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.Read(0)
}
}