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