Home / Function/ Benchmark_Memory_Set_Parallel() — fiber Function Reference

Benchmark_Memory_Set_Parallel() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

internal/storage/memory/memory_test.go lines 318–328

func Benchmark_Memory_Set_Parallel(b *testing.B) {
	testStore := New()
	b.ReportAllocs()
	b.ResetTimer()

	b.RunParallel(func(pb *testing.PB) {
		for pb.Next() {
			_ = testStore.Set("john", []byte("doe"), 0) //nolint:errcheck // error not needed for benchmark
		}
	})
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free