Skip to content

Benchmarks on all three platforms: 3-OS matrix + per-target publish (Windows + macOS graphs) #45

Closed

Description

@zackees

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

Proposed design — 3-OS matrix + aggregation

  1. Matrix benchmark-stats.yml's benchmark job over [ubuntu-24.04, windows-2022, macos-14], each with per-OS linker provisioning (reuse the install patterns already in ci.yml's phase1 legs):
    • Linux: bfd, lld, mold, wild (as today).
    • Windows: link.exe (default) + lld-link (via clang -fuse-ld=lld); optionally radlink.
    • macOS: system ld + ld64.lld (brew llvm@18).
      Each matrix job runs reld-bench for its target and uploads its raw markdown log as a per-OS artifact.
  2. Aggregation/publish job (needs: the matrix): download all per-OS logs, run benchmark_stats.py once 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).
  3. 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, clearly mode: 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's latest.json.
  • Dispatch on main to 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

  1. added
    enhancement
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions