Using https://github.com/google/oss-fuzz on .c files says:
clang-7.0: warning: treating 'c' input as 'c++' when in C++ mode, this
behavior is deprecated [-Wdeprecated]
Starting with the source image at:
https://en.wikipedia.org/wiki/File:Muybridge_race_horse_animated.gif
It was resized via:
gifsicle --use-colormap gray --resize 30x20 <etc >etc
The transparency-using frames were made stand-alone via:
convert etc -coalesce etc
A custom program re-mapped the palette indexes to the canonical
grayscale palette, so that palette index i means RGB (i, i, i), and
re-encoded the final GIF image. This program also generated the
*.indexes files.
On my machine (Debian Testing as of November 2017, Intel x86_64
Broadwell):
Rust 28.0 rustc 1.14 github.com/Geal/gif.rs
Rust 29.1 rustc 1.14 github.com/PistonDevelopers/image-gif
Go 62.7 go 1.9 standard library's image/gif
C 97.3 giflib 5.1 from Debian Testing's /usr/lib
Wuffs 123 clang 5.0
Wuffs 136 gcc 7.2
Numbers are megabytes per second, equivalent to megapixels per second
for GIF images.
There may be future bench-go-xxx programs, or of other languages.
On my machine, the throughput number that the program output also
changes from 24.7 (as reported in a prior commit message) to 28.0
megapixels per second. This is not due to any code changes, but because
in the meantime, I have also used the "cpupower" command line tool to
change policy from "powersave" to "performance".
name old speed new speed delta
mimic_deflate_decode_1k/gcc 217MB/s ± 1% 217MB/s ± 1% ~ (p=1.000 n=5+5)
mimic_deflate_decode_10k/gcc 260MB/s ± 2% 263MB/s ± 1% ~ (p=0.421 n=5+5)
mimic_deflate_decode_100k/gcc 277MB/s ± 1% 316MB/s ± 1% +13.95% (p=0.008 n=5+5)
Note that these numbers are for the C zlib library (these are "mimic"
numbers), not for the Wuffs code.