Home / Function/ BenchmarkState_GetUint() — fiber Function Reference

BenchmarkState_GetUint() — fiber Function Reference

Architecture documentation for the BenchmarkState_GetUint() function in state_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  c3907cdb_38fd_b997_0bf5_b1ddd47ea580["BenchmarkState_GetUint()"]
  040d1690_51eb_9416_23b2_7b1543e92d65["state_test.go"]
  c3907cdb_38fd_b997_0bf5_b1ddd47ea580 -->|defined in| 040d1690_51eb_9416_23b2_7b1543e92d65
  style c3907cdb_38fd_b997_0bf5_b1ddd47ea580 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

state_test.go lines 1035–1050

func BenchmarkState_GetUint(b *testing.B) {
	b.ReportAllocs()
	st := newState()
	n := 1000
	// Prepopulate the state with uint values.
	for i := range n {
		key := "key" + strconv.Itoa(i)
		st.Set(key, uint(i)) //nolint:gosec // G115 - test values are small
	}
	i := 0
	for b.Loop() {
		i++
		key := "key" + strconv.Itoa(i%n)
		st.GetUint(key)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does BenchmarkState_GetUint() do?
BenchmarkState_GetUint() is a function in the fiber codebase, defined in state_test.go.
Where is BenchmarkState_GetUint() defined?
BenchmarkState_GetUint() is defined in state_test.go at line 1035.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free