public
Last active

Chunky PNG performance: same benchmarks on Ruby 1.8.7, but added 'require "oily_png"' for a speed boost

  • Download Gist
Decoding speed
1 2 3 4 5 6 7 8 9 10 11
 
---------------------------------------------
ChunkyPNG (0.10.2) decoding benchmark (n=20)
---------------------------------------------
 
ChunkyPNG OilyPNG
PNG - no filtering ( 1.056832) ( 0.078345)
PNG - UP filtering ( 3.327986) ( 0.078387)
PNG - PAETH filtering ( 7.499367) ( 0.089143)
From RGBA pixelstream ( 0.032571) ( 0.035790)
From RGB pixelstream ( 0.221163) ( 0.226358)
Encoding speed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
 
---------------------------------------------
ChunkyPNG (0.10.2) encoding benchmark (n=20)
---------------------------------------------
 
ChunkyPNG OilyPNG
Autodetect (indexed) ( 1.762275) ( 0.715871)
:no_compression ( 0.999972) ( 0.704999)
:fast_rgba ( 0.279853) ( 0.098239)
:fast_rgb ( 0.285781) ( 0.071865)
:good_compression ( 1.015139) ( 0.717544)
:best_compression ( 3.809578) ( 0.713787)
:rgb ( 2.603707) ( 0.084677)
:rgba ( 3.451300) ( 0.114356)
:indexed ( 1.799546) ( 0.707457)
:interlaced ( 1.778964) ( 0.715108)
to RGBA pixelstream ( 0.242787) ( 0.250338)
to RGB pixelstream ( 0.257684) ( 0.264674)

How I can run these tests on my machine?

The scripts can be found here: https://github.com/wvanbergen/chunky_png/tree/master/benchmarks
I haven't run these for a while, so you may have to do some maintenance on them.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.