The Wayback Machine - https://web.archive.org/web/20200908081133/https://github.com/libvips/vips-bench/
Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
Sep 22, 2016
Jul 23, 2014
Feb 18, 2013
Dec 27, 2014
Jul 19, 2019
Feb 18, 2013
Jan 19, 2017
Dec 1, 2015
Feb 18, 2013
Feb 18, 2013
Sep 1, 2014
Feb 18, 2013
Mar 14, 2019
Oct 12, 2017
Oct 12, 2017
Oct 12, 2017
Oct 12, 2017
Jul 13, 2015
Jul 13, 2015

README.md

vips-bench

We've written programs using number of different image processing systems to load a TIFF image, crop 100 pixels off every edge, shrink by 10% with bilinear interpolation, sharpen with a 3x3 convolution and save again. It's a trivial test but it does give some idea of the speed and memory behaviour of these libraries (and it's also quite fun to compare the code).

Bilinear interpolation is poor quality and no one would use it, but it is available everywhere.

Running the test

There's a driver program -- run

./benchmark.sh

to generate the test image and run all the benchmarks.

The program is very simple and doesn't do much error checking. You'll need to look through the output and make sure everything is working correctly. In particular, make sure you have all the packages installed. On Ubuntu, you can do this by running

sudo apt-get install imagemagick graphicsmagick libopencv-dev \
	python-imaging netpbm libvips nip2 libfreeimage-dev \
	exactimage

gem install rmagick ruby-vips image_science

You may need more recent versions of some packages. The netpbm in Ubuntu is very old and installing from the website is a good idea. Ubuntu libvips tends to lag as well.

Results

The speed and memory use page on the libvips website has a table of results.

TODO

The peakmem.pl program doesn't seem to be working correctly, investigate.

About

a simple image processing benchmark implemented in a range of image processing packages

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.