Benchmark_Route_Match_Root_Parallel() — fiber Function Reference
Architecture documentation for the Benchmark_Route_Match_Root_Parallel() function in router_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD c0ab90b8_fc62_a84c_7c64_5ecfb075d0e2["Benchmark_Route_Match_Root_Parallel()"] 326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"] c0ab90b8_fc62_a84c_7c64_5ecfb075d0e2 -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537 style c0ab90b8_fc62_a84c_7c64_5ecfb075d0e2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
router_test.go lines 2267–2282
func Benchmark_Route_Match_Root_Parallel(b *testing.B) {
var match bool
var params [maxParams]string
parsed := parseRoute("/")
route := &Route{use: false, root: true, star: false, path: "/", routeParser: parsed, Params: parsed.params, Path: "/", Method: "DELETE"}
route.Handlers = append(route.Handlers, func(_ Ctx) error {
return nil
})
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
match = route.match("/", "/", ¶ms)
}
})
require.True(b, match)
require.Equal(b, []string{}, params[0:len(parsed.params)])
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_Route_Match_Root_Parallel() do?
Benchmark_Route_Match_Root_Parallel() is a function in the fiber codebase, defined in router_test.go.
Where is Benchmark_Route_Match_Root_Parallel() defined?
Benchmark_Route_Match_Root_Parallel() is defined in router_test.go at line 2267.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free