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

Function BenchmarkNewCustomEnvLazy

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

Source from the content-addressed store, hash-verified

1103}
1104
1105func BenchmarkNewCustomEnvLazy(b *testing.B) {
1106 b.ResetTimer()
1107 for i := 0; i < b.N; i++ {
1108 _, err := NewCustomEnv(StdLib(), EagerlyValidateDeclarations(false))
1109 if err != nil {
1110 b.Fatalf("NewCustomEnv() failed: %v", err)
1111 }
1112 }
1113}
1114
1115func BenchmarkNewCustomEnvEager(b *testing.B) {
1116 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