BenchmarkOneRouteJSON() — gin Function Reference
Architecture documentation for the BenchmarkOneRouteJSON() function in benchmarks_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 0d9c2a2b_4178_694b_a79f_2a44af539b67["BenchmarkOneRouteJSON()"] 027bc53e_0459_39d9_531f_d9717b8611dc["runRequest()"] 0d9c2a2b_4178_694b_a79f_2a44af539b67 -->|calls| 027bc53e_0459_39d9_531f_d9717b8611dc style 0d9c2a2b_4178_694b_a79f_2a44af539b67 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks_test.go lines 51–60
func BenchmarkOneRouteJSON(B *testing.B) {
router := New()
data := struct {
Status string `json:"status"`
}{"ok"}
router.GET("/json", func(c *Context) {
c.JSON(http.StatusOK, data)
})
runRequest(B, router, http.MethodGet, "/json")
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does BenchmarkOneRouteJSON() do?
BenchmarkOneRouteJSON() is a function in the gin codebase.
What does BenchmarkOneRouteJSON() call?
BenchmarkOneRouteJSON() calls 1 function(s): runRequest.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free