MCPcopy Create free account
hub / github.com/evilsocket/sum / BenchmarkCompile

Function BenchmarkCompile

service/compiled_benchmark_test.go:64–70  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

62)
63
64func BenchmarkCompile(b *testing.B) {
65 for i := 0; i < b.N; i++ {
66 if _, err := compile(&testOracle); err != nil {
67 b.Fatal(err)
68 }
69 }
70}
71
72func BenchmarkCompiledIs(b *testing.B) {
73 oracle := pb.Oracle{Name: "simple", Code: "function simple(){ return 0; }"}

Callers

nothing calls this directly

Calls 1

compileFunction · 0.85

Tested by

no test coverage detected