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