Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Perfomance benchmarks of libvips library in comparison with other various image processing systems.
Shell Ruby
tree: a89ed8890b

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


The goal of this repo is to demonstrate the performance of the libvips library in comparison to other image processing systems.

Now the accent on ruby-vips, Ruby bindings for libvips library, is made, but later the number of libraries (and platforms, I hope) will grow.

June 26, 2012 - Status

The repo is a setup phase. More tests are being added. Please do not expect all the code to working, stable and representative.

Benchmarks for 2012.06.26

Core(TM)2 Duo CPU     P7550  @ 2.26GHz
Linux kiwi 3.2.0-25-generic #40-Ubuntu SMP Wed May 23 20:30:51 UTC 2012 x86_64
x86_64 x86_64 GNU/Linux
vips-7.29.0-Sat Jun 23 21:51:53 BST 2012
Version: ImageMagick 6.6.9-7 2012-04-30 Q16
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP   

building test image ...
test image is 2900 by 4420 pixels
making tiff and jpeg derivatives ...
timing ruby/ruby-vips.rb ... done
timing ruby/rmagick.rb ... done
timing image-magick/image-magick ... done
timing ruby/image_sci.rb ... done
timing netpbm/ ... done
measuring memuse for ruby/ruby-vips.rb ... done
measuring memuse for ruby/rmagick.rb ... done
measuring memuse for ruby/image_sci.rb ... done

real time in seconds, fastest of three runs
benchmark       tiff    jpeg
ruby-vips.rb    0.45    0.56    
rmagick.rb      1.69    1.90       1.74    1.63    
image-magick    2.87    3.02    
image_sci.rb    3.19    2.90    

peak memory use in kilobytes
benchmark       peak RSS
ruby-vips.rb    160400
image_sci.rb    546992
rmagick.rb      1370064

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

Do it yourself

git clone

cd vips-benchmarks



  • Scenario: more solid!
  • More libraries for ruby
  • More platforms (suggestions are welcome!)


Copyright (c) 2012 Stanislaw Pankevich and John Cupitt.

Something went wrong with that request. Please try again.