Skip to content

bench: add legacy-vs-current implementation comparison benchmarks for SimpleMapStore#222

Merged
milindsrivastava1997 merged 2 commits intomainfrom
bench-simple-store-comparison
Mar 24, 2026
Merged

bench: add legacy-vs-current implementation comparison benchmarks for SimpleMapStore#222
milindsrivastava1997 merged 2 commits intomainfrom
bench-simple-store-comparison

Conversation

@zzylol
Copy link
Copy Markdown
Contributor

@zzylol zzylol commented Mar 24, 2026

Summary

  • Rewrites simple_store_bench.rs to benchmark all four store variants: LegacyPerKey, LegacyGlobal, CurrentPerKey, CurrentGlobal
  • Adds StoreKind and AccumulatorKind enums for clean parameterisation across both SumAccumulator and DatasketchesKLLAccumulator
  • Covers insert (batch size, num agg IDs), range query, exact query, store-analyze, concurrent reads/writes, mixed read-write, cleanup overhead, query patterns, label cardinality, and multi-agg-id scenarios

Test plan

  • cargo bench -p query_engine_rust --bench simple_store_bench runs without errors
  • All four StoreKind variants produce results in target/criterion/

🤖 Generated with Claude Code

zz_y and others added 2 commits March 23, 2026 19:53
Rewrites simple_store_bench.rs to benchmark all four store variants
(LegacyPerKey, LegacyGlobal, NewPerKey, NewGlobal) across insert,
range query, exact query, store-analyze, concurrent reads/writes,
mixed read-write, cleanup overhead, query patterns, label cardinality,
and multi-agg-id scenarios.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
NewPerKey/NewGlobal implied a not-yet-merged implementation; renaming
to CurrentPerKey/CurrentGlobal better reflects that these benchmark
the current SimpleMapStore dispatch path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@zzylol zzylol changed the title bench: add legacy-vs-new comparison benchmarks for SimpleMapStore bench: add legacy-vs-current implementation comparison benchmarks for SimpleMapStore Mar 24, 2026
@milindsrivastava1997 milindsrivastava1997 merged commit 42311f2 into main Mar 24, 2026
4 checks passed
@milindsrivastava1997 milindsrivastava1997 deleted the bench-simple-store-comparison branch March 24, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants