MCPcopy Create free account
hub / github.com/akyoto/q / BenchmarkExamples

Function BenchmarkExamples

tests/examples_test.go:39–50  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

37 }
38}
39
40func BenchmarkExamples(b *testing.B) {
41 for _, test := range examples {
42 b.Run(test.Name, func(b *testing.B) {
43 example := config.New(filepath.Join("..", "examples", test.Name))
44
45 for b.Loop() {
46 _, err := compiler.Compile(example)
47 assert.Nil(b, err)
48 }
49 })
50 }
51}

Callers

nothing calls this directly

Calls 3

NewFunction · 0.92
CompileFunction · 0.92
RunMethod · 0.80

Tested by

no test coverage detected