Repository navigation
feat(bench): reld participates in the benchmark via its driver shim (BR-4a) - #24
Merged
Merged
Conversation
Replace the hardcoded `n/a` reld column with a real measurement. reld is a native ELF linker on Linux (inherited from wild), driven via `clang -fuse-ld=<ld.reld>`; the shim is produced by ci/install-driver-shims.sh. reld-bench discovers it (`--reld <path>` or `ld.reld` next to the bench binary), probes it once, and times it per scenario exactly like the other linkers. When no shim is found or the probe fails, the column stays `n/a` with an explanatory comment — honest rather than implied. The published Linux benchmark now gets a real reld number; the clang-based harness can't drive reld on Windows/macOS (rustc `-Clinker` path), so it shows `n/a` there. The stdout table contract with ci/benchmark_stats.py is unchanged: same columns, order, and `n/a` format, with reld always the final column. discover_reld's sibling-directory lookup is injectable so the unit tests run hermetically against temp dirs instead of racing on the real executable dir. Closes #23 Co-Authored-By: Claude Fable 5 <[email protected]>
This was referenced Aug 7, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements a focused slice of BR-4 (#17). Closes #23. Follows BR-1 (#20) and BR-2 (#22).
What
Makes
reldproduce a real measurement inreld-benchinstead of the hardcodedn/a— the user-facing goal of "reld participates in the benchmark."reld is a native ELF linker on Linux (inherited from wild), driven via
clang -fuse-ld=<ld.reld>;ci/install-driver-shims.shalready produces theld.reldshim next to thereldbinary.reld-benchnow:--reld <path>override, elseld.reldnext to the bench binary),reldcolumn, or a cleann/a+ an explanatory<!-- linker reld not available: ... -->comment when no shim is found or the probe fails.The published Linux benchmark now gets a real reld number. The clang/
-fuse-ldharness can't drive reld on Windows/macOS (there reld integrates via rustc-Clinker), so it honestly showsn/aon those hosts — a Windows/macOS bench path is future work (BR-4b), along with theSCHEMA_VERSION=2mode/engine/targetfields and the 3-OS workflow matrix.Contract
The stdout table scraped by
ci/benchmark_stats.pyis unchanged: same## Link Benchmark: <triple>heading, same columns in the same order withreldalways last, same header/separator shapes, samen/acell format.Testing
crates/reld-testkit/src/bin/reld-bench.rsonly.fmt/clippy -p reld-testkit --all-targetsclean.n/awith the new comment, table shape intact.ci/e2e/sqlite-bridgefixture) still links via reld and runs (OK, exit 0) — the bridge is untouched by this change.cargo testparallelism.Review
Independent review confirmed the table-scraping contract is preserved and no competitor column can be dropped/misaligned. It reproduced a flaky test (two tests racing on the real executable directory); that is fixed here by making
discover_reld's sibling-dir lookup injectable so tests use temp dirs — verified non-flaky across repeated runs.A real (non-
n/a) reld measurement only occurs on Linux with a genuine shim, so it is validated by inspection + the discovery unit tests here and will be exercised by the Linux benchmark job, not by this PR's CI.🤖 Generated with Claude Code