Benchmark_Communication_Flow() — fiber Function Reference
Architecture documentation for the Benchmark_Communication_Flow() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 5aac831b_6eca_62bb_f438_2b503f12c2a3["Benchmark_Communication_Flow()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] 5aac831b_6eca_62bb_f438_2b503f12c2a3 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 style 5aac831b_6eca_62bb_f438_2b503f12c2a3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 2827–2848
func Benchmark_Communication_Flow(b *testing.B) {
app := New()
app.Get("/", func(c Ctx) error {
return c.SendString("Hello, World!")
})
h := app.Handler()
fctx := &fasthttp.RequestCtx{}
fctx.Request.Header.SetMethod(MethodGet)
fctx.Request.SetRequestURI("/")
b.ReportAllocs()
for b.Loop() {
h(fctx)
}
require.Equal(b, 200, fctx.Response.Header.StatusCode())
require.Equal(b, "Hello, World!", string(fctx.Response.Body()))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_Communication_Flow() do?
Benchmark_Communication_Flow() is a function in the fiber codebase, defined in app_test.go.
Where is Benchmark_Communication_Flow() defined?
Benchmark_Communication_Flow() is defined in app_test.go at line 2827.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free