Benchmark_GenerateKey_Parallel() — fiber Function Reference
Architecture documentation for the Benchmark_GenerateKey_Parallel() function in encryptcookie_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD beb69a57_8c12_512c_4e27_c2c4c6b745ff["Benchmark_GenerateKey_Parallel()"] ac3bbef3_a1d3_d68b_64fb_619088dde10d["encryptcookie_test.go"] beb69a57_8c12_512c_4e27_c2c4c6b745ff -->|defined in| ac3bbef3_a1d3_d68b_64fb_619088dde10d style beb69a57_8c12_512c_4e27_c2c4c6b745ff fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/encryptcookie/encryptcookie_test.go lines 783–803
func Benchmark_GenerateKey_Parallel(b *testing.B) {
tests := []struct {
length int
}{
{length: 16},
{length: 24},
{length: 32},
}
for _, tt := range tests {
b.Run(strconv.Itoa(tt.length), func(b *testing.B) {
b.ReportAllocs()
b.ResetTimer()
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
GenerateKey(tt.length)
}
})
})
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does Benchmark_GenerateKey_Parallel() do?
Benchmark_GenerateKey_Parallel() is a function in the fiber codebase, defined in middleware/encryptcookie/encryptcookie_test.go.
Where is Benchmark_GenerateKey_Parallel() defined?
Benchmark_GenerateKey_Parallel() is defined in middleware/encryptcookie/encryptcookie_test.go at line 783.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free