Repository navigation
Description
Meta: frozen linker-object benchmark assets — storage, publishing, and consumption
Umbrella issue coordinating the "compile once, link every iteration" benchmark corpus work. The corpora from #55 (frozen Bevy link corpus) and #56 (quick-link / thin-LTO / full-LTO sections) are large, per-platform, per-configuration blobs. This issue defines where they live, how they're published, and how each platform pulls them so the benchmark only ever times linking.
Sub-issues
- bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55 — frozen Bevy link corpus (compile once per platform, replay the link).
- bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56 — quick-link / thin-LTO / full-LTO sections over that corpus (link only, no compile in the loop).
- This issue — asset storage/publishing/consumption +
manifest.json(the coordination layer below).
Related surfaces: benchmark-stats presentation (#53 verbose stats, #54 vertical stacking); caching/toolchain plumbing (forge-ci/setup-soldr#463 glob side-cache, forge-ci/soldr#2335 published toolchain).
Storage design
Recommended: one orphan benchmark-assets branch that doubles as the assets folder + static www site (same pattern as the existing benchmark-stats branch), with a canonical manifest.json at its root and one archive per platform per configuration beneath it:
benchmark-assets/ # orphan branch, .nojekyll, served as the www/assets site
manifest.json # canonical index (single source of truth)
x86_64-linux/
quick/archive.tar.zst
thin-lto/archive.tar.zst
full-lto/archive.tar.zst
x86_64-pc-windows-msvc/
quick/archive.tar.zst
...
aarch64-apple-darwin/
...
Canonical manifest URL (raw), e.g.:
https://raw.githubusercontent.com/zackees/reld/benchmark-assets/manifest.json
manifest.json shape (sketch)
{
"schema_version": 1,
"generated_at": "<ISO8601>",
"bevy_version": "<pinned>",
"assets": [
{
"platform": "x86_64-linux",
"configuration": "quick", // quick | thin-lto | full-lto
"archive_url": "https://raw.githubusercontent.com/zackees/reld/benchmark-assets/x86_64-linux/quick/archive.tar.zst",
"sha256": "<digest>",
"bytes": 123456789,
"link_command": "link-command.sh", // path inside the archive
"toolchain": { "rustc": "1.94.1", "profile": "linkbench-quick" }
}
// ... one entry per (platform x configuration)
]
}Each archive contains the frozen linker inputs (.o, .rlib, native libs) plus the normalized final link command (paths rewritten relative to the archive root) captured via rustc --print link-args.
Alternative: per-platform benchmark-assets-<platform> branches
One branch per platform (benchmark-assets-x86_64-linux, -windows-msvc, -darwin), each publishing its own archives, with a small top-level manifest.json (on the main assets branch or the repo) pointing at each. Trade-offs to decide:
- Pro: each platform's publish job force-pushes only its own branch (no contention), smaller per-branch history, easier partial refresh.
- Con: more branches to manage; the www/site story fragments;
manifest.jsonmust aggregate across branches.
Pick one in this issue before #55/#56 wire up publishing. Default recommendation: single benchmark-assets branch + manifest.json (simplest consumer story, one www site); split to per-platform branches only if blob size / force-push contention forces it.
Publishing flow
- Per platform, the benchmark prep (from bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55/bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56) builds each configuration once and freezes inputs + link command.
- Archive each
(platform, configuration)with zstd high compression (soldr's fast zstd where available — ties to setup-soldr#463), checksum it. - Push archives to the assets branch and regenerate
manifest.jsonatomically (checksums, sizes, bevy/toolchain versions,generated_at). - Refresh is explicit (bump Bevy version / configuration change), verbose about what branch + archives are published (consistent with ci(bench): print per-OS performance stats in the job + verbose benchmark-stats branch publish #53).
Consumption flow
reld-benchreadsmanifest.json, selects the entries for the current platform + requested configuration(s).- Downloads + verifies sha256, extracts the archive, rewrites the link command to the local extraction dir.
- Replays the link N times per linker — no compilation in the loop — and reports per-configuration, per-linker medians.
- Caches the extracted corpus locally (setup-soldr side-cache #463) so repeat runs skip the download.
Acceptance criteria
- A single source-of-truth
manifest.jsonat a canonical URL indexes every(platform, configuration)archive with URL, sha256, sizes, bevy/toolchain versions, and the in-archive link-command path. - Archives are published to the chosen layout (single
benchmark-assetsbranch/www site by default, or per-platform branches) with zstd compression and checksums. - Publishing regenerates the manifest atomically and logs branch + archives + source SHA (verbose, per ci(bench): print per-OS performance stats in the job + verbose benchmark-stats branch publish #53); refresh is explicit.
-
reld-benchconsumes the manifest: download → verify → extract → replay link, with zero in-loop compilation, for each platform + configuration. - The storage decision (single branch vs per-platform branches) is recorded here and adopted by bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55/bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56.
- RED -> GREEN: a benchmark run that has no published assets, then one that pulls a frozen archive from the manifest and links it repeatedly.
Decisions (proposed defaults — refine here)
- Priority: P2. Enables the realistic, compile-free link benchmarks (bench: frozen Bevy link corpus — compile once per platform, replay the link every iteration #55/bench: quick-link / thin-LTO / full-LTO sections over the frozen corpus (link only, no compile in the loop) #56); everything downstream depends on this layout.
- Default layout: one orphan
benchmark-assetsbranch that is also the www/assets site, withmanifest.jsonat root and.<platform>/<configuration>/archive.tar.zstbeneath — the simplest consumer and single-site story. Escalate to per-platformbenchmark-assets-<platform>branches only if blob size or force-push contention demands it. manifest.jsonis the single source of truth for consumers; archives are content-addressed by sha256 and keyed on bevy version + platform + configuration.- Compression via zstd (soldr's fast high-ratio path where available), reusing the caching primitives in setup-soldr#463.
Activity
feat(bench): frozen linker-object asset pipeline (manifest + replay) (#…