Repository navigation
feat(bench): benchmark JSON schema v2 — target in history, per-series mode (BR-4b) - #26
Merged
Merged
Conversation
… mode (BR-4b) Make the published benchmark data multi-platform-ready ahead of the 3-OS graph: - history.jsonl lines now carry `target` (e.g. x86_64-linux), so once the benchmark runs on Linux/Windows/macOS the appended series don't collide. - results entries gain a `mode`: reld is `native` on Linux (wild ELF engine) and `bridge` elsewhere (lld subprocess); competitors are `reference`. - SCHEMA_VERSION 1 -> 2. Schema/metadata only: the markdown-table contract, the parser, and the chart renderer are untouched, and nothing reads back old history lines, so previously published data stays valid. Closes #25 Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Aug 7, 2026
Closed
Closed
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.
Implements a foundational slice of BR-4 (#17). Closes #25. Follows BR-4a (#24).
What
Makes the published benchmark data multi-platform-ready — the prerequisite for putting Windows/macOS reld numbers on the graph without the series colliding.
history.jsonllines now carrytarget(e.g.x86_64-linux). Previously each line was{ts, sha, results}; once the benchmark runs on Linux + Windows + macOS, the appended history would be indistinguishable by OS. Now it's keyed.resultsentries gain amode:nativefor reld on Linux (wild ELF engine),bridgefor reld on Windows/macOS (lld subprocess),referencefor the competitor linkers.SCHEMA_VERSION1 → 2.Schema/metadata only. The markdown-table contract, the parser (
parse_benchmark_log), and the chart renderers (render_jpg/render_html) are untouched — they consumeReport.rows, never the JSON — so chart output is unaffected.Compatibility
Nothing in the repo reads back existing
history.jsonlcontent:write_outputsonly appends raw text and re-truncates, and the workflow just curls the file down as bytes. Old lines (withouttarget/mode) stay valid; new lines carry the extra fields. No published-series corruption risk.Out of scope (later BR-4 slices)
The 3-OS workflow matrix, per-OS competitor sets, the Windows/macOS rustc-based reld bench path, and renderer/chart changes.
Testing
ci/benchmark_stats.py+ci/tests/test_benchmark_stats.py.python -m pytest ci/tests -q→ 13 passed.test_series_modecovers reld×{Linux,Windows,Darwin} and reference×{bfd,lld}; the write_outputs test assertsschema_version == 2andmodepresence; the history test assertstargetin every line.ci/e2e/sqlite-bridgeregression e2e still links via reld and runs (OK, exit 0) — this change doesn't touch reld.Review
Independent review returned APPROVE, confirming no history read-back / published-series corruption risk and that
series_modeis correct for all real (series, os) combinations.🤖 Generated with Claude Code