Repository navigation
feat(bench): turn on the reld benchmarker — reld charts real numbers (fix output-path bug, surface failures) - #39
Merged
Merged
Conversation
…iver shims The nightly benchmark charted reld as n/a because the workflow never built the reld binary or installed its ld.reld driver shim, so reld-bench had nothing to measure (published latest.json showed seconds:null on every scenario). Add a step before the benchmark run that builds reld in release and runs ci/install-driver-shims.sh, placing ld.reld next to the reld-bench binary so reld-bench's auto-discovery finds it and measures a real reld number on Linux (native wild engine). Pure activation of already-merged capability (BR-4a); no source change. Publish step and its default-branch guard untouched. Closes #36 Co-Authored-By: Claude Fable 5 <[email protected]>
…g n/a reld-bench discarded a linker's stderr when time_link failed, charting a bare n/a — indistinguishable from a slow linker, and the reason reld's benchmark failure (#37) was invisible. Record each (linker, scenario, error) and emit a sanitized single-line comment after the table: <!-- linker <name> link failed (<scenario>): <error> --> The error is capped in length, whitespace-collapsed, and has any `-->` sequence neutralized so it's always a valid single comment line. The table cells still show n/a and the benchmark_stats.py scraping contract is unchanged. Closes #38 Co-Authored-By: Claude Fable 5 <[email protected]>
The dispatched benchmark (via the new failure-surfacing) revealed the real
reason reld charted n/a — NOT a reld linking bug:
reld: error: Failed to open
`/tmp/reld-bench/small/bench-/home/runner/.../target/release/ld.reld.bin`
time_link built the output name as `bench-{linker}.bin`, where for the reld
column `{linker}` is the ABSOLUTE path to the ld.reld shim. dir.join() then
interpreted its `/` separators as nested directories that don't exist, so reld
(correctly) failed to open its output. Competitors use short names (bench-lld.bin)
so they were unaffected. Flatten `/`, `\`, `:` in the output filename via a
tested `bench_output_name` helper. reld's ELF linking was never the problem.
This unblocks the benchmark reld column (#36) and resolves the mis-attributed
#37 (reld does not actually fail these workloads).
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.
reld now participates in the benchmark with real numbers. Closes #36, #37, #38.
Three stacked changes that together turn the reld column from
n/ainto a real measurement:benchmark-stats.ymlbuildsreld(release) and runsci/install-driver-shims.shbefore the bench, soreld-benchdiscovers theld.reldshim.reld-benchno longer silently chartsn/awhen a link fails; it emits<!-- linker <name> link failed (<scenario>): <error> -->(sanitized single-line:-->neutralized, whitespace-collapsed, length-capped). This is an honesty fix and how the real cause was found.time_linkbuiltbench-{linker}.bin, and for reld{linker}is the absolute shim path, sodir.jointreated its/as directories. Flatten/,\,:in the output name (bench_output_namehelper + test). reld's ELF linking was never broken — reld charts n/a in the benchmark: links a trivial probe but fails reld-bench multi-object workloads (blocks #36) #37's "reld fails the workloads" was this harness bug.Result — dispatched benchmark on this branch (Linux runner)
reld charts a real native-engine number (
mode: native) and is competitive — matching/edging upstreamwildand ahead of lld/mold/bfd. (Windows/macOS still chartn/ain this clang harness — reld links there via rustc-Clinker, not-fuse-ld— a separate follow-up, not this PR.)Testing
reld-bench.rs: fmt/clippy clean; unit tests forformat_failure_comment(sanitization) andbench_output_name(path flattening) pass.ci/e2e/sqlite-bridgeregression still links via reld and runs (OK) — the bridge is untouched.Review
Independent review of the surfacing change: APPROVE (adversarially verified the failure comment can never break the
benchmark_stats.pyscrape or emit a malformed/-->/multi-line comment).🤖 Generated with Claude Code