From eb81cee9782c91eb9d901f75b706d5b163e4c908 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Sun, 29 Nov 2026 15:39:16 +0100 Subject: [PATCH] upscale: speed after avkit v0.23.0 (55 ms, 44 ms EASU alone) Co-Authored-By: Claude Sonnet 5.5 --- content/en/upscale.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/content/en/upscale.md b/content/en/upscale.md index ee0450a..0d29dfb 100644 --- a/content/en/upscale.md +++ b/content/en/upscale.md @@ -46,12 +46,15 @@ One core of a Ryzen 9 7950X (load about 2), 1280x720 to 1920x1080, milliseconds | ffmpeg lanczos | 2.8 | | `upscale`, scalar (default build) | 242 (EASU alone 193) | | `upscale`, `GOEXPERIMENT=simd` (v0.22.0) | 82 (EASU alone 73) | +| `upscale`, `GOEXPERIMENT=simd` (v0.23.0) | 55 (EASU alone 44) | ffmpeg's figures subtract the source and the pixel conversion. The vector build uses the portable Go 1.27 `simd` package (AVX2 and AVX-512 on amd64, NEON on arm64); it is chosen at -start-up, so the default build is unchanged. It is still about 30 times slower than -ffmpeg's hand-written scaler, **an open defect**: the 12-tap gather per output pixel -dominates. Today `upscale` suits stills, offline work and small frames, not real-time 1080p. +start-up, so the default build is unchanged. v0.23.0 gathers each source row's taps once +(not once per output pixel), computes the edge analysis once per source pixel and packs +RGBA with vectors. It is still about 20 times slower than ffmpeg's hand-written scaler, +**an open defect**: the scalar gather, the input conversion and the EASU arithmetic take +roughly equal shares of what is left. Today `upscale` suits stills, offline work and small frames, not real-time 1080p. ## Reproduce {#reproduce}