Skip to content

tools/fsrbench: the ffmpeg comparison as a tested cobra command - #144

Merged
tannevaled merged 2 commits into
mainfrom
fsrbench
Nov 29, 2026
Merged

tannevaled merged 2 commits into
mainfrom
fsrbench

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

Refs #141. Moves the measurement harness into the repository so the README tables can be reproduced: tools/fsrbench, a cobra command (quality and speed subcommands) in a module of its own, so the upscale package gains no dependency. It replaces the harness that lived outside the repo.

  • go run ./tools/fsrbench quality --gt in.png --dir <workdir>: PSNR/SSIM of ffmpeg bilinear, bicubic, lanczos and FSR against a ground truth.
  • go run ./tools/fsrbench speed --core 9: ms per frame of ffmpeg's scale filter, one thread, source and conversion subtracted.
  • The upscale side of the speed table is GOEXPERIMENT=simd go test -bench 720to1080 ./upscale (v0.22.0).

Tests run against a fake ffmpeg and taskset (no ffmpeg needed), hold 100% statement coverage, and each refusal test asserts its reason; a mutation sweep of all 21 refusal guards leaves no survivor. CI gains an fsrbench job (vet, race, 100% gate). README documents the commands.

🤖 Generated with Claude Code

tannevaled and others added 2 commits November 29, 2026 14:34
…141)

A module of its own (cobra v1.10.2, replace to this tree) so the
upscale package keeps no dependency. quality and speed subcommands are
the harness behind the README tables; its tests run against a fake
ffmpeg and taskset and hold 100% coverage, gated in CI.

Refs #141

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit 23212d5 into main Nov 29, 2026
20 checks passed
@tannevaled
tannevaled deleted the fsrbench branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant