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