Home / Function/ BenchmarkState_GetUintptr() — fiber Function Reference

BenchmarkState_GetUintptr() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

state_test.go lines 1188–1203

func BenchmarkState_GetUintptr(b *testing.B) {
	b.ReportAllocs()
	st := newState()
	n := 1000
	// Prepopulate the state with uintptr values.
	for i := range n {
		key := "key" + strconv.Itoa(i)
		st.Set(key, uintptr(i))
	}
	i := 0
	for b.Loop() {
		i++
		key := "key" + strconv.Itoa(i%n)
		st.GetUintptr(key)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free