Home / Function/ Benchmark_Router_NotFound_Parallel() — fiber Function Reference

Benchmark_Router_NotFound_Parallel() — fiber Function Reference

Architecture documentation for the Benchmark_Router_NotFound_Parallel() function in router_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  53e47987_05d5_71eb_39ee_0989a9f9bf12["Benchmark_Router_NotFound_Parallel()"]
  326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"]
  53e47987_05d5_71eb_39ee_0989a9f9bf12 -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537
  96c0a661_d778_b8e3_0e6d_27128de9df0a["registerDummyRoutes()"]
  53e47987_05d5_71eb_39ee_0989a9f9bf12 -->|calls| 96c0a661_d778_b8e3_0e6d_27128de9df0a
  style 53e47987_05d5_71eb_39ee_0989a9f9bf12 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

router_test.go lines 2086–2104

func Benchmark_Router_NotFound_Parallel(b *testing.B) {
	b.ReportAllocs()
	app := New()
	app.Use(func(c Ctx) error {
		return c.Next()
	})
	registerDummyRoutes(app)
	appHandler := app.Handler()
	c := &fasthttp.RequestCtx{}
	c.Request.Header.SetMethod("DELETE")
	c.URI().SetPath("/this/route/does/not/exist")
	b.RunParallel(func(pb *testing.PB) {
		for pb.Next() {
			appHandler(c)
		}
	})
	require.Equal(b, 404, c.Response.StatusCode())
	require.Equal(b, "Not Found", string(c.Response.Body()))
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Benchmark_Router_NotFound_Parallel() do?
Benchmark_Router_NotFound_Parallel() is a function in the fiber codebase, defined in router_test.go.
Where is Benchmark_Router_NotFound_Parallel() defined?
Benchmark_Router_NotFound_Parallel() is defined in router_test.go at line 2086.
What does Benchmark_Router_NotFound_Parallel() call?
Benchmark_Router_NotFound_Parallel() calls 1 function(s): registerDummyRoutes.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free