Benchmark_Ctx_AcquireReleaseFlow_Parallel() — fiber Function Reference
Architecture documentation for the Benchmark_Ctx_AcquireReleaseFlow_Parallel() function in app_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD a1745ca9_104d_2eea_83be_0949278852ee["Benchmark_Ctx_AcquireReleaseFlow_Parallel()"] e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"] a1745ca9_104d_2eea_83be_0949278852ee -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5 e4d2e944_2952_2d4c_6d34_e91a28cf2328["acquireDefaultCtxForAppBenchmark()"] a1745ca9_104d_2eea_83be_0949278852ee -->|calls| e4d2e944_2952_2d4c_6d34_e91a28cf2328 style a1745ca9_104d_2eea_83be_0949278852ee fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
app_test.go lines 2914–2939
func Benchmark_Ctx_AcquireReleaseFlow_Parallel(b *testing.B) {
app := New()
b.Run("withoutRequestCtx", func(b *testing.B) {
b.ReportAllocs()
b.RunParallel(func(pb *testing.PB) {
fctx := &fasthttp.RequestCtx{}
for pb.Next() {
c := acquireDefaultCtxForAppBenchmark(b, app, fctx)
app.ReleaseCtx(c)
}
})
})
b.Run("withRequestCtx", func(b *testing.B) {
b.ReportAllocs()
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
c := acquireDefaultCtxForAppBenchmark(b, app, &fasthttp.RequestCtx{})
app.ReleaseCtx(c)
}
})
})
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_Ctx_AcquireReleaseFlow_Parallel() do?
Benchmark_Ctx_AcquireReleaseFlow_Parallel() is a function in the fiber codebase, defined in app_test.go.
Where is Benchmark_Ctx_AcquireReleaseFlow_Parallel() defined?
Benchmark_Ctx_AcquireReleaseFlow_Parallel() is defined in app_test.go at line 2914.
What does Benchmark_Ctx_AcquireReleaseFlow_Parallel() call?
Benchmark_Ctx_AcquireReleaseFlow_Parallel() calls 1 function(s): acquireDefaultCtxForAppBenchmark.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free