| 2340 | } |
| 2341 | |
| 2342 | func Benchmark_Router_Handler_Unescape_Parallel(b *testing.B) { |
| 2343 | app := New() |
| 2344 | app.config.UnescapePath = true |
| 2345 | registerDummyRoutes(app) |
| 2346 | app.Delete("/créer", func(_ Ctx) error { |
| 2347 | return nil |
| 2348 | }) |
| 2349 | appHandler := app.Handler() |
| 2350 | c := &fasthttp.RequestCtx{} |
| 2351 | c.Request.Header.SetMethod(MethodDelete) |
| 2352 | c.URI().SetPath("/cr%C3%A9er") |
| 2353 | b.RunParallel(func(pb *testing.PB) { |
| 2354 | for pb.Next() { |
| 2355 | c.URI().SetPath("/cr%C3%A9er") |
| 2356 | appHandler(c) |
| 2357 | } |
| 2358 | }) |
| 2359 | } |
| 2360 | |
| 2361 | func Benchmark_Router_Handler_StrictRouting_Parallel(b *testing.B) { |
| 2362 | app := New() |