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

Function BenchmarkServiceRunWithoutCompression

service/service_benchmark_test.go:25–40  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

23}
24
25func BenchmarkServiceRunWithoutCompression(b *testing.B) {
26 setup(b, true, true)
27 defer teardown(b)
28
29 svc, err := New(testFolder, "", "")
30 if err != nil {
31 b.Fatal(err)
32 }
33
34 ctx := context.TODO()
35 for i := 0; i < b.N; i++ {
36 if _, err := svc.Run(ctx, &testCall); err != nil {
37 b.Fatal(err)
38 }
39 }
40}
41
42func BenchmarkServiceRunWithCompression(b *testing.B) {
43 bak := testOracle.Code

Callers

nothing calls this directly

Calls 4

setupFunction · 0.85
teardownFunction · 0.85
NewFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected