Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <workdir>` and
Expand Down
Loading