Skip to content

reld-bench: surface link failures (emit the linker error) instead of silently charting n/a #38

Closed

Description

@zackees

Diagnostic-enabling improvement, and an honesty fix. Unblocks #37 (why reld charts n/a).

Problem

reld-bench's time_link returns Err when a linker fails to link a workload, and the caller silently charts " n/a |", discarding the linker's stderr. That is how #37 stayed invisible: reld fails every benchmark workload link, but the benchmark shows a bare n/a with no reason. This also contradicts the harness's stated honesty policy ("a missing competitor is visible... rather than quietly improving our numbers") — a failing linker is currently indistinguishable from a slow one and gives no diagnostic.

Fix (crates/reld-testkit/src/bin/reld-bench.rs)

When time_link fails for any linker (competitor or reld), capture the error and emit a comment after the table, e.g.:

<!-- linker reld link failed (large (512 units)): <first line(s) of the linker stderr> -->
  • Applies to the competitor columns and the reld column alike.
  • Keep charting n/a in the cell (unchanged table shape / benchmark_stats.py contract), but no longer silently swallow why.
  • Include enough of the linker stderr to diagnose (first N lines), de-duplicated if the same error repeats across scenarios.

Verification

Done when

reld-bench emits a comment naming the linker + scenario + error whenever a link fails, instead of a silent n/a; table/JSON contract unchanged; unit test passes. PR merged, issue closed, branch rebased on origin/main.

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