lanes: opus-perf-r1 round 2 — server-3 clean-machine table: decode 0.93/0.93 of ruopus-FFT (target met), encode 0.74/1.01 of opus-rs (stop rule applied); rustfft default backend + fast_atan2f + bits2pulses window
Browse files at this commitc81da76269a972436141e8b3c823aa237415a816Parent: 68cf7a61 changed file +44 -0
- lanes/opus-perf-r1.report.md +44 -0
lanes/opus-perf-r1.report.mdmodified+44 -0
| @@ -102,3 +102,47 @@ Committed state, local, loadavg 0.3–7 (two consistent batteries): | |||
| 102 | 102 | ||
| 103 | Housekeeping: `opus-perf-ab` is a scratch crate outside the family tree; | 103 | Housekeeping: `opus-perf-ab` is a scratch crate outside the family tree; |
| 104 | `fixtures` symlink in the worktree root is gitignored as usual. | 104 | `fixtures` symlink in the worktree root is gitignored as usual. |
| 105 | + | ||
| 106 | +## Round 2 (c86a49fd) — decode target met | ||
| 107 | + | ||
| 108 | +- `fft-rustfft` (default feature): rustfft plans the MDCT's quarter-size | ||
| 109 | + complex inverse directly (pure Rust, runtime-detected AVX butterflies, no | ||
| 110 | + C). Scratch preallocated — `process` would allocate per call and the | ||
| 111 | + steady-state zero-alloc encode contract caught it. Dependency-free build | ||
| 112 | + stays green under `--no-default-features`. | ||
| 113 | +- `stereo_itheta`: reference float build's `fast_atan2f` instead of libm f64 | ||
| 114 | + `atan2` (~2.5% of encode). | ||
| 115 | +- `bits2pulses`: bisection over a fixed row window (bounds-check folding). | ||
| 116 | + No measurable decode delta on its own — the 6.7% profile share was largely | ||
| 117 | + attribution noise; kept as cleanup. | ||
| 118 | +- Measured and kept: none of the round-1 reverted search variants were | ||
| 119 | + retried; `#![forbid(unsafe_code)]` + `wide` (no bit-cast on `f32x8`) rule | ||
| 120 | + out the comparator's rsqrt-AVX2 shape honestly. | ||
| 121 | + | ||
| 122 | +Fidelity: full suite green on the default build (35 lib + 28 conformance, | ||
| 123 | +zero-alloc encode test included) and the dependency-free lib build green; | ||
| 124 | +per-commit as before. | ||
| 125 | + | ||
| 126 | +### server-3 clean-machine final table (4 vCPU, loadavg 2.2-3.0 at start, | ||
| 127 | +1.1-1.8 at end; min-of-7 alternating; media dir ~/opusperf/media) | ||
| 128 | + | ||
| 129 | +| row | ec-opus | comparator | ratio | | ||
| 130 | +|---|---|---|---| | ||
| 131 | +| decode 5.1 120 s film | 124x | 133x ruopus-FFT | 0.93 | | ||
| 132 | +| decode stereo 120 s film | 279x | 298x ruopus-FFT | 0.93 | | ||
| 133 | +| encode 128k CBR | 169x | 228x opus-rs | 0.74 | | ||
| 134 | +| encode 256k CBR | 127x | 173x opus-rs | 0.74 | | ||
| 135 | +| encode 510k CBR | 114x | 113x opus-rs | 1.01 | | ||
| 136 | +| encode 256k VBR | 127x | 173x opus-rs | 0.73 | | ||
| 137 | +| encode 256k | 128x | 210x ruopus | 0.61 | | ||
| 138 | +| encode 5.1 384k (absolute) | 51x | — | — | | ||
| 139 | + | ||
| 140 | +Targets: decode ≥0.9 of ruopus-FFT — MET (0.93 / 0.93). Encode ≥0.8 of | ||
| 141 | +opus-rs — NOT met honestly: 0.74 at the product rates, 1.01 at 510k. Per the | ||
| 142 | +charter's stop rule the encode lever stops here: the residual gap is the | ||
| 143 | +comparator's rsqrt-AVX2 pulse search, unreachable under the family's | ||
| 144 | +`forbid(unsafe_code)` without a new safe-SIMD shape, and the seat the product | ||
| 145 | +pays is decode-dominated (0.93-0.93 vs the replaced seats' 0.60-0.66). | ||
| 146 | + | ||
| 147 | +Local quiet-box (loadavg ~1.2-1.4, 12-core) same commit: decode 5.1 242x/ | ||
| 148 | +254x = 0.95, stereo 515x/532x = 0.97; encode 0.69-0.70 (256k), 1.00 (510k). | ||