BenchmarkState_GetComplex64() — fiber Function Reference
Architecture documentation for the BenchmarkState_GetComplex64() function in state_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 5344eccf_fa8a_b0a7_e28a_02aafeac5632["BenchmarkState_GetComplex64()"] 040d1690_51eb_9416_23b2_7b1543e92d65["state_test.go"] 5344eccf_fa8a_b0a7_e28a_02aafeac5632 -->|defined in| 040d1690_51eb_9416_23b2_7b1543e92d65 style 5344eccf_fa8a_b0a7_e28a_02aafeac5632 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
state_test.go lines 1222–1238
func BenchmarkState_GetComplex64(b *testing.B) {
b.ReportAllocs()
st := newState()
n := 1000
// Prepopulate the state with complex64 values.
for i := range n {
key := "key" + strconv.Itoa(i)
// Create a complex64 value with both real and imaginary parts.
st.Set(key, complex(float32(i), float32(i)))
}
i := 0
for b.Loop() {
i++
key := "key" + strconv.Itoa(i%n)
st.GetComplex64(key)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does BenchmarkState_GetComplex64() do?
BenchmarkState_GetComplex64() is a function in the fiber codebase, defined in state_test.go.
Where is BenchmarkState_GetComplex64() defined?
BenchmarkState_GetComplex64() is defined in state_test.go at line 1222.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free