Benchmarking Webp format (draft)

Bensuperpc February 16, 2025 [Software] #Features #Webp #Benchmarking #Avif #JPG #JPEG #PNG #JPGXL #JPEGXL #Format

Introduction

In this article, we will benchmark the Webp against other formats like Avif, JPG, JPEG, PNG, Avif, JPGXL, and JPEGXL.

Webp is a modern image format created by Google, it support lossy and lossless compression, we will benchmark the lossy and lossless compression against other formats.

Setup

SpecificationValue
CPUAMD Ryzen 7 5700X 8c16t (3.4 GHz / 4.6 GHz)
GPUNVIDIA GeForce RTX 3060 Ti 8GB GDDR6
RAM64GB DDR4 3200MHz
OSManjaro
CompilerGCC 14.2.1
cwebp1.5.0
avifenc1.2.0
cjxl0.11.1
ffmpeg7.1.0
Docker Imagedocker.io/bensuperpc/multimedia:1.0.0-archlinux-base-20250228

Lossless compression

The dataset for the lossless benchmark is:

The PNG to Webp lossless compression command is:

cwebp -quiet -metadata all -lossless -exact -z <Compression> -q <Compression> <Input> -o <Output>

The options are:

For PNG to Avif lossless compression:

avifenc --jobs 1 --lossless --speed <Compression> --codec <codec> <Input> --output <Output>

The options are:

For PNG to JPGXL lossless compression:

cjxl --num_threads 1 --quiet --effort <Compression> --distance 0.0 --brotli_effort 11 <Input> <Output>

The options are:

Sources