Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Meta issue. Track everything needed to publish a separate benchmark graph for each OS — one chart for Windows, one for Linux, one for macOS — instead of today's single Linux-only chart. Sub-issues to be split out of the checklist below as work starts.
Goal
Three distinct, independently-rendered published graphs (per-OS latest.json + history.jsonl + benchmark-link.jpg), each showing that OS's linkers, embedded side-by-side in the README. Not a single combined/faceted chart — separate graphs per OS, each with its own history and competitor set.
Target directory layout on the benchmark-stats branch:
benchmark-stats/
x86_64-linux/ { latest.json, history.jsonl, benchmark-link.jpg, index.html }
x86_64-pc-windows-msvc/ { ... }
aarch64-apple-darwin/ { ... }
Where we are today
- reld charts real native numbers on the Linux graph (turned on in feat(bench): turn on the reld benchmarker — reld charts real numbers (fix output-path bug, surface failures) #39). Single Linux-only publish.
- Schema v2 already carries
target(per history line) + per-seriesmode(feat(bench): benchmark JSON schema v2 — target in history, per-series mode (BR-4b) #26) — so per-OS data is distinguishable/keyable. reld-benchalready runs on the windows-msvc + macos CI legs as a smoke (test(ci): run reld-bench on the Windows and macOS CI legs (BR-4c) #28) — the harness works off-Linux (competitors measured).ci/benchmark_stats.pyrenders one target per invocation (--input-log/--output-dir).
Checklist (split each into its own sub-issue)
- B-1 — Per-OS competitor sets in
reld-bench. Linuxbfd/lld/mold/wild(as today); Windowslink.exe(default)/lld-link; macOS systemld/ld64.lld. reld-bench already probes+degrades missing linkers ton/a; confirm each OS's set and target label (## Link Benchmark: <triple>). - B-2 — reld measurement on Windows/macOS (prerequisite for reld appearing on those graphs). The clang-based harness cannot drive reld off-Linux (clang
-fuse-ldcan't invoke reld there; reld links via rustc-Clinker). Add a rustc-based reld link measurement (e.g. warm-relink of a fixed Rust workload, or capture+replay rustc's link line) so reld charts on the Windows/macOS graphs,mode: bridge. Until this lands, those graphs show competitor-only data with reldn/a. On Win/mac reld ≈ lld + bridge overhead (honest-but-modest). This is the gate for reld-everywhere; decide whether B-5 ships before or after it. - B-3 — Per-target rendering in
benchmark_stats.py. Produce a separate chart/JSON per target into per-target subdirs; carry forward each target's ownhistory.jsonl(keyed bytarget). Likely small (it's already single-target per call) + the per-target output-dir wiring. - B-4 — 3-OS matrix in
benchmark-stats.yml(Benchmarks on all three platforms: 3-OS matrix + per-target publish (Windows + macOS graphs) #45). Matrix thebenchmarkjob over[ubuntu-24.04, windows-2022, macos-14]with per-OS linker installs (reuse the phase1 install patterns); each job uploads its raw log as a per-OS artifact. Add an aggregation/publish job (needs:the matrix) that runsbenchmark_stats.pyper target into per-target subdirs and publishes them. Keep the default-branch publish guard (soworkflow_dispatchon a branch validates without publishing). - B-5 — README: embed the three per-OS graphs side by side, each labeled by target + engine
mode, replacing the single image. - B-6 — Verification.
gh workflow run benchmark-stats.yml --ref <branch>runs the full matrix + aggregation and uploads per-OS artifacts without publishing (guard); download and confirm each target'slatest.json. Then dispatch onmainto publish.
Notes / policy
- Honesty (DESIGN §6): a regressing or
n/anumber is still published; bridge vs native is labeled viamode. - Dispatch-verify before merging any change here — a runner-only bug (like the reld output-path bug fixed in feat(bench): turn on the reld benchmarker — reld charts real numbers (fix output-path bug, surface failures) #39) can't be caught by code review.
Relates: #45 (B-4 matrix+publish), #26 (schema v2), #28 (bench smoke), #39 (reld turned on), #17 (BR-4).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(bench): publish separate per-target graphs (#49)
zackees commentedon Aug 23, 2026
Completed by #69 and validated on merged commit
58066f9in Benchmark Stats run 32668402943.The published
benchmark-statsbranch now has independentlatest.json,history.jsonl,benchmark-link.jpg, andindex.htmloutputs for Linux, Windows, and macOS. The README embeds all three graphs. Every expected cell is measured, includingreldfor all 16/128/512-unit scenarios; schema v4 labels Linux asnative/reld, Windows asbridge/lld-link, and macOS asbridge/ld64.lld. The exact-SHA freshness gate passed after publication.