(b *testing.B)
| 125 | } |
| 126 | |
| 127 | func BenchmarkCountGtZeroLargeEarlyMatch(b *testing.B) { |
| 128 | program, _ := expr.Compile(`count(1..10000, # == 1) > 0`) |
| 129 | var out any |
| 130 | b.ResetTimer() |
| 131 | for n := 0; n < b.N; n++ { |
| 132 | out, _ = vm.Run(program, nil) |
| 133 | } |
| 134 | _ = out |
| 135 | } |
| 136 | |
| 137 | func BenchmarkCountGtZeroNoMatch(b *testing.B) { |
| 138 | program, _ := expr.Compile(`count(1..1000, # == 0) > 0`) |