func BenchmarkBarrierNoGoroutine(b *testing.B) { for i := 0; i < b.N; i++ { var b Barrier b.Fall() <-b.Barrier() } }
func BenchmarkBarrier(b *testing.B) { for i := 0; i < b.N; i++ { var b Barrier go b.Fall() <-b.Barrier() } }