Skip to content

Turn on the reld linker benchmarker: build reld + install driver shims in the nightly benchmark so the reld column is measured, not n/a #36

Closed

Description

@zackees

Ask

Turn on the reld linker benchmarker — make the published nightly benchmark actually measure reld and chart a real number, instead of n/a.

Why it's still n/a

BR-4a (#24) taught reld-bench to discover an ld.reld driver shim (next to its own binary, or via --reld) and measure reld like any other linker via clang -fuse-ld=<ld.reld>. But the nightly workflow never activates it:

  • .github/workflows/benchmark-stats.yml installs clang lld mold + wild, then runs python3 -m ci.benchmark_stats --run-benchmarks — it does not build the reld binary and does not run ci/install-driver-shims.sh.
  • ci/benchmark_stats.py::main runs cargo run --release --bin reld-bench, which builds reld-bench but not the reld bin, and no ld.reld shim exists next to it.
  • So reld-bench's shim discovery finds nothing → reld charts n/a with the honest <!-- linker reld not available: no ld.reld shim discovered ... --> comment. The capability is wired but never switched on.

Fix (workflow + minimal glue)

In benchmark-stats.yml, before the benchmark run:

  1. Build the reld binary in release: cargo build --release -p reld (produces target/release/reld).
  2. Run bash ci/install-driver-shims.sh release (copies reld → target/release/ld.reld / ld64.reld), so the shim sits next to the reld-bench binary that cargo run --release produces — reld-bench's auto-discovery (ld.reld next to current_exe()) then finds it.
  3. Confirm the reld column renders a real Linux number (native wild engine). Linux is where reld is native; Windows/macOS stay n/a in this clang harness (they link via rustc -Clinker, not -fuse-ld) — that's the BR-4c/BR-4-follow-up axis, not this issue.

Optionally, have ci/benchmark_stats.py pass an explicit --reld <path-to-ld.reld> to reld-bench rather than relying on sibling auto-discovery, if that's more robust in the runner layout.

Verification

  • A dispatched or nightly run of benchmark-stats.yml produces latest.json where the reld result on the Linux target has a real seconds value (not null) with mode: "native" (per the BR-4b schema), and the rendered chart shows a reld bar.
  • The reld column in the README benchmark image is no longer n/a on Linux.

Notes / relationships

Activity

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

    @zackees
    CollaboratorAuthor

    Confirmed by the last run. A workflow_dispatch run today (31168634658, 10:05Z) and the 10:10Z schedule both succeeded, but the published benchmark-stats/latest.json shows reld unmeasured on every scenario:

    {"scenario": "small (16 units)",   "series": "reld", "seconds": null, "mode": "native"}
    {"scenario": "medium (128 units)", "series": "reld", "seconds": null, "mode": "native"}
    {"scenario": "large (512 units)",  "series": "reld", "seconds": null, "mode": "native"}

    So the BR-4b mode: native schema field is present, but seconds is null (charts as n/a) because no ld.reld shim exists next to reld-bench on the runner — the workflow doesn't build reld or run ci/install-driver-shims.sh. This is the exact symptom of the benchmarker not being switched on. Fix = the workflow glue described above (build reld release + install shims before the bench run).

  3. zackees commented on Aug 7, 2026

    @zackees
    CollaboratorAuthor

    Wiring verified correct — but reld still charts n/a, for a deeper reason. Holding.

    Dispatch-verified the wiring (branch turn-on-benchmarker, run 31173335448, success): the ld.reld shim installs, reld-bench discovers it, and reld links the trivial probe program (no not available comment is emitted). So the workflow plumbing this issue asked for is correct.

    But reld's time_link fails on every real workload → still n/a, while upstream wild links the same workloads fine (0.016–0.033s). So turning on the wiring is necessary but not sufficient — the actual blocker is a reld-specific link failure on the multi-object workloads, filed as #37.

    Holding the wiring branch rather than merging it standalone: merging it now would add a reld release-build + shim-install to every nightly run while reld still charts n/a (no visible benefit + CI cost). Better to land the wiring together with the #37 fix so reld comes on in one step. This issue stays open, blocked on #37.

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