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

Function BenchmarkServeHTTP_Static

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

Source from the content-addressed store, hash-verified

35}
36
37func BenchmarkServeHTTP_Static(b *testing.B) {
38 e := New()
39 e.GET("/users/profile", func(c *Context) error { return c.NoContent(http.StatusOK) })
40 req := httptest.NewRequest(http.MethodGet, "/users/profile", nil)
41 benchServe(b, e, req)
42}
43
44func BenchmarkServeHTTP_Param(b *testing.B) {
45 e := New()

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…