Home / Function/ Benchmark_Memory_SetAndDelete_Parallel() — fiber Function Reference

Benchmark_Memory_SetAndDelete_Parallel() — fiber Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

internal/storage/memory/memory_test.go lines 421–432

func Benchmark_Memory_SetAndDelete_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
			_ = testStore.Delete("john")                //nolint:errcheck // error not needed for benchmark
		}
	})
}

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free