Skip to content

Meta: per-OS benchmark graphs — separate Windows / Linux / macOS charts #47

Closed

Description

@zackees

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

Checklist (split each into its own sub-issue)

  • B-1 — Per-OS competitor sets in reld-bench. Linux bfd/lld/mold/wild (as today); Windows link.exe(default)/lld-link; macOS system ld/ld64.lld. reld-bench already probes+degrades missing linkers to n/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-ld can'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 reld n/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 own history.jsonl (keyed by target). 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 the benchmark job 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 runs benchmark_stats.py per target into per-target subdirs and publishes them. Keep the default-branch publish guard (so workflow_dispatch on 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's latest.json. Then dispatch on main to publish.

Notes / policy

Relates: #45 (B-4 matrix+publish), #26 (schema v2), #28 (bench smoke), #39 (reld turned on), #17 (BR-4).

Activity

  1. added
    enhancement
    on Aug 7, 2026
  2. zackees commented on Aug 23, 2026

    @zackees
    CollaboratorAuthor

    Completed by #69 and validated on merged commit 58066f9 in Benchmark Stats run 32668402943.

    The published benchmark-stats branch now has independent latest.json, history.jsonl, benchmark-link.jpg, and index.html outputs for Linux, Windows, and macOS. The README embeds all three graphs. Every expected cell is measured, including reld for all 16/128/512-unit scenarios; schema v4 labels Linux as native/reld, Windows as bridge/lld-link, and macOS as bridge/ld64.lld. The exact-SHA freshness gate passed after publication.

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