phoronix-test-suite / test-profiles

A read-only Git copy of the OpenBenchmarking.org test profiles.
Other
68 stars 80 forks source link

system: Provide libpng decoding benchmark #303

Open joebonrichie opened 8 months ago

joebonrichie commented 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

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