MCPcopy Create free account
hub / github.com/zalando/skipper / initBenchmark

Function initBenchmark

routing/matcher_test.go:272–275  ·  view source on GitHub ↗
(b *testing.B, init func())

Source from the content-addressed store, hash-verified

270}
271
272func initBenchmark(b *testing.B, init func()) {
273 init()
274 b.ResetTimer()
275}
276
277func newRequest(method, path string) (*http.Request, error) {
278 u := fmt.Sprintf("https://example.com%s", path)

Callers 5

BenchmarkPathTree1Function · 0.85
BenchmarkPathTree2Function · 0.85
BenchmarkPathTree3Function · 0.85
BenchmarkPathTree4Function · 0.85

Calls 1

initFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…