4 measured workloads · Node.js · Apple M4 Pro
Typical processing
1.46 µs
Busier blocks
1.58 µs
Share of the test budget
0.1%
250.5 ms · feedback 0.7 · 96 kHz · 1.333 ms available per block in this test.
Processing time in µs · lower means less work
Remaining energy · dB
| Sample rate · kHz | Workload | Typical · µs | Busier blocks · µs | Test budget used | Observations |
|---|---|---|---|---|---|
| 48 | 1.46 | 1.58 | 0.1% | — | |
| 48 | 1.46 | 1.63 | 0.1% | — | |
| 96 | 1.54 | 1.71 | 0.1% | Timing varies | |
| 96 | 1.46 | 1.58 | 0.1% | — |
Times are per 128-frame audio block. Test budget used divides the p95 time by the block period at that case’s sample rate. Machine and runtime are shared.
Node.js · Apple M4 Pro · 48 / 96 kHz · 128 frames per block · 3 repeated tests ·
Typical summarizes the middle measured block times. Busier blocks summarizes the time that 95% of blocks completed within in each repeat. These figures measure DSP processing; application scheduling, loading samples and device output require separate checks. Memory and signal probes run separately from the timing loop.
Lean 4 checks algorithm properties and candidate optimization rewrites within stated assumptions. A model proof does not establish that an optimization is enabled in this node or on any target. Performance measurements establish speed.
8 Lean 4 results: 2 proofs in their stated domains; 5 proofs in exact arithmetic; 1 counterexample.
Move the controls to explore a theorem’s behavior and assumptions. These browser calculations use floating-point numbers to illustrate the mathematical model. They do not run Lean or the audio engine. Lean checks the general statement; a plotted example does not prove it.
y[n] = u[n] + g y[n − D]; B = A / (1 − |g|)
D is a positive integer, |g| < 1, |u[n]| ≤ A, and the initial history lies in [−B, B]. This example starts with zero history.
Within theorem assumptions
The BIBO theorem bounds any duration with bounded input and history. This plot shows 64 samples of a constant input.