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