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

Function Benchmark404

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

Source from the content-addressed store, hash-verified

100}
101
102func Benchmark404(B *testing.B) {
103 router := New()
104 router.Any("/something", func(c *Context) {})
105 router.NoRoute(func(c *Context) {})
106 runRequest(B, router, http.MethodGet, "/ping")
107}
108
109func Benchmark404Many(B *testing.B) {
110 router := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
runRequestFunction · 0.85
NoRouteMethod · 0.80
AnyMethod · 0.65

Tested by

no test coverage detected