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

Function BenchmarkServeHTTP_String

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

Source from the content-addressed store, hash-verified

62}
63
64func BenchmarkServeHTTP_String(b *testing.B) {
65 e := New()
66 e.GET("/", func(c *Context) error { return c.String(http.StatusOK, "Hello, World!") })
67 req := httptest.NewRequest(http.MethodGet, "/", nil)
68 benchServe(b, e, req)
69}
70
71func BenchmarkServeHTTP_JSON(b *testing.B) {
72 e := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
benchServeFunction · 0.85
GETMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…