Skip to content

ci(bench): Add a standalone benchmark regression check to PR CI - #439

Open
erimatnor wants to merge 5 commits into
mainfrom
feature/bench-ci
Open

erimatnor wants to merge 5 commits into
mainfrom
feature/bench-ci

Conversation

@erimatnor

@erimatnor erimatnor commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Run all 10 standalone benchmark suites against the PR’s merge base. Both revisions are built in release mode and benchmarked back to back on the same runner so differences between runner CPUs don’t skew the comparison.
The workflow skips unrelated changes, publishes per-suite comparison tables in the Actions summary, and uploads raw JSON and logs even when a regression fails the check. Disable-check: bench can waive a regression, but not a failed build or invalid benchmark result.

Disable-check: commit-count

Reserve exit status 1 for regressions so CI can waive a benchmark
failure without hiding invalid results or an incomplete comparison.
Build both revisions on one machine so CPU differences cannot swamp
the regression thresholds. Keep the measurements and distinguish
performance regressions from failed or incomplete runs.
Publish same-runner benchmark comparisons without granting write
permissions to the job that builds and runs pull request code.
@erimatnor erimatnor changed the title ci(bench): compare standalone benchmarks on pull requests ci(bench): Add a standalone benchmark regression check to PR CI Nov 24, 2026
Keep the CPU generation consistent across benchmark runs while
leaving fork pull requests on GitHub-hosted runners.
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Coverage

Total coverage: 92%

Full report

Select the exact on-demand fleet labels so the benchmark jobs can
start and cover both x86 SIMD and ARM NEON. Keep base and head on the
same machine within each architecture.
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