.github/workflows/api-build-bench.yml (label a PR api-bench, or run it by hand). The numbers below come from bench run 44231866825.
What changed
The release profile itself (
opt-level = "z", thin LTO, strip, panic = "abort") did not change. The shipped binary is built the same way as before.
Measured numbers
All CI rows are from bench run 44231866825 onubuntu-latest with the deploy workflow’s cache restored.
R2 was measured with
--bin allternit-api. A separate run (R1) showed that flag saves nothing, so the Build step does not use it; the saving comes from the four jobs.
Not picked at G0: R3 (incremental off on the release build, 980 s) and T2 (tests with 4 jobs, 2,015 s). Both runs are kept in the bench for reference.
One cold rebuild after this change
Changing a profile setting changes every crate’s build fingerprint. After this change merges:- Every warm local Rust target (Agent Tree bases, worktrees, your own checkout) rebuilds cold once on its next build. The train refreshes the shared base with
gizzi agents tree base refresh --buildafter the merge. - The first CI deploy run compiles the
ci-testprofile from scratch, since the cache only held release artifacts. Later runs restore it from the cache. - The Test and Build steps no longer share compiled crates (
ci-testandreleaseare separate profiles), so the cache holds both.
How to check it worked
- Boot smoke test: the “Boot smoke test (fresh DB, before deploy)” step still passes on the first deploy run.
- Step times: on the first non-train deploy run after the merge, compare the Test and Build step times with the numbers above. The second run is the fair comparison, because the first one fills the cache.
- Local: a one-line change to
cmd/allternit-api/src/main.rsshould link without adsymutilpass.