Home / Function/ Benchmark_Memory_Get() — fiber Function Reference

Benchmark_Memory_Get() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

internal/storage/memory/memory_test.go lines 354–364

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

	b.ReportAllocs()

	for b.Loop() {
		_, _ = testStore.Get("john") //nolint:errcheck // error not needed for benchmark
	}
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free