Skip to content

feat(bench): benchmark one Rust project across LTO modes - #71

Merged
zackees merged 3 commits into
mainfrom
feat/issue-70-lto-benchmarks
Aug 24, 2026
Merged

zackees merged 3 commits into
mainfrom
feat/issue-70-lto-benchmarks

Conversation

@zackees

@zackees zackees commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #70.

What changed

  • Replaces the small/medium/large benchmark matrix with one idiomatic cross-platform Rust workspace measured in exactly three modes: no-LTO, ThinLTO, and full-LTO.
  • Compiles each mode once outside the timed loop, captures the target-correct final linker command, and times only replayed final links.
  • Executes every produced binary and requires the expected output before accepting a measurement.
  • Keeps one chart per OS while preserving native/bridge mode and concrete engine metadata.
  • Moves benchmark data to schema 5 with benchmark ID sqlite-bridge-lto-v1, preventing old size-based history from entering the new series.
  • Retains strict expected-cell, no-silent-N/A, exact-SHA, and freshness validation.
  • Keeps GitHub Actions Bash-only with one uv sync --extra dev followed by uv run --no-sync ....
  • Removes the retired synthetic benchmark smokes from ci.yml, leaving benchmark-stats.yml as the sole benchmark authority.
  • Updates the generated README benchmark section and removes the obsolete benchmark-assets workflow.

RED → GREEN

  • RED: new runner contract tests initially failed because the LTO configuration matrix, captured linker invocation, output verification, schema ID, and history isolation did not exist.
  • RED: a CI ownership test exposed legacy reld-bench size scenarios still running in ci.yml.
  • GREEN: focused benchmark/workflow tests pass (11 tests); the complete Python suite passes (121 tests).
  • GREEN: Ruff lint and formatting pass for all changed Python files; README generation check and Cargo metadata validation pass.
  • GREEN: the final source delta passed clud-review with no findings.
  • GREEN: ordinary PR CI confirms the formerly failing macOS and Windows MSVC Phase 1 jobs now pass.

Published benchmark evidence

Exact source SHA: 7b7066a42830182e1968c7b676054737a9667c5f

Three-platform workflow dispatch: https://github.com/zackees/reld/actions/runs/32677940201

All expected cells are measured (no N/A), and every generated executable reported OK.

Linux (seconds)

Mode bfd lld mold wild reld
no-LTO 0.1134 0.0392 0.0400 0.0185 0.0905
ThinLTO 0.0995 0.0407 0.0538 0.0213 0.0914
full-LTO 0.0787 0.0314 0.0263 0.0147 0.0825

macOS (seconds)

Mode ld ld64.lld reld
no-LTO 0.0515 0.0516 0.1019
ThinLTO 0.0464 0.0467 0.0965
full-LTO 0.0430 0.0440 0.0926

Windows (seconds)

Mode link.exe lld reld
no-LTO 0.1232 0.0893 0.2063
ThinLTO 0.1257 0.0882 0.2224
full-LTO 0.0896 0.0714 0.1891

The emitted metadata records Linux reld as native/reld, macOS reld as bridge/ld64.lld, and Windows reld as bridge/lld-link. Each platform history contains one schema-5 entry for this benchmark ID, with no legacy size-based scenarios.

Replace size-based synthetic chart scenarios with one sqlite-bridge Rust workload captured once per no-LTO, ThinLTO, and full-LTO configuration. Replay only target-native final links, preserve runner metadata, and isolate the new schema/history.\n\nCloses #70
@zackees
zackees marked this pull request as ready for review August 24, 2026 01:25
@zackees
zackees merged commit aa5a62a into main Aug 24, 2026
21 checks passed
@zackees

zackees commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator Author

Published from the merged main SHA aa5a62a.

All platform producers, strict expected-cell coverage, graph/history generation, publication, and the independent published-freshness job passed. Direct inspection of the published branch confirms schema 5, benchmark ID sqlite-bridge-lto-v1, exact merge SHA, only no-LTO/ThinLTO/full-LTO, measured-only results, correct native/bridge engine metadata, and no legacy size-based history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(bench): replace size scenarios with one Rust project's LTO configurations

1 participant