Benchmark_Router_WithCompression() — fiber Function Reference
Architecture documentation for the Benchmark_Router_WithCompression() function in router_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD be068800_57a7_7838_998d_6b06a8f34cb0["Benchmark_Router_WithCompression()"] 326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"] be068800_57a7_7838_998d_6b06a8f34cb0 -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537 style be068800_57a7_7838_998d_6b06a8f34cb0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
router_test.go lines 1605–1625
func Benchmark_Router_WithCompression(b *testing.B) {
app := New()
handler := func(c Ctx) error {
return c.Next()
}
app.Get("/", handler)
app.Get("/", handler)
app.Get("/", handler)
app.Get("/", handler)
app.Get("/", handler)
app.Get("/", handler)
appHandler := app.Handler()
c := &fasthttp.RequestCtx{}
c.Request.Header.SetMethod(MethodGet)
c.URI().SetPath("/")
for b.Loop() {
appHandler(c)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_Router_WithCompression() do?
Benchmark_Router_WithCompression() is a function in the fiber codebase, defined in router_test.go.
Where is Benchmark_Router_WithCompression() defined?
Benchmark_Router_WithCompression() is defined in router_test.go at line 1605.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free