Skip to content

@wvanbergen /Decoding speed
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Chunky PNG performance: same benchmarks on Ruby 1.8.7, but added 'require "oily_png"' for a speed boost
---------------------------------------------
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)
---------------------------------------------
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)
@ayosec

How I can run these tests on my machine?

@wvanbergen
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.