MCPcopy Create free account
hub / github.com/cel-expr/cel-go / BenchmarkNewCustomEnvLazy

Function BenchmarkNewCustomEnvLazy

cel/env_test.go:1266–1274  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1264}
1265
1266func BenchmarkNewCustomEnvLazy(b *testing.B) {
1267 b.ResetTimer()
1268 for i := 0; i < b.N; i++ {
1269 _, err := NewCustomEnv(StdLib(), EagerlyValidateDeclarations(false))
1270 if err != nil {
1271 b.Fatalf("NewCustomEnv() failed: %v", err)
1272 }
1273 }
1274}
1275
1276func BenchmarkNewCustomEnvEager(b *testing.B) {
1277 for i := 0; i < b.N; i++ {

Callers

nothing calls this directly

Calls 3

NewCustomEnvFunction · 0.85
StdLibFunction · 0.85

Tested by

no test coverage detected