MCPcopy
hub / github.com/labstack/echo / BenchmarkServeHTTP_Param

Function BenchmarkServeHTTP_Param

perf_bench_test.go:44–49  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

42}
43
44func BenchmarkServeHTTP_Param(b *testing.B) {
45 e := New()
46 e.GET("/users/:id/books/:bid", func(c *Context) error { return c.NoContent(http.StatusOK) })
47 req := httptest.NewRequest(http.MethodGet, "/users/42/books/7", nil)
48 benchServe(b, e, req)
49}
50
51// Exercises the global middleware chain (finding #1). Five pass-through middlewares.
52func BenchmarkServeHTTP_Middleware(b *testing.B) {

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
benchServeFunction · 0.85
NoContentMethod · 0.80
GETMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…