MCPcopy Create free account
hub / github.com/codesenberg/bombardier / BenchmarkErrorMapGet

Function BenchmarkErrorMapGet

error_map_test.go:70–80  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

68}
69
70func BenchmarkErrorMapGet(b *testing.B) {
71 m := newErrorMap()
72 err := errors.New("benchmark")
73 m.add(err)
74 b.ResetTimer()
75 b.RunParallel(func(pb *testing.PB) {
76 for pb.Next() {
77 m.get(err)
78 }
79 })
80}

Callers

nothing calls this directly

Calls 3

newErrorMapFunction · 0.85
addMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected