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

Function BenchmarkNewCustomEnvEager

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

Source from the content-addressed store, hash-verified

1274}
1275
1276func BenchmarkNewCustomEnvEager(b *testing.B) {
1277 for i := 0; i < b.N; i++ {
1278 _, err := NewCustomEnv(StdLib(), EagerlyValidateDeclarations(true))
1279 if err != nil {
1280 b.Fatalf("NewCustomEnv() failed: %v", err)
1281 }
1282 }
1283}
1284
1285func BenchmarkNewEnvLazy(b *testing.B) {
1286 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