Skip to content

Instantly share code, notes, and snippets.

@Efreak
Created October 4, 2023 20:40
Show Gist options
  • Save Efreak/870d887fb8ef7e570f8c75188a50299a to your computer and use it in GitHub Desktop.
Save Efreak/870d887fb8ef7e570f8c75188a50299a to your computer and use it in GitHub Desktop.
cwebp timings. note that many of these functions arent available in PIL, such as -af, -sharp_yuv, -mt. Also, I did this on my tablet, as its *far* faster than my server, but its also throttled so 🤷
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 6880222 bytes Y-U-V-All-PSNR 47.94 52.10 52.17 48.95 dB
(1.48 bpp)
real 2m30.154s user 2m27.761s sys 0m1.756s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 3727352 bytes Y-U-V-All-PSNR 45.05 50.63 50.92 46.27 dB
(0.80 bpp)
real 1m53.296s user 1m51.931s sys 0m1.035s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 7215530 bytes Y-U-V-All-PSNR 47.90 52.10 52.17 48.91 dB
(1.55 bpp)
real 1m18.359s user 1m16.521s sys 0m1.733s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 4173380 bytes Y-U-V-All-PSNR 44.97 50.63 50.92 46.19 dB
(0.90 bpp)
real 1m18.101s user 1m16.830s sys 0m1.123s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 6895720 bytes Y-U-V-All-PSNR 47.95 52.10 52.17 48.95 dB
(1.48 bpp)
real 1m18.731s user 1m17.801s sys 0m0.816s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 3722008 bytes Y-U-V-All-PSNR 45.04 50.63 50.92 46.26 dB
(0.80 bpp)
real 0m26.253s user 0m25.947s sys 0m0.428s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 7221714 bytes Y-U-V-All-PSNR 47.90 52.10 52.17 48.91 dB
(1.55 bpp)
real 0m54.082s user 0m53.341s sys 0m0.726s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 4171976 bytes Y-U-V-All-PSNR 44.98 50.63 50.92 46.20 dB
(0.90 bpp)
real 1m6.880s user 1m6.181s sys 0m0.617s
+ cwebp -m 6 -noalpha -mt -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 6485306 bytes Y-U-V-All-PSNR 47.97 53.22 53.29 49.13 dB
(1.40 bpp)
real 0m48.168s user 0m47.706s sys 0m0.488s
+ cwebp -m 6 -noalpha -mt -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 3660458 bytes Y-U-V-All-PSNR 45.06 52.05 52.32 46.42 dB
(0.79 bpp)
real 0m11.258s user 0m11.307s sys 0m0.179s
+ cwebp -m 4 -noalpha -mt -progress -q 95 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 6804060 bytes Y-U-V-All-PSNR 47.93 53.22 53.29 49.09 dB
(1.46 bpp)
real 0m23.542s user 0m23.229s sys 0m0.448s
+ cwebp -m 4 -noalpha -mt -progress -q 90 decaying-elegance-5376x6912.png -o decaying-elegance-5376x6912.tmp.webp -metadata all
Output: 4107236 bytes Y-U-V-All-PSNR 44.99 52.05 52.32 46.36 dB
(0.88 bpp)
real 0m21.434s user 0m21.177s sys 0m0.428s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 95 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 315138 bytes Y-U-V-All-PSNR 47.77 47.08 47.63 47.63 dB
(2.40 bpp)
real 0m4.541s user 0m4.458s sys 0m0.040s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 90 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 213242 bytes Y-U-V-All-PSNR 43.94 44.12 44.98 44.12 dB
(1.63 bpp)
real 0m4.024s user 0m3.959s sys 0m0.030s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 95 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 323202 bytes Y-U-V-All-PSNR 47.91 47.08 47.63 47.71 dB
(2.47 bpp)
real 0m2.146s user 0m2.070s sys 0m0.070s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -pass 10 -progress -q 90 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 221974 bytes Y-U-V-All-PSNR 44.18 44.12 44.98 44.29 dB
(1.69 bpp)
real 0m2.151s user 0m2.095s sys 0m0.050s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -progress -q 95 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 315108 bytes Y-U-V-All-PSNR 47.76 47.08 47.63 47.62 dB
(2.40 bpp)
real 0m0.849s user 0m0.829s sys 0m0.020s
+ cwebp -m 6 -sharp_yuv -af -noalpha -mt -progress -q 90 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 213102 bytes Y-U-V-All-PSNR 43.92 44.11 44.98 44.11 dB
(1.63 bpp)
real 0m0.906s user 0m0.885s sys 0m0.020s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -progress -q 95 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 323458 bytes Y-U-V-All-PSNR 47.90 47.08 47.63 47.70 dB
(2.47 bpp)
real 0m0.616s user 0m0.587s sys 0m0.030s
+ cwebp -m 4 -sharp_yuv -af -noalpha -mt -progress -q 90 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 221964 bytes Y-U-V-All-PSNR 44.18 44.11 44.98 44.29 dB
(1.69 bpp)
real 0m0.716s user 0m0.697s sys 0m0.020s
+ cwebp -m 6 -noalpha -mt -progress -q 95 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 302916 bytes Y-U-V-All-PSNR 47.87 48.52 49.17 48.17 dB
(2.31 bpp)
real 0m0.517s user 0m0.510s sys 0m0.010s
+ cwebp -m 6 -noalpha -mt -progress -q 90 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 203624 bytes Y-U-V-All-PSNR 44.04 45.33 46.30 44.55 dB
(1.55 bpp)
real 0m0.459s user 0m0.459s sys 0m0.001s
+ cwebp -m 4 -noalpha -mt -progress -q 95 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 311154 bytes Y-U-V-All-PSNR 48.02 48.52 49.17 48.27 dB
(2.37 bpp)
real 0m0.291s user 0m0.266s sys 0m0.029s
+ cwebp -m 4 -noalpha -mt -progress -q 90 salad_monster-1024x1024.png -o salad_monster-1024x1024.webp -metadata all
Output: 212182 bytes Y-U-V-All-PSNR 44.30 45.33 46.30 44.74 dB
(1.62 bpp)
real 0m0.259s user 0m0.250s sys 0m0.011s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment