Skip to content

test(bench): add ScaleN scalability suite and fix CI filter - #40

Merged
sentomk merged 1 commit into
mainfrom
bench/scale-and-fix-ci
Jul 31, 2026
Merged

sentomk merged 1 commit into
mainfrom
bench/scale-and-fix-ci

Conversation

@sentomk

@sentomk sentomk commented Jul 31, 2026

Copy link
Copy Markdown
Owner

Summary

Add a variant dispatch scalability benchmark suite (ScaleN: 4/8/16/32 alternatives) and fix the CI benchmark filter that caused benchmarks to produce empty JSON.

Changes

  • Fixed --benchmark_filter regex: removed $ anchors that prevented matching (Google Benchmark appends /min_time:.../repeats:... suffixes to names).
  • Added bench_scale.cpp: measures Patternia vs std::visit vs switch(index) across 4, 8, 16, and 32 variant alternatives using a realistic event-type hierarchy.
  • CI now builds and runs both ptn_bench and ptn_bench_scale, producing two separate JSON result files and two charts.
  • Filtered out low-value literal-match scenarios from the main chart; ScaleN gets its own dedicated chart.
  • Dropped LiteralMatch* from CI filter (pure int literal matching is switch's home turf and dilutes the comparison).

Testing

  • Verified locally: both binaries compile, ScaleN produces 12 benchmark points (3 implementations x 4 scales).
  • CI YAML validated.
  • clang-format clean.

@sentomk sentomk changed the title bench: add ScaleN scalability suite and fix CI filter bench(ci): add ScaleN scalability suite and fix filter Jul 31, 2026
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sentomk
sentomk force-pushed the bench/scale-and-fix-ci branch from 1b49289 to 51daeab Compare July 31, 2026 03:44
@sentomk sentomk changed the title bench(ci): add ScaleN scalability suite and fix filter test(bench): add ScaleN scalability suite and fix CI filter Jul 31, 2026
@sentomk
sentomk force-pushed the bench/scale-and-fix-ci branch from 51daeab to b00c44e Compare July 31, 2026 03:46
@sentomk
sentomk merged commit e693c83 into main Jul 31, 2026
22 checks passed
@sentomk
sentomk deleted the bench/scale-and-fix-ci branch July 31, 2026 03:49
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.

1 participant