Skip to content

perf(storage): add comprehensive benchmarks for memory storage operat… - #33

Merged
AlpherJang merged 1 commit into
mainfrom
32-benchmark-test
Mar 26, 2026
Merged

AlpherJang merged 1 commit into
mainfrom
32-benchmark-test

Conversation

@AlpherJang

Copy link
Copy Markdown
Contributor

…ions

  • Add benchmark suite in pkg/storage/memory/memory_bench_test.go covering all core storage operations
  • Include benchmarks for Insert, Get, Update, Delete, and ListPrefix operations
  • Add parallel benchmarks to measure concurrent access patterns
  • Document benchmark results with performance metrics (ops/sec, ns/op, allocations)
  • Add Benchmark section to README with results table and key performance observations
  • Highlight that Get operations are lock-free and scale well under parallelism (~52M ops/sec)
  • Note that Insert is the current bottleneck due to write lock on prefixList (~3M ops/sec)
  • Provide instructions for running benchmarks locally

…ions

- Add benchmark suite in `pkg/storage/memory/memory_bench_test.go` covering all core storage operations
- Include benchmarks for Insert, Get, Update, Delete, and ListPrefix operations
- Add parallel benchmarks to measure concurrent access patterns
- Document benchmark results with performance metrics (ops/sec, ns/op, allocations)
- Add Benchmark section to README with results table and key performance observations
- Highlight that Get operations are lock-free and scale well under parallelism (~52M ops/sec)
- Note that Insert is the current bottleneck due to write lock on prefixList (~3M ops/sec)
- Provide instructions for running benchmarks locally
@AlpherJang AlpherJang linked an issue Mar 26, 2026 that may be closed by this pull request
@AlpherJang AlpherJang added the enhancement New feature or request label Mar 26, 2026
@AlpherJang AlpherJang self-assigned this Mar 26, 2026
@AlpherJang
AlpherJang merged commit 881d3cf into main Mar 26, 2026
2 checks passed
@AlpherJang
AlpherJang deleted the 32-benchmark-test branch March 28, 2026 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmark test

1 participant