Perfomance benchmarks of libvips library in comparison with other various image processing systems.
Switch branches/tags
Clone or download
Latest commit 5de1dda Aug 22, 2017


The goal of this repo is to demonstrate the performance of the libvips library in comparison to other image processing systems. Currently an accent on ruby-vips: Ruby bindings for libvips library, is made.

Be sure to check out the official benchmarks page: VIPS - Speed and Memory Use for complete demonstration of performance and memory usage characteristics of VIPS library.

Last update: August 22, 2017


$ ./runner 
Linux kiwi 4.10.0-32-generic #36-Ubuntu SMP Tue Aug 8 12:10:06 UTC 2017 x86_64
x86_64 x86_64 GNU/Linux
Ruby-vips 2.0.0 built against vips-8.6.0-Tue Aug 22 12:13:36 BST 2017
Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114
Copyright: © 1999-2017 ImageMagick Studio LLC
Features: Cipher DPC Modules OpenMP 
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms
lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib
Image Science 1.3.0
building test image ...
test image is 1450 by 2210 pixels
making tiff and jpeg derivatives ...
timing ruby/ruby-vips.rb ... done
timing ruby/rmagick.rb ... done
timing image-magick/image-magick ... done
measuring memuse for ruby/ruby-vips.rb ... done
measuring memuse for ruby/rmagick.rb ... done

real time in seconds, fastest of five runs
benchmark	tiff	jpeg
ruby-vips.rb	0.85	0.78	
image-magick	2.03	2.44	
rmagick.rb	3.87	3.89	

peak memory use in bytes
benchmark	peak RSS
ruby-vips.rb	43864
rmagick.rb	788768

Performance test design

The repo has folders ruby/, cpp/ and others, each having platform specific scripts using various libraries available for this platform.

Each script is coded to execute the same scenario (see Scenario section).

Root folder contains runner script, running scripts available in all folders.

See "Do it yourself" section for how to run benchmark scenario.


Test scenario was taken from Speed and Memory use page from libvips Home page. The test is repeated 10 times.

Do it yourself

git clone

cd vips-benchmarks

bundle update

bundle exec ./runner 


Copyright (c) 2012, 2014 Stanislaw Pankevich and John Cupitt.