feat(scripts): bench-ab.sh — one-command local perf A/B#654
Merged
Conversation
Wraps the recipe used for every perf PR this cycle: build the base ref in a throwaway $HOME worktree (tests/bench misbehave under /tmp roots), run `zig build bench -- --json` for base and working tree back-to-back on the same machine, and print the same compare-bench.py table CI posts on PRs. Defaults to base=HEAD so uncommitted perf work is one command away from a trustworthy same-machine delta. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Benchmark Regression ReportThresholds: 10.00% and 50,000 ns absolute delta
|
justrach
added a commit
that referenced
this pull request
Jul 5, 2026
Bump semver + npm to 0.2.5828 and round out the changelog entry with the six commits that landed after the draft was written: searchSymbols binary-insert + total-order tiebreak (#647, #649), word-index persist integer remap + chunked writes (#650), call-graph reverse adjacency precompute (#651), snapshot dual-write clone (#652), ranked-search line-offset resolution (#653), and scripts/bench-ab.sh (#654). No code changes beyond the version strings + CHANGELOG. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "way to compare" for perf work:
scripts/bench-ab.sh [base-ref]builds the base in a throwaway $HOME worktree, benches base and the current working tree back-to-back on the same machine, and prints the exact CI regression table (compare-bench.py, 10% + 50µs thresholds). Default base isHEAD, so measuring uncommitted work is one command. Same-machine-same-run only — the header says so, because cross-day/cross-box JSON comparisons mislead (we hit exactly that this cycle).🤖 Generated with Claude Code