Home / Function/ Benchmark_Memory_Get_Asserted() — fiber Function Reference

Benchmark_Memory_Get_Asserted() — fiber Function Reference

Architecture documentation for the Benchmark_Memory_Get_Asserted() function in memory_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  f19b4079_a4c0_aae9_199f_9d689923ac3b["Benchmark_Memory_Get_Asserted()"]
  5fc515d5_e762_b957_5588_68b2d14010d3["memory_test.go"]
  f19b4079_a4c0_aae9_199f_9d689923ac3b -->|defined in| 5fc515d5_e762_b957_5588_68b2d14010d3
  style f19b4079_a4c0_aae9_199f_9d689923ac3b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

internal/storage/memory/memory_test.go lines 381–392

func Benchmark_Memory_Get_Asserted(b *testing.B) {
	testStore := New()
	err := testStore.Set("john", []byte("doe"), 0)
	require.NoError(b, err)

	b.ReportAllocs()

	for b.Loop() {
		_, err := testStore.Get("john")
		require.NoError(b, err)
	}
}

Subdomains

Frequently Asked Questions

What does Benchmark_Memory_Get_Asserted() do?
Benchmark_Memory_Get_Asserted() is a function in the fiber codebase, defined in internal/storage/memory/memory_test.go.
Where is Benchmark_Memory_Get_Asserted() defined?
Benchmark_Memory_Get_Asserted() is defined in internal/storage/memory/memory_test.go at line 381.

Analyze Your Own Codebase

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

Try Supermodel Free