Home / Function/ Benchmark_Router_WithCompression_Parallel() — fiber Function Reference

Benchmark_Router_WithCompression_Parallel() — fiber Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  9b23f6e7_b61d_a032_7920_87ee8ebcdfa3["Benchmark_Router_WithCompression_Parallel()"]
  326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"]
  9b23f6e7_b61d_a032_7920_87ee8ebcdfa3 -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537
  style 9b23f6e7_b61d_a032_7920_87ee8ebcdfa3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

router_test.go lines 2151–2171

func Benchmark_Router_WithCompression_Parallel(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("/")
	b.RunParallel(func(pb *testing.PB) {
		for pb.Next() {
			appHandler(c)
		}
	})
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Benchmark_Router_WithCompression_Parallel() do?
Benchmark_Router_WithCompression_Parallel() is a function in the fiber codebase, defined in router_test.go.
Where is Benchmark_Router_WithCompression_Parallel() defined?
Benchmark_Router_WithCompression_Parallel() is defined in router_test.go at line 2151.

Analyze Your Own Codebase

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

Try Supermodel Free