Files
sizzletracker-android/docs
ReactorcoremeltdownandClaude Opus 5 c1758637df bench: measure what the insert-FX chain costs, and drop the block-rate idea
`make -C ios bench` renders four channels of synth with 0/1/2/4 effects each,
times every effect on its own, and compares a ten-biquad cascade three ways. It
asserts nothing, so it stays out of core-test; no shipped code changes (the file
is under core/tests, which neither app compiles).

What it says, on an M4 at -O2. Per-sample virtual dispatch — listed in the
handover as a thing to fix — costs 0.11 ns of 9.13 ns per sample, about 1%: the
indirect branch is predicted and amortises over the effect's own work. The
obvious block restructuring is a 162% regression, because running band-at-a-time
over a block sends the running value through memory ten times per sample instead
of keeping it in a register across the cascade. So that idea is recorded as
measured and closed, rather than left as an invitation.

Where the cost actually is: Ambience, 52% of all eight effects together
(65.9 ns/sample, 3.5x Tape Delay). A full chain is ~77% of render time, and
three-quarters of that is Ambience. Not urgent — four channels of four effects
still render at 42x real time.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-11-18 10:32:04 +01:00
..