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.
This avoids some malloc's of intermediate buffers when using giflib,
i.e. for mimic benchmarks. The numbers don't show a huge difference:
name old speed new speed delta
gif_mimic_decode_1k/clang 158MB/s ± 0% 158MB/s ± 2% ~ (p=0.421 n=5+5)
gif_mimic_decode_10k/clang 94.5MB/s ± 0% 93.8MB/s ± 1% -0.70% (p=0.016 n=5+5)
gif_mimic_decode_100k/clang 100MB/s ± 0% 100MB/s ± 0% -0.42% (p=0.008 n=5+5)
gif_mimic_decode_1000k/clang 102MB/s ± 0% 102MB/s ± 0% -0.29% (p=0.016 n=5+5)
gif_mimic_decode_1k/gcc 158MB/s ± 1% 160MB/s ± 0% +1.34% (p=0.008 n=5+5)
gif_mimic_decode_10k/gcc 94.3MB/s ± 0% 94.6MB/s ± 0% +0.36% (p=0.008 n=5+5)
gif_mimic_decode_100k/gcc 100MB/s ± 0% 101MB/s ± 0% +0.46% (p=0.008 n=5+5)
gif_mimic_decode_1000k/gcc 102MB/s ± 0% 103MB/s ± 0% +0.70% (p=0.008 n=5+5)
This commit will immediately be followed by a rollback, but it is
committed anyway so that we can refer to these numbers in the git log.