Home / Function/ BenchmarkState_GetComplex128() — fiber Function Reference

BenchmarkState_GetComplex128() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

state_test.go lines 1240–1256

func BenchmarkState_GetComplex128(b *testing.B) {
	b.ReportAllocs()
	st := newState()
	n := 1000
	// Prepopulate the state with complex128 values.
	for i := range n {
		key := "key" + strconv.Itoa(i)
		// Create a complex128 value with both real and imaginary parts.
		st.Set(key, complex(float64(i), float64(i)))
	}
	i := 0
	for b.Loop() {
		i++
		key := "key" + strconv.Itoa(i%n)
		st.GetComplex128(key)
	}
}

Domain

Subdomains

Defined In

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free