Benchmark

Benchmark #

Benchmarks are done with AMD Ryzen 7 PRO 5850U with a customized image set: totaling 2.6 GB. Around 80% of the images were taken with a Sony A7 camera, with file sizes averaging around 15 MiB. The remaining 20% were smaller images with sizes ranging from 1 MiB to 5 MiB.

[Nova@WebP webp_bench]$ du -ch pics
17M	pics/pics/MC
6.1M	pics/pics/Wallpapers
2.0M	pics/pics/elk
151M	pics/pics/TUNA-SFD
32M	pics/pics/ThinkPad
322M	pics/pics
5.2M	pics/exif-orientation-examples
2.6G	pics
2.6G	total

For more info on benchmark framework, or you’d like to do a benchmark yourself, visit https://github.com/webp-sh/webp_bench.

Overall test results #

For time consumed(shorter is better)

For RAM usage(smaller is better)

VersionRAM Usage(jemalloc)Time (jemalloc)RAM Usage(glibc)Time (glibc)RAM Usage(tcmalloc)Time (tcmalloc)
0.8.0821598845377654
0.8.1534605625355755
0.8.2567605825456560
0.8.3586605595555868
0.8.4569615526059662
0.9.0543945369054397
0.9.1931198893199911203
0.9.2112720311141961094200
0.9.311651961043195973194
0.9.4113418910691951111196
0.9.5626616036056561
0.9.6621615106058661
0.9.7644976439567797
0.9.8627976669262599
0.9.96139665288624102
0.9.106389967910063598

Detailed test results on each version #

X axis is time consumed(shorter is better), Y axis is RAM usage(smaller is better).

Versionglibcjemalloctcmalloc
0.8.0
0.8.1
0.8.2
0.8.3
0.8.4
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
0.9.5
0.9.6
0.9.7
0.9.8
0.9.9
0.9.10

Benchmark on convert size(compression rate) #

Benchmarks are done on version before 0.6.0, as for versions after 0.6.0, our internal benchmark shows about 5 times faster.

8 core #

file_size_rangefile_numsrc_sizedist_sizetotalusersystemcpucore
(10KB,500KB)46001.3G310M1:44.49905.41s9.55s875%8
(500KB,1MB)35002.4G361M2:04.811092.50s7.98s881%8
(1MB,4MB)20003.8G342M2:32.641345.73s10.84s888%8
(4MB,32MB)5003.6G246M1:44.53916.91s12.03s888%8

1,2,4,8 core #

file_size_rangefile_numsrc_sizedist_size8421
(10KB,500KB)46001.3G310M1:44.492:18.493:36.055:20.88
(500KB,1MB)35002.4G361M2:04.812:49.464:16.416:28.97
(1MB,4MB)20003.8G342M2:32.643:26.185:22.157:53.45
(4MB,32MB)5003.6G246M1:44.532:21.223:39.165:28.65