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

Function BenchmarkNewCustomEnvEager

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

Source from the content-addressed store, hash-verified

1113}
1114
1115func BenchmarkNewCustomEnvEager(b *testing.B) {
1116 for i := 0; i < b.N; i++ {
1117 _, err := NewCustomEnv(StdLib(), EagerlyValidateDeclarations(true))
1118 if err != nil {
1119 b.Fatalf("NewCustomEnv() failed: %v", err)
1120 }
1121 }
1122}
1123
1124func BenchmarkNewEnvLazy(b *testing.B) {
1125 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