Repository navigation
Description
Finish "benchmarks are auto-generated and published" (README claim 4) on all three platforms. Today the published benchmark (benchmark-stats.yml) is Linux-only; reld charts real Linux numbers (turned on in #39). This issue extends the published graph to Windows and macOS.
Current state / what exists
benchmark-stats.yml: singleubuntu-24.04job → installs bfd/lld/mold/wild → runsreld-bench(which now measures reld via theld.reldshim, feat(bench): turn on the reld benchmarker — reld charts real numbers (fix output-path bug, surface failures) #39) → publishes to the orphanbenchmark-statsbranch (force-push, guarded to the default branch).ci/benchmark_stats.py: takes one--input-log+--output-dir; schema v2 already carriestarget(per history line) and per-seriesmode(feat(bench): benchmark JSON schema v2 — target in history, per-series mode (BR-4b) #26 BR-4b), so per-OS data is distinguishable.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 BR-4c) — proving the harness works off-Linux (competitors measured; reldn/athere — see caveat).
Proposed design — 3-OS matrix + aggregation
- Matrix
benchmark-stats.yml'sbenchmarkjob over[ubuntu-24.04, windows-2022, macos-14], each with per-OS linker provisioning (reuse the install patterns already inci.yml's phase1 legs):- Linux:
bfd,lld,mold,wild(as today). - Windows:
link.exe(default) +lld-link(viaclang -fuse-ld=lld); optionally radlink. - macOS: system
ld+ld64.lld(brew llvm@18).
Each matrix job runsreld-benchfor its target and uploads its raw markdown log as a per-OS artifact.
- Linux:
- Aggregation/publish job (
needs:the matrix): download all per-OS logs, runbenchmark_stats.pyonce per target into per-target output dirs, e.g.benchmark-stats/<target>/{latest.json,history.jsonl,benchmark-link.jpg,index.html}(carry forward each target's history from the published branch). Publish all subdirs (keep the existing default-branch publish guard). - README: embed the three per-OS charts (or a faceted image), each labeled by target and engine
mode.
benchmark_stats.py likely needs little/no change (it's single-target per invocation); the work is the workflow restructure + per-target publish layout + README. If a combined/faceted renderer is preferred over per-OS images, that's an additive benchmark_stats.py change.
Important caveat — reld on Windows/macOS is a separate prerequisite
The clang-based reld-bench harness cannot drive reld off-Linux (clang -fuse-ld can't invoke reld there; reld links via rustc -Clinker). So in the matrix as-is, reld charts n/a on the Windows/macOS graphs — those graphs would show only the competitor linkers until a rustc-based reld measurement lands (tracked separately). Two sequencing options:
- (a) Ship the 3-OS matrix now with competitor-only data on Win/mac (reld Linux-only) — real "graph on 3 platforms" progress, honestly labeled.
- (b) Land the rustc-based Win/mac reld measurement first, then the matrix shows reld everywhere.
Recommend filing/《linking》the rustc-measurement issue and deciding the order there. On Win/mac, reld ≈ lld + bridge spawn overhead (reld delegates to lld), so those numbers are honest-but-modest, clearlymode: bridge.
Verification
- The publish step is guarded to the default branch, so
gh workflow run benchmark-stats.yml --ref <branch>validates the full 3-OS matrix + aggregation end-to-end (produces artifacts, no publish). Download the per-OS artifacts and confirm each target'slatest.json. - Dispatch on
mainto publish once green.
Done when
The benchmark-stats branch carries per-target (x86_64-linux, x86_64-windows/x86_64-pc-windows-msvc, aarch64-apple-darwin) benchmark data + charts, the README shows all three, history is carried forward per target, and the default-branch publish guard is intact. reld charts on Linux natively; reld on Win/mac is gated on the rustc-measurement follow-up (link it).
Relates: #17 (BR-4), #26 (schema v2), #28 (bench smoke), #39 (reld turned on). Honesty policy per DESIGN §6 — bridge/native mode labeled; a regressing/n/a number is still published.
Activity