Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

libvips/vips-bench

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

Running the test

  1. Put your system into performance mode with eg.:
   echo performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  1. Install any packages you are missing with eg.:
sudo apt-get install imagemagick graphicsmagick libopencv-dev \python-imaging netpbm libfreeimage-dev \exactimage gegl composer libvips nip2
  1. Make a venv for python and install the python and ruby packages
    python3 -m venv ~/vips    . ~/vips/bin/activate    pip install pyvips Pillow-SIMD gdlib gem install rmagick ruby-vips image_science

Then run the driver script:

./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 needto look through the output and make sure everything is working correctly. Inparticular, make sure you have all the packages installed.

Results

Thespeed and memory usepage on thelibvips 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp