GithubHelp home page GithubHelp logo

imazen / vips-bench Goto Github PK

View Code? Open in Web Editor NEW

This project forked from libvips/vips-bench

0.0 3.0 0.0 641 KB

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

Shell 30.25% Ruby 26.88% C 19.93% C++ 7.96% Perl 6.34% Python 7.17% MATLAB 1.47%

vips-bench's Introduction

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).

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

There's stuff here to test imagescience as well, but it's not installing for me for some reason. It might work for you:

gem install 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.

The Octave test (vips.m) segvs for me on Ubuntu 13.04, try again later.

why is vips-cc faster than vips-c? vips-c is spending 40ms in startup, but we see a speed difference of 100ms ... they must be running different pipelines

vips-bench's People

Contributors

jcupitt avatar lilith avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.