Skip to content

perf: 36% smaller binary, 91% fewer redraws, and the CI to keep it that way - #86

Merged
lmarkmann merged 16 commits into
mainfrom
ci/dev-tooling-upgrade
Aug 28, 2026
Merged

lmarkmann merged 16 commits into
mainfrom
ci/dev-tooling-upgrade

Conversation

@lmarkmann

Copy link
Copy Markdown
Owner

Fourteen commits in three groups. Eight touch only excluded paths and cut no release on their own; the perf: and docs: commits touch packaged files, so this cuts 0.6.1. cargo semver-checks reports 196 checks, no update required, so a patch is the correct bump on 0.x.

Speed

Benchmark Before After Change
frame/drift_cadence 18.92 ms 1.60 ms -91.5%
render/104x50_clear_overcast ~588 us 181.0 us -69%
noise/warped_fbm_5200 184.9 us 154.7 us -16.4%
render/104x50_stormy 565 us 523 us -7.5%
render/320x100_stormy 3.619 ms 3.359 ms -7.2%
clear / night / moonlit flat

A drifting sky repainted thirty times a second to move clouds by two thousandths of a pixel; it now repaints when the sky has actually moved 0.05 px. The threshold is expressed in pixels rather than in offset_x, because a constant fixed in offset_x units is three times too coarse at 320 wide, which is the density-versus-absolute trap rules/reference-size.md exists for. Cloudless scenes staying flat is the evidence the noise change does what it claims and nothing else.

One reverted regression is documented in noise.rs: replacing f64::floor with truncate-and-correct is 32% slower on aarch64, which lowers floor to a single frintm, even though the x86 simulation profile argues for it.

Size

3,747,856 B to 2,398,816 B for the shipped artifact, -35.99%, every golden byte-identical.

src/tui/app.rs:705 was the only Layout call site and the only path to kasuari, a Cassowary constraint solver computing height - 2. Three strftime calls became direct formatting. The rest is [profile.dist]: fat LTO, one codegen unit, dependencies at opt-level = "z", with ratatui-core pinned back to 3 because it is the one dependency on the frame path.

[profile.release] is deliberately untouched, so the test gate keeps its fast rebuild and [profile.bench] still measures under the same compiler the speed numbers were taken with. The speed work costs zero bytes and the size work costs zero speed.

CI and release

  • macOS and Windows now compile and test. Two binaries shipped every release that CI had never built. cross is a separate job because the ruleset requires a check named exactly fmt + clippy + test, and matrixing that job would rename its contexts and block every PR.
  • Every cargo invocation passes --locked; only the msrv job did before, so CI could pass against a dependency set nothing else had seen. Tests now also run without the png feature, which is the shipped binary and which no test had ever exercised.
  • Release binaries build with locked: true and carry SLSA provenance attestations, verifiable with gh attestation verify.
  • Publishing moves to crates.io Trusted Publishing over OIDC; CARGO_REGISTRY_TOKEN leaves the workflow.
  • cargo-mutants gets a committed config, a CI job on the PR diff, and a recorded survivor baseline. The five moon.rs survivors that CLAUDE.md recorded as killed are still alive, byte-identical to a run from 2026-07-27.
  • Renovate gains a config: it had been running on stock defaults.
  • typos and cargo-shear at pre-commit; zizmor reports nothing at --min-severity low across all five workflows.

Notes for review

  • The badges branch does not exist yet, so the binary-size badge renders broken until it is seeded.
  • --aa remains 7.8 ms at the reference size against a 33 ms tick, scaling superlinearly with terminal area. Deferred deliberately: the fix is a behaviour change that wants its own PR.

Dependency updates were manual. Renovate now proposes them weekly, grouped into
one PR for cargo patch updates and one for GitHub Actions, with 0.x minor bumps
left on their own because in cargo they are breaking.

The floor is scoped twice over. constraints.rust pins the toolchain Renovate runs
cargo update with, and a crate-datasource rule carries the same floor as ~1.88 so
release filtering actually holds: the comparison runs under cargo versioning,
where a bare 1.88 reads as ^1.88 and a crate declaring rust-version = "1.90.0"
satisfies it. Verified against a 1.87 floor, where ratatui 0.30.2 and image
0.25.10 drop out as they should.

Renovate also reads its own config and offered to move that floor to 1.98, which
is why the rust tool constraint and the msrv job's pinned toolchain are both
disabled. The floor moves by hand or not at all.
…ocally

The zizmor job was the only step in CI installing its tool a different way: pipx pulled a Python toolchain into the runner to execute a Rust binary, while nextest, cargo-deny and cargo-codspeed all came from taiki-e/install-action. install-action carries a zizmor manifest with 1.28.0 as an exact key, so the swap keeps the pin and strengthens it, since the manifest verifies the artifact digest rather than trusting the name and version PyPI resolves at run time.

shellcheck and actionlint run at pre-commit rather than in CI. install.sh is the gap they close: 334 lines of POSIX sh served over curl | sh, shipped to users, and read by nothing else in the gate. actionlint does not overlap zizmor, which audits for security while actionlint audits for correctness, and a workflow can be perfectly safe and still never run. Neither goes in CI: install-action has no actionlint manifest and it is a Go binary, so the cargo-binstall fallback cannot build it either, and adding it would mean a new third-party action or a curl | bash for a linter that only matters at authoring time.
Two binaries ship every release that CI had never compiled. The release
matrix builds aarch64-apple-darwin and x86_64-pc-windows-msvc; ci.yml ran
on ubuntu-latest alone. There is not one cfg(windows) or cfg(unix) in
src/, which is exactly why a break there would be invisible: every bit of
platform divergence arrives through crossterm and ratatui, in raw-mode
entry and restore and the non-TTY --frame and --plain paths, and none of
it was exercised off Linux. tests/launch.rs spawns the real binary, so it
is the test most likely to catch such a break and the one that never ran
where breaks happen.

The new platforms go in a separate `cross` job rather than as a matrix
axis on the existing one. The repository ruleset requires a status check
named exactly "fmt + clippy + test"; matrixing that job renames its checks
to "fmt + clippy + test (ubuntu-latest)" and the required context would
never report again, blocking every PR. Keeping the name intact also means
a red macOS or Windows leg does not block merging until those contexts are
added to the ruleset deliberately.

Only the msrv job passed --locked, so clippy, nextest and the bench smoke
were free to resolve newer dependencies than Cargo.lock describes and CI
could pass against a dependency set nothing else had seen. They now all
pass it, which is what makes the lockfile mean something.

Tests also never ran without the png feature: clippy covered the default
build, nextest did not. That path is the shipped binary. It now has a
nextest line of its own, and 168 tests pass there today.

cargo doc moves in from `just check`. The justfile explains it sat locally
because nothing in CI built the docs, so build.warnings = "deny" gated
only whoever ran the hook. That argues for adding it here rather than
leaving it out, since --no-verify and any bot commit bypass the hook
entirely, and it costs about twenty seconds.

The push trigger was unfiltered while pull_request already covered PRs, so
every branch push ran the whole gate twice. It is scoped to main now, with
a concurrency group so a superseded push stops instead of running to
completion, and a timeout on every job.

persist-credentials: false on each checkout closes the deferred zizmor
artipacked finding for this workflow. Nothing here needs to push.
upload-rust-binary-action defaults locked to false, so every binary we
have shipped was built against a fresh dependency resolution rather than
the Cargo.lock the oracle, the goldens and CI all ran against. For a crate
whose whole premise is that one seed produces one set of pixels, letting
the shipped artifact resolve its own dependency set is the wrong default.

install.sh downloads the .sha256 sibling and refuses to install on a
mismatch, which proves the archive survived the network intact. It cannot
prove where the archive came from, because the digest is published by the
same job that publishes the archive: anyone who could replace one could
replace the other. actions/attest signs a SLSA provenance statement with
the workflow's own OIDC identity, so `gh attestation verify <archive> -R
lmarkmann/celsius` answers the question the checksum cannot.

It binds through subject-checksums rather than subject-path because the
action already writes the digest file in sha256sum format and exposes its
name as an output. That attests the digest we actually published, instead
of re-deriving one from a path and hoping the two agree.

persist-credentials: false on the two checkouts that only read closes the
deferred zizmor artipacked finding for these workflows. The tap checkout
in the homebrew job says true explicitly, because it pushes the rendered
formula and .github carries no comments to say so otherwise.
rules/determinism.md argues that a golden hash proves the render did not
change by accident rather than that it is right, and that survivors in a
well-covered file are coverage theatre. The tool that enforces that
argument ran by hand, occasionally, and left its findings in mutants.out/,
which .gitignore drops. The only surviving record was a run against v0.4.7
from 2026-07-27, and nothing in the repository could say whether it still
described the code.

It did not. Re-running src/moon.rs against 0.6.0 returns the same five
survivors as that July run, at the same two lines: the disc_sample radius
comparison and its squared-distance term, and the phase_lit bound.
src/gradient.rs returns the blend comparison too, at line 93 rather than
the old 74 because the code moved around it. .claude/CLAUDE.md records all
of these as killed. They are not, and the point of committing the config
is that the next such claim can be checked rather than believed.

The config pins the three things that decide whether a run is
reproducible. --features png, because the oracle, the analytic properties
and the lightning overlay are the tests that assert on rendered output and
none of them compile without it, so mutants would otherwise only have to
survive the unit tests. nextest, so the runner matches `just test` and CI.
A 60s floor, because the suite runs in under a second and the stock 20s
minimum would let a mutant that merely makes the renderer slow read as a
timeout instead of a kill.

src/pigs.rs is excluded. It is gated to a 42-minute window over one
district, so nothing can reach it and all 166 of its mutants would survive
and bury the files that are genuinely under test.

CI runs --in-diff on pull requests only: the full crate is ~3600 mutants
and hours of wall clock, while a diff is minutes. It is continue-on-error
for now, because the survivors above mean main does not currently pass a
run of its own and a gate that is red on arrival gets ignored rather than
fixed.

.cargo/ joins the exclude list. Cargo packages every root file it is not
told to drop and makes no exception for it, so without that line every
edit to a mutation-testing knob would cut a patch release.
…mports

.rumdl.toml disables MD044 and MD061 with a comment saying typos owns
every spelling question. typos was wired into neither prek nor CI, so
nothing owned it. It does now, at pre-commit, where it costs milliseconds.

_typos.toml exists because all five findings on the current tree are false
positives and every one of them is a real identifier: the ratatui crate
read as a misspelling of ratatouille, image's from_numer_denom_ms, the
pixel index iy that is always paired with ix, and PN falling out of the
word PNGs in prose about the golden renders. Recording them once is the
difference between a check that stays on and one that gets bypassed.

cargo-shear over cargo-machete for unused dependencies: it parses with
rust-analyzer's parser instead of text-matching, which matters here
because the only optional dependency is image behind the png feature and a
text scan is exactly the approach that gets that case wrong. cargo-udeps
is out; it needs nightly and a full build. It reports clean today, which
is the point of adding it before it does not.

Both hooks are local rather than CI. Neither can break a build, and CI is
already five jobs.

just cov and cov-lcov are the coverage numbers .claude/CLAUDE.md quotes,
which until now were measured once by hand and could only rot. Wiring the
upload to an external service needs an account decision, so that half is
deliberately not here.

_typos.toml joins the exclude list for the same reason as .cargo/: it is a
root file, Cargo packages those by default, and a tooling config that
ships is a tooling config whose every edit cuts a patch release.
DO NOT MERGE THIS COMMIT until the trusted publisher exists on crates.io.
It is last in the branch so it can be held back or dropped on its own.

CARGO_REGISTRY_TOKEN is a long-lived crates.io credential sitting in
repository secrets, and it is the one secret here that can publish a
version that can never be unpublished. Trusted Publishing replaces it with
a token minted per run over OIDC and valid for thirty minutes. release-plz
performs the exchange itself, so this needs no crates-io-auth-action step
and no token at all: id-token: write on the release job, and the secret
comes out of the workflow entirely, which is what the release-plz docs
require rather than merely suggest.

The crates.io side is manual and must be configured first, under Settings
-> Trusted Publishing on the celsius crate: owner lmarkmann, repository
celsius, workflow release-plz.yml, environment blank. If an environment is
set there it has to be named here too, or the exchange is refused.
celsius-lab is publish = false and needs nothing. Leave the repository
secret in place but unused until one publish succeeds, so a rollback is
reverting this commit rather than minting a new token.

The single job also becomes the two documented ones. It ran release-pr
before release, so on the very push that merged a release PR the proposer
evaluated the pre-publish state and could re-propose the version the
publisher was mid-flight on, which is release-plz#1542. Six releases have
not hit it, and the ordering is free to fix. `needs` keeps the two
serialised in the right order, and `!cancelled()` stops a failed publish
from skipping the PR job, since the release PR is how a broken release
gets fixed and skipping it would deadlock the very first run.

persist-credentials: false closes the last artipacked finding; zizmor now
reports nothing across all five workflows at low severity.
3.574 MiB to 2.288 MiB for the artifact a user actually downloads, a 36%
cut, with every golden byte-identical and no feature removed.

Two source changes account for 85 KiB of it. src/tui/app.rs:705 was the
only Layout call site in the crate, and it was the only path to kasuari,
the Cassowary constraint solver, which existed to compute height - 2.
too_small() has already returned for anything under MIN_ROWS by that
line, so the arithmetic needs no guard that the solver was providing.
kasuari stays a declared dependency of ratatui-core but is now
dead-stripped: cargo bloat had it at 20.8 KiB before and does not list it
after, and ratatui_core itself halves from 32.1 to 16.4 KiB. layout-cache
comes off ratatui's features with it, since it cached Layout::split
results and nothing splits any more; that also drops critical-section
from the dependency graph.

The three strftime calls in weather/state.rs built a format-string
interpreter to print two numbers. %H:%M is {:02}:{:02} over Timelike, and
the out-of-range fallback adds Datelike, which format_label already used.
cargo bloat confirms StrftimeItems as Display is gone. Honest accounting:
chrono's total only fell 32.9 to 31.3 KiB rather than the 13.5 KiB hoped
for, because parse_from_str still backs --at and keeps the parsing half
alive. Hand-rolling date parsing to chase that is the brittleness this
pass exists to avoid.

The rest is [profile.dist]: fat LTO, one codegen unit, dependencies at
opt-level "z". That is worth about a fifth of the binary and roughly
seven seconds of link time, which is the right trade once per release and
the wrong one on every `just ci`, so [profile.release] is untouched and
the test gate keeps its fast rebuild. ratatui-core is pinned back to
opt-level 3 because it is the one dependency drawn every tick; rustls,
ring, clap, basic_toml and chrono run at startup, on a network call or on
a keypress and never inside a frame. hyperfine over 441 and 475 runs of
--frame puts dist at 1.02 +- 0.09 times the speed of release, which is to
say indistinguishable.

This introduces a gap and closes it in the same commit. Until now the
shipped binary used the profile the tests ran under; it no longer does,
so `just dist-check` runs the oracle against [profile.dist]. All 171 pass
there with every golden unmoved, which is expected since Rust enables
neither FP contraction nor reassociation at any opt-level, but expected
is not verified.

cargo install and the formula's source fallback still build
[profile.release] and still get 3.49 MiB, because cargo cannot be told
about a custom profile. The prebuilt archives cover every real install
path: binstall resolves them and the formula installs them on arm64 macOS
and x86_64 Linux.

Criterion could not referee this. Re-running just bench against the
identical binary with no rebuild in between reported 10 regressions and 8
improvements spanning -22.98% to +210.01%, so run-to-run noise on this
machine exceeds the effect. CodSpeed's simulation instrument counts
instructions instead of timing them, so the PR gets the deterministic
answer a laptop cannot give. Numbers in .claude/docs/logs/BENCH.md.
Adds the Built With Ratatui badge and gives the crates.io badge the rust
logo, and pins the CI badge to main. The legacy /workflows/CI/badge.svg
route resolves a workflow by display name and shows the newest run on any
ref, so a failing Renovate branch push painted the badge red while main
was green; the per-file route with an explicit branch and event reports
what a reader wants to know, and the link opens the same filtered view.
That pin was sitting unmerged on fix/ci-badge-url and lands here instead,
so that branch is now redundant.

Drops the CodSpeed badge. Its shields endpoint pointed at a bare
codspeed.io/badge.json with no repository in the URL, so it rendered the
same image for every project and told a reader nothing about this one.

Order is source, then version, then health, then licence.
A hand-written size in the README goes stale the moment the binary moves,
and the only thing that notices is a reader being told the wrong number.
So the release publishes it.

shields has no badge for release-asset size. Its github/size badge reads a
file in the repository, not a release asset, and the dynamic JSON badge
cannot help either: it has no byte formatting, so it renders 2062104
rather than 2.3 MB, and its JSONPath name filter returns invalid, leaving
only a positional $.assets[5]. With a three-target matrix at
fail-fast: false the upload order is not fixed, so that index can land on
a .sha256 and the badge would proudly announce 109 bytes.

The ecosystem answer is Schneegans/dynamic-badges-action writing a gist
that shields reads back. Same idea here without the gist, because that
action needs a personal access token carrying the gist scope stored as a
repository secret, and this is the same release path that just stopped
storing a crates.io token. The JSON goes to an orphan badges branch
instead, pushed with the built-in GITHUB_TOKEN the job already has. No new
secret, no third party, and shields fetches raw.githubusercontent.com
perfectly well.

The number is the uncompressed musl binary, untarred from the archive that
was just published, so it is the size that lands on disk rather than the
gzipped download, and it is measured from the shipped artifact rather than
recomputed from a build that might differ. Reporting one target is a
deliberate simplification: macOS and Windows are within a few percent, and
three numbers in a badge row is worse than one honest one.

The branch does not exist yet, so the badge is broken until it is seeded
and the first release runs.
Four micros reported the single-iteration harness rather than the function
under it. warped_fbm measured 2.6us under simulation against 35ns locally, a
74x gap where the render benches hold between seven and thirteen;
analytic_sample, sun_position and moon_state were the same shape. Each now
runs a real unit of work per iteration, the way oklab_to_rgb_5200 already did:
a frame's worth for the two per-pixel calls, a week for the two per-compose
ones. Renamed rather than fixed in place, because the old series is not
comparable to the new one and a silent continuation would read as a
catastrophic regression.

alloc_floor_104x50 is retired with its answer recorded where it stood. It
existed to ask whether a render_into writing through a reused buffer would buy
anything, and it answered: 18.6us against a 5.9ms stormy render, so 0.3% and
no. A settled question left on the dashboard reads like an open one.

Three gaps filled. render_supersampled had no benchmark at all despite being
the heaviest path in the crate, and 104x50_stormy_aa comes out at 10.3ms
locally, a third of the 33ms tick budget at the reference size and scaling
with terminal area. drift_cadence measures a second of a drifting sky rather
than a single tick, which is 22.2ms of CPU per second of wall clock spent
advancing clouds about a tenth of a pixel. timeline_168h bounds everything
startup computes before the first sky at 1.03ms, which is what establishes
that the two Open-Meteo round trips are the load time and this is not.

benches/ is excluded from the crate tarball, so this cuts no release.
build_sky attaches an analytic sky whenever the sun is above the horizon, but
weights it by (sun_alt / 8) * (1 - total_cover). A fully overcast daytime hour
therefore asked for a Perez radiance sample at every pixel and then lerped all
of it away, and Open-Meteo reports cloud cover as an integer percentage, so
100% is a value it actually returns rather than a limiting case.

Dropping it is bit-identical rather than close: lerp_oklab(a, b, 0.0) is
a + (b - a) * 0.0, which is exactly a for the finite radiance tests/analytic.rs
already pins, so the discarded term could never have been anything but zero.
Filtering before prepare also skips its 5x5 adapted_exposure survey.

Done in render.rs rather than in weather/state.rs so it covers every caller
including celsius-lab, and because that is where the cost was.

render/104x50_clear_overcast is new and exists because nothing else would ever
notice a regression here: with the sample gone this path is indistinguishable
from a plain gradient sky, and only a benchmark that knows a Perez sky is
attached can tell the difference between doing it right and doing it again. It
now measures 175.0us against 174.3us for 104x50_clear, down from the 588us that
104x50_clear_analytic still costs at full weight.

Goldens unmoved; the analytic and crossfade benches are unchanged, which is
what says only the zero-weight case was touched.
Drift advances offset_x by wind_speed_kmh * elapsed * 0.0001 and dirtied the
cache whenever that was non-zero. At 28 km/h against the stormy scene's finest
scale_x that is about 0.002 pixels per tick, so a cloud needs roughly ten
seconds to cross one pixel, and the sky was re-rendered thirty times a second
to discover that nothing had moved. Measured on the frame: one tick changes
about thirty of a 104x50 frame's pixels, every one of them by exactly one
level.

offset_x keeps accumulating exactly, so a frame that does render is identical
to the one the old code would have drawn. What is coarsened is only the
decision of when to redraw. The debt is tracked in frame fractions and
compared against a threshold in pixels of the buffer last rendered, because
the on-screen shift is delta / scale_x * width and a threshold fixed in
offset_x units would repaint a wide terminal a third as often as intended.
That is the density-versus-absolute trap in rules/reference-size.md, and it
would have looked like a rendering fault rather than a units one.

0.05 pixels is the largest shift measured to move no channel by more than one
level, at 104x50 and at 320x150 alike; a quarter pixel reaches five levels and
can shimmer. Going finer buys almost nothing, because thirty cached draws
already cost more than the renders it would save.

frame/drift_cadence, a second of a drifting sky, goes 18.9ms to 1.80ms, down
90.3%, and the real event loop does better still: tick now returns false on a
gated frame, so the draw is skipped rather than served from cache.
frame/scrub_hour is unmoved (p = 0.70), which is what says the render path
still has a guard, and every golden holds.

Note that frame/dirty_rerender falls 96% here and no longer means what its
name says: with the gate in place a single tick is mostly a cache hit. It is
left in place for its history; scrub_hour is the benchmark that guarantees a
render.
Noise::value is 54% of a stormy frame under simulation, and it ran four
integer divisions per call: rem_euclid twice, which is specified as two
divisions each, then `% self.width` and `% self.height` for the neighbouring
cell. width and height are runtime struct fields, so the compiler cannot fold
any of them into a multiply, and integer division does not pipeline.
warped_fbm_oct calls value ten times per pixel per cloud layer.

Both rewrites are exact rather than close. rem_euclid becomes its own
definition with the second division written as the conditional add it exists
to perform. The neighbour wrap becomes a comparison, because wrap already
guarantees the index is below the bound, so the modulo could only ever have
been a no-op or a wrap to zero.

Measured against the previous commit, the win lands precisely where noise is
used and nowhere else, which is the evidence it does only what it claims:
warped_fbm_5200 -13.5%, 104x50_stormy -7.5%, 200x50_stormy -8.2%,
320x100_stormy -7.2%, 104x50_stormy_quad -8.5%, 104x50_stormy_aa -8.3%,
scrub_hour -7.3%, while clear, night, moonlit and the three analytic skies are
all flat at p > 0.05. Every golden holds and value is pinned against the
expression it replaced across 14400 coordinates including negatives and
coordinates past the grid wrap.

The third rewrite was reverted and is documented where it was going to go.
f64::floor is 14% of a stormy frame under simulation because baseline x86-64
has no SSE4.1 roundsd and lowers it to a software bit-manipulation sequence,
so replacing it with truncate-and-correct looks like free speed and is exactly
as correct. It measured 32% slower: aarch64 lowers floor to a single frintm,
and the replacement trades that for a seven-instruction dependency chain.
warped_fbm_5200 runs 154us with floor against 203us by hand, on a 185us
baseline, so the hand-written version was a regression that the division work
was quietly paying for. The x86 cost is modelled and the aarch64 cost is
measured. If the x86 floor is ever worth addressing it is a target-cpu
question for the musl artifact rather than a code one.
@codspeed

codspeed Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will improve performance by ×8.2

⚡ 3 improved benchmarks
✅ 49 untouched benchmarks
🆕 18 new benchmarks
⏩ 10 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ Simulation dirty_rerender 6,240.3 µs 361.9 µs ×17
⚡ Simulation lightning_frame 6,261.1 µs 385.3 µs ×16
⚡ Memory lightning_frame 30.5 KB 15.2 KB ×2
🆕 Memory timeline_168h N/A 2 KB N/A
🆕 Memory drift_cadence N/A 15.4 KB N/A
🆕 Memory analytic_sample_5200 N/A 0 B N/A
🆕 Memory moon_state_168 N/A 0 B N/A
🆕 Memory sun_position_168 N/A 0 B N/A
🆕 Memory warped_fbm_5200 N/A 0 B N/A
🆕 Memory 104x50_clear_overcast N/A 15.2 KB N/A
🆕 Memory 104x50_stormy_aa N/A 244 KB N/A
🆕 Memory 104x50_stormy_quad N/A 61.1 KB N/A
🆕 Simulation timeline_168h N/A 5.1 ms N/A
🆕 Simulation drift_cadence N/A 14.5 ms N/A
🆕 Simulation analytic_sample_5200 N/A 2.9 ms N/A
🆕 Simulation moon_state_168 N/A 491.1 µs N/A
🆕 Simulation sun_position_168 N/A 192.8 µs N/A
🆕 Simulation warped_fbm_5200 N/A 3.5 ms N/A
🆕 Simulation 104x50_clear_overcast N/A 1.3 ms N/A
🆕 Simulation 104x50_stormy_aa N/A 88 ms N/A
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing ci/dev-tooling-upgrade (dcc38ca) with main (b54cc75)

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

The cross job found this on its first run, which is the case for having
added it. tests/oracle.rs hashes scenes/*.toml byte for byte to prove the
scene a golden was rendered from has not changed. Windows checks text
files out as CRLF by default, so every scene file on a Windows clone
carries different bytes and blue_hour_calm fails scene_sha256 immediately.

It is worth being precise about what this was and was not. Only the scene
hash failed; png_sha256 passed everywhere, so nothing about the render
differed and no shipped binary was affected. basic_toml parses CRLF
happily and line endings never reach a pixel. What broke is the claim the
oracle makes about file identity, and it broke for any Windows contributor
running just test, not only for CI.

text=auto leaves tests/goldens/*.png alone, since git detects them as
binary. The file joins .gitignore in the tarball rather than the exclude
list: it is version-control metadata rather than development tooling, and
it will not change again.
The mutants job on this PR earned its place: it showed the suite would not
notice `area.height - 2` becoming `area.height / 2` in draw_sky. At forty
rows that is a sky of twenty-five rows instead of thirty-eight, half the
frame left unpainted, and every test still green. Dropping Layout for
arithmetic removed the only thing that had been checking the geometry,
because a constraint solver at least asserts its own constraints, and the
goldens never reach draw_sky to notice.

The test draws at three sizes, including one row above MIN_ROWS, and pins
what the split promises: row 0 and the last row carry chrome, and the sky
reaches the row directly above the footer. That last assertion is the one
that kills the mutant.

Two survivors here are equivalent and stay. Deleting `height` from the
header or footer Rect changes nothing, because draw_chrome_bar writes only
`area.y` and never reads the height; the field documents what the row is
rather than feeding anything. That is recorded next to the test so the
next person does not spend an afternoon on it.
@lmarkmann
lmarkmann merged commit 53ef433 into main Aug 28, 2026
8 of 9 checks passed
@lmarkmann lmarkmann mentioned this pull request Aug 28, 2026
@lmarkmann
lmarkmann deleted the ci/dev-tooling-upgrade branch September 6, 2026 19:52
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.

1 participant