Commit Graph
22 Commits
Author SHA1 Message Date
Nigel Tao 372618c817 Use the faster mimic_deflate API
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.
2018-01-05 18:22:25 +11:00
Nigel Tao 4877279ee7 Be able to test and bench the miniz library
For the record, benchstat numbers for 'old' being zlib-the-library and
'new' being miniz are below. Neither 'old' or 'new' is Wuffs code.

name                             old speed     new speed     delta
mimic_deflate_decode_1k/clang    217MB/s ± 1%  175MB/s ± 1%  -19.54%  (p=0.008 n=5+5)
mimic_deflate_decode_10k/clang   262MB/s ± 2%  222MB/s ± 0%  -15.34%  (p=0.008 n=5+5)
mimic_deflate_decode_100k/clang  281MB/s ± 1%  262MB/s ± 0%   -6.86%  (p=0.008 n=5+5)
mimic_deflate_decode_1k/gcc      220MB/s ± 1%  169MB/s ± 0%  -23.12%  (p=0.008 n=5+5)
mimic_deflate_decode_10k/gcc     267MB/s ± 0%  266MB/s ± 0%     ~     (p=0.222 n=5+5)
mimic_deflate_decode_100k/gcc    283MB/s ± 0%  282MB/s ± 1%     ~     (p=0.690 n=5+5)
mimic_zlib_decode_10k/clang      243MB/s ± 1%  197MB/s ± 1%  -18.68%  (p=0.008 n=5+5)
mimic_zlib_decode_100k/clang     287MB/s ± 1%  229MB/s ± 1%  -20.13%  (p=0.008 n=5+5)
mimic_zlib_decode_10k/gcc        243MB/s ± 0%  240MB/s ± 6%     ~     (p=0.730 n=5+5)
mimic_zlib_decode_100k/gcc       288MB/s ± 1%  260MB/s ± 0%   -9.51%  (p=0.008 n=5+5)
2017-12-15 11:33:35 +11:00
Nigel Tao 1388f84e5c Rename std/flate to std/deflate 2017-12-04 10:27:48 +11:00
Nigel Tao d168e6977b Rename test/c/mimiclib/flate.c 2017-12-03 14:34:41 +11:00
Nigel Tao dd3f0b9ed4 Add a placeholder std/zlib package 2017-12-02 11:21:30 +11:00
Nigel Tao 3c708dfe59 Rename PUFFS to WUFFS, part 7 of N 2017-11-30 18:02:59 +11:00
Nigel Tao 79a94558be Rename PUFFS to WUFFS, part 5 of N 2017-11-30 16:37:20 +11:00
Nigel Tao 94eba81892 Have mimiclib accept both giflib v4 and v5. 2017-11-03 11:35:16 +11:00
Nigel Tao f29c4e278f Follow the pkg__type__method convention for base. 2017-10-21 15:59:08 +11:00
Nigel Tao f9cea5c17c Fix the adler.update implementation. 2017-10-19 20:45:43 +11:00
Nigel Tao fca0cab724 Add write and read limits to some tests. 2017-10-14 14:52:54 +11:00
Nigel Tao d4372cb5b8 Change license to Apache 2.
Also remove explicit PATENTS file. The new LICENSE file already
discusses patents.

Note that the Puffs project has not yet been publicly released.
2017-10-12 11:17:41 +11:00
Nigel Tao 8be6dc3394 Add adler32 and crc32 benchmarks. 2017-07-14 13:01:08 +10:00
Nigel Tao 03572374dd Add zlib (not just raw flate) benchmark. 2017-07-14 12:00:00 +10:00
Nigel Tao 6c8414099a Add gzip (not just raw flate) benchmark. 2017-07-14 10:53:33 +10:00
Nigel Tao fe96654119 Rename some tests and benches for consistency. 2017-07-07 12:37:15 +10:00
Nigel Tao 0b9f9162a5 Add std/flate tests. 2017-07-07 12:06:54 +10:00
Nigel Tao 004a583aaf Add a comment about gif_mimic_DGifSlurp. 2017-07-02 13:26:42 +10:00
Nigel Tao 30f9c947f5 Roll back the custom gif_mimic_DGifSlurp function.
See the previous commit for the rationale.
2017-07-02 13:17:36 +10:00
Nigel Tao ab7e0ae795 Add a custom gif_mimic_DGifSlurp function.
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.
2017-07-02 13:12:45 +10:00
Nigel Tao c06580a4f9 Fix a typo. 2017-07-02 12:53:56 +10:00
Nigel Tao a65e2bacf0 Add mimic tests. 2017-07-02 11:19:23 +10:00