Nigel Tao
0d33d3ef3a
Decode a GIF local color table
2018-02-11 15:30:18 +11:00
Nigel Tao
584fc631a8
Decode a GIF's loop count
2018-02-10 17:14:49 +11:00
Nigel Tao
ded38a043a
Add testdata/animated-red-blue.gif
2018-02-10 15:09:29 +11:00
Nigel Tao
d3770b9972
Add an end of data concept
2018-02-10 12:13:26 +11:00
Nigel Tao
7e90967717
Fill in a GIF image_config
2018-02-09 16:05:04 +11:00
Nigel Tao
d750ea7653
Add an image_config concept
2018-02-09 14:46:37 +11:00
Nigel Tao
de9000cc70
Add a call sequence concept
2018-02-08 09:06:19 +11:00
Nigel Tao
f5c6204f09
Strip the prefix from base status messages
2017-12-27 14:45:54 +11:00
Nigel Tao
2e12a41414
Make std/gif's LZW decoder private
2017-12-08 16:18:35 +11:00
Nigel Tao
6fec22c6d7
Move zlib tests from std/flate to std/zlib
2017-12-03 14:08:52 +11:00
Nigel Tao
56a2a926c5
Add comment about inlining C relative includes
2017-12-01 11:36:12 +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
1487da7af8
Add a -focus flag.
2017-11-03 17:54:29 +11:00
Nigel Tao
aec5715f12
Declare proc_filename exactly once.
2017-11-03 15:09:22 +11:00
Nigel Tao
d7c910fd1b
Avoid "array decl needs an explicit size".
2017-11-03 12:11:21 +11:00
Nigel Tao
e3822f9951
Re-introduce puffs_base__limit1.
...
It's not immediately obvious why this data structure performs differently, but
on net, the benchmark numbers seem better. It also won't require any
PUFFS_USE_NO_OP_PERFORMANCE_HACKS or "redundant but mysteriously performant"
use_limit fields.
name old speed new speed delta
puffs_adler32_10k/clang 2.46GB/s ± 0% 2.43GB/s ± 3% ~ (p=0.513 n=5+10)
puffs_adler32_100k/clang 2.46GB/s ± 0% 2.44GB/s ± 2% ~ (p=0.241 n=5+10)
puffs_flate_decode_1k/clang 122MB/s ± 1% 119MB/s ± 2% -1.86% (p=0.013 n=5+10)
puffs_flate_decode_10k/clang 147MB/s ± 0% 142MB/s ± 2% -3.47% (p=0.001 n=5+10)
puffs_flate_decode_100k/clang 161MB/s ± 0% 161MB/s ± 4% ~ (p=0.635 n=4+10)
puffs_zlib_decode_10k/clang 139MB/s ± 0% 135MB/s ± 1% -2.69% (p=0.001 n=5+10)
puffs_zlib_decode_100k/clang 151MB/s ± 0% 152MB/s ± 3% ~ (p=1.000 n=5+10)
puffs_adler32_10k/gcc 3.21GB/s ± 1% 3.18GB/s ± 2% ~ (p=0.310 n=5+10)
puffs_adler32_100k/gcc 3.22GB/s ± 0% 3.19GB/s ± 2% ~ (p=0.075 n=5+10)
puffs_flate_decode_1k/gcc 121MB/s ± 4% 126MB/s ± 1% +4.54% (p=0.002 n=5+8)
puffs_flate_decode_10k/gcc 144MB/s ± 1% 141MB/s ± 1% -2.52% (p=0.001 n=5+9)
puffs_flate_decode_100k/gcc 154MB/s ± 1% 158MB/s ± 0% +2.39% (p=0.001 n=5+9)
puffs_zlib_decode_10k/gcc 137MB/s ± 2% 135MB/s ± 1% ~ (p=0.055 n=5+10)
puffs_zlib_decode_100k/gcc 146MB/s ± 2% 150MB/s ± 0% +2.87% (p=0.001 n=5+10)
puffs_gif_lzw_decode_20k/clang 132MB/s ± 0% 125MB/s ± 0% -5.24% (p=0.001 n=5+10)
puffs_gif_lzw_decode_100k/clang 176MB/s ± 0% 164MB/s ± 0% -6.82% (p=0.001 n=5+9)
puffs_gif_decode_1k/clang 363MB/s ± 0% 339MB/s ± 1% -6.58% (p=0.002 n=4+10)
puffs_gif_decode_10k/clang 138MB/s ± 0% 133MB/s ± 1% -3.77% (p=0.001 n=5+10)
puffs_gif_decode_100k/clang 125MB/s ± 0% 119MB/s ± 0% -4.79% (p=0.001 n=5+10)
puffs_gif_decode_1000k/clang 127MB/s ± 0% 121MB/s ± 0% -5.04% (p=0.001 n=5+10)
puffs_gif_lzw_decode_20k/gcc 141MB/s ± 0% 140MB/s ± 2% ~ (p=1.000 n=5+10)
puffs_gif_lzw_decode_100k/gcc 182MB/s ± 0% 180MB/s ± 2% -1.56% (p=0.001 n=5+10)
puffs_gif_decode_1k/gcc 363MB/s ± 0% 409MB/s ± 3% +12.71% (p=0.001 n=5+10)
puffs_gif_decode_10k/gcc 127MB/s ± 0% 161MB/s ± 3% +26.15% (p=0.001 n=5+10)
puffs_gif_decode_100k/gcc 112MB/s ± 0% 136MB/s ± 2% +21.95% (p=0.001 n=5+10)
puffs_gif_decode_1000k/gcc 114MB/s ± 0% 140MB/s ± 2% +22.78% (p=0.001 n=5+10)
2017-11-03 10:09:57 +11:00
Nigel Tao
aa396e7992
Change cgen's limit from a count to a pointer.
2017-10-27 10:28:35 +11:00
Nigel Tao
e0836d73a8
Migrate tests to use new limit mechanism.
2017-10-27 07:49:08 +11:00
Nigel Tao
f29c4e278f
Follow the pkg__type__method convention for base.
2017-10-21 15:59:08 +11:00
Nigel Tao
6815375de5
Generate double '_'s for pkg__type__method names.
2017-10-21 15:10:25 +11:00
Nigel Tao
42933d4557
Refactor some tests.
2017-10-14 15:00:31 +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
ac405d485b
Rename some internal test functions.
2017-10-07 15:57:18 +11:00
Nigel Tao
d275b379a3
Remove the idea of limited reads and writes.
2017-10-07 15:32:00 +11:00
Nigel Tao
a28dba7fd9
Rename C's foo_constructor to foo_initializer.
2017-09-30 13:01:26 +10:00
Nigel Tao
552fcde35a
Remove C destructor functions; they're no-ops.
2017-09-30 12:57:55 +10:00
Nigel Tao
0a45eee9d0
Fix some comment grammar.
2017-07-29 17:24:01 +10:00
Nigel Tao
fe7e6ed10e
Handle suspending inside a skip32 call.
2017-07-16 19:28:09 +10:00
Nigel Tao
fa18eec3e9
Fix returning limited vs short read.
2017-07-16 19:26:58 +10:00
Nigel Tao
bd6d2ea3a1
Handle decoding a GIF in many short reads.
2017-07-16 19:25:49 +10:00
Nigel Tao
4302619eba
Add "PUFFS" to "ERROR_BAD_PUFFS_VERSION".
2017-07-13 11:34:36 +10:00
Nigel Tao
7a41ee4da1
Rename the "status" keyword to "suspension".
2017-07-07 16:54:19 +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
727073ac89
Make status code names ALL_CAPS; they're macros.
2017-07-06 12:42:09 +10:00
Nigel Tao
4a6907d18a
Tweak the "-mimic" flag comments.
2017-07-05 09:28:56 +10:00
Nigel Tao
5ef30a9b60
Add comment about manually running benchmarks.
2017-07-04 22:44:18 +10:00
Nigel Tao
d974988eab
Reset coro_state to zero at function end.
...
This allows us to call that coroutine function multiple times.
2017-07-02 13:59:42 +10:00
Nigel Tao
8d5ef6365d
Add mimic benchmarks.
2017-07-02 11:44:24 +10:00
Nigel Tao
a65e2bacf0
Add mimic tests.
2017-07-02 11:19:23 +10:00
Nigel Tao
30ca6d42b2
Rename some testdata files for consistency.
2017-06-30 10:47:00 +10:00
Nigel Tao
9fd51a9fc3
Re-organize some test/c/std/gif.c code.
2017-06-30 10:36:31 +10:00
Nigel Tao
6a0cdd4daf
Add some more giflzw tests.
2017-06-30 10:35:00 +10:00
Nigel Tao
0203d2f148
Compile with gcc without -std=c99.
2017-06-29 16:27:04 +10:00
Nigel Tao
ddde376744
Add testdata/hat.* images.
2017-06-29 15:51:45 +10:00
Nigel Tao
480c509214
Add benchmarks.
2017-06-29 14:13:23 +10:00
Nigel Tao
8fe438d0b4
Temporary code to continue this.lzw.decode calls.
...
This is a hard-coded, short term fix so that GIF decoding works
end-to-end. The long term fix is to have some principled way of
responding to non-fatal status codes such as "short read".
2017-06-23 15:46:08 +10:00
Nigel Tao
8ad82f5e1f
Generate C code to set coroutine state.
2017-06-23 15:35:18 +10:00