MCPcopy Create free account
hub / github.com/expr-lang/expr / BenchmarkCountGtZeroNoMatch

Function BenchmarkCountGtZeroNoMatch

optimizer/count_any_test.go:137–145  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

135}
136
137func BenchmarkCountGtZeroNoMatch(b *testing.B) {
138 program, _ := expr.Compile(`count(1..1000, # == 0) > 0`)
139 var out any
140 b.ResetTimer()
141 for n := 0; n < b.N; n++ {
142 out, _ = vm.Run(program, nil)
143 }
144 _ = out
145}
146
147// Benchmarks for count >= 1 → any
148func BenchmarkCountGteOneEarlyMatch(b *testing.B) {

Callers

nothing calls this directly

Calls 2

CompileFunction · 0.92
RunFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…