Ran on /tmp (with useTmpfs), where the files are, and directly from TTY1 (without any DE running).
-
Shell A:
nix shell nixpkgs#hyperfine nixpkgs#ffmpeg-headless
-
Shell B:
nix shell nixpkgs#hyperfine chaotic#pkgsx86_64_v3.ffmpeg-headless
-
Benchmark parameter:
hyperfine -w 3 -M 10
-
Benchmark command:
ffmpeg -threads 1 -y -i 01._Radio_Ga_Ga.flac -f ogg /dev/null
Benchmark A: /nix/store/3f8nyvxhrcrhcyby0wb7an2clw5db7pl-ffmpeg-headless-6.0-bin/bin/ffmpeg -threads 1 -y -i 01._Radio_Ga_Ga.flac -f ogg /dev/null
Time (mean ± σ): 6.489 s ± 0.024 s [User: 6.848 s, System: 0.068 s]
Range (min … max): 6.459 s … 6.517 s 10 runs
Benchmark B: /nix/store/4gww1p6q8chlj5w1lpqby49yxq62zrpn-ffmpeg-headless-6.0-bin/bin/ffmpeg -threads 1 -y -i 01._Radio_Ga_Ga.flac -f ogg /dev/null
Time (mean ± σ): 5.762 s ± 0.124 s [User: 6.110 s, System: 0.069 s]
Range (min … max): 5.665 s … 6.009 s 10 runs
-
Shell C:
nix shell nixpkgs#hyperfine nixpkgs#imagemagick7
-
Shell D:
nix shell nixpkgs#hyperfine chaotic#pkgsx86_64_v3.imagemagick7
-
Benchmark parameter:
hyperfine -w 5 -M 10
-
Benchmark command:
magick convert ./Aenami-Lost-in-Between.jpg -monochrome /dev/null
Benchmark C: /nix/store/bgmy5jyi2scqwv1drz9ik7cg8fdx28zq-imagemagick-7.1.1-21/bin/magick convert ./Aenami-Lost-in-Between.jpg -monochrome /dev/null
Time (mean ± σ): 365.4 ms ± 1.7 ms [User: 687.4 ms, System: 23.4 ms]
Range (min … max): 363.9 ms … 369.4 ms 10 runs
Benchmark D: /nix/store/g2iprm7ffagmd76j0zkhh4vrm84h0skb-imagemagick-7.1.1-21/bin/magick convert ./Aenami-Lost-in-Between.jpg -monochrome /dev/null
Time (mean ± σ): 321.5 ms ± 0.8 ms [User: 642.2 ms, System: 17.0 ms]
Range (min … max): 320.6 ms … 323.0 ms 10 runs
- H264->VP9 was also tested, but considered not interesting as the speed-up was less than 1%
- Gaussian-Blur was also tested, but considered not interesting as the speed-up was less than 1%
- Nxpkgs:
github:NixOS/nixpkgs/e4ad989506ec7d71f7302cc3067abd82730a4beb
- Chaotic:
github:chaotic-cx/nyx/aaf2891edc4be52cf27ab3a0411e34146f5259d3
- Machine probe