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

Function Benchmark5Params

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

Source from the content-addressed store, hash-verified

41}
42
43func Benchmark5Params(B *testing.B) {
44 DefaultWriter = os.Stdout
45 router := New()
46 router.Use(func(c *Context) {})
47 router.GET("/param/:param1/:params2/:param3/:param4/:param5", func(c *Context) {})
48 runRequest(B, router, http.MethodGet, "/param/path/to/parameter/john/12345")
49}
50
51func BenchmarkOneRouteJSON(B *testing.B) {
52 router := New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.85
runRequestFunction · 0.85
UseMethod · 0.65
GETMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…