MCPcopy
hub / github.com/gin-gonic/gin / BenchmarkOneRoute

Function BenchmarkOneRoute

benchmarks_test.go:14–18  ·  view source on GitHub ↗
(B *testing.B)

Source from the content-addressed store, hash-verified

12)
13
14func BenchmarkOneRoute(B *testing.B) {
15 router := New()
16 router.GET("/ping", func(c *Context) {})
17 runRequest(B, router, http.MethodGet, "/ping")
18}
19
20func BenchmarkRecoveryMiddleware(B *testing.B) {
21 router := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
runRequestFunction · 0.85
GETMethod · 0.65

Tested by

no test coverage detected