Open joebonrichie opened 8 months ago
There are two options that i know of: https://raw.githubusercontent.com/glennrp/libpng/libpng16/contrib/examples/pngtopng.c gcc -Ofast pngtopng.c -o pngtopng -lpng
gcc -Ofast pngtopng.c -o pngtopng -lpng
and https://raw.githubusercontent.com/joebonrichie/benchmarks/master/pngbench.c gcc -Ofast pngbench.c -o pngbench -lpng
gcc -Ofast pngbench.c -o pngbench -lpng
The user will need the libpng development package installed (e.g. libpng-devel) to link to a benchmark executable if applicable.
Typically testing on a large complex image such as: https://upload.wikimedia.org/wikipedia/commons/6/6a/PNG_Test.png, will produce the biggest differences.
At a system level, libpng decode performance will typically be improved from the following
There are two options that i know of: https://raw.githubusercontent.com/glennrp/libpng/libpng16/contrib/examples/pngtopng.c
gcc -Ofast pngtopng.c -o pngtopng -lpng
and https://raw.githubusercontent.com/joebonrichie/benchmarks/master/pngbench.c
gcc -Ofast pngbench.c -o pngbench -lpng
The user will need the libpng development package installed (e.g. libpng-devel) to link to a benchmark executable if applicable.
Typically testing on a large complex image such as: https://upload.wikimedia.org/wikipedia/commons/6/6a/PNG_Test.png, will produce the biggest differences.
At a system level, libpng decode performance will typically be improved from the following