From dc92faaa7d17d22aafcc1518524f7358a88474bf Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 29 Nov 2026 15:38:21 +0100 Subject: [PATCH] README: upscale speed after v0.23.0 (55 ms EASU+RCAS, 44 ms EASU, from 82 and 73) Measured on one core of a Ryzen 9 7950X, 1280x720 to 1920x1080, with GOEXPERIMENT=simd; the gap to ffmpeg is about 20x, still open (#141). Co-Authored-By: Claude Sonnet 5.5 --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 081cf1b..1a4e75b 100644 --- a/README.md +++ b/README.md @@ -1430,12 +1430,15 @@ PSNR on some. Speed, one core of a Ryzen 9 7950X (load about 2), 1280x720 to 1920x1080, ms per frame: ffmpeg 6.1.1 `scale` bilinear 3.3, bicubic 2.0, lanczos 2.8 (source and -conversion subtracted) against `upscale` 242 scalar (EASU alone 193) and **82 with -`GOEXPERIMENT=simd`** (EASU alone 73), the portable Go 1.27 `simd` package on -AVX2/AVX-512 and NEON; the scalar build is the default and the two agree within -`ErrorBound`. Still about 30 times slower than ffmpeg's hand-written scaler, which -is an open defect (the 12-tap gather per output pixel dominates), so it suits -stills, offline work and small frames, not real-time 1080p. +conversion subtracted) against `upscale` 242 scalar (EASU alone 193) and **55 with +`GOEXPERIMENT=simd`** (EASU alone 44; 82 and 73 before v0.23.0), the portable Go +1.27 `simd` package on AVX2/AVX-512 and NEON; the scalar build is the default and +the two agree within `ErrorBound`. v0.23.0 gathers each source row's taps once, +computes the edge analysis once per source pixel and packs RGBA with vectors. +Still about 20 times slower than ffmpeg's hand-written scaler, which is an open +defect (what is left: the scalar gather, the input conversion and the EASU +arithmetic, in roughly equal shares), so it suits stills, offline work and small +frames, not real-time 1080p. Reproduce both tables with `tools/fsrbench` (its own module; needs `ffmpeg` on the PATH): `go run ./tools/fsrbench quality --gt in.png --dir ` and