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

Function BenchmarkManyRoutesLast

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

Source from the content-addressed store, hash-verified

94}
95
96func BenchmarkManyRoutesLast(B *testing.B) {
97 router := New()
98 router.Any("/ping", func(c *Context) {})
99 runRequest(B, router, "OPTIONS", "/ping")
100}
101
102func Benchmark404(B *testing.B) {
103 router := New()

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
runRequestFunction · 0.85
AnyMethod · 0.65

Tested by

no test coverage detected