Nigel Tao
|
829519880a
|
Drop unnecessary memcpy in do_bench_image_decode
This doesn't affect the std/bmp or std/gif implementations per se, only
the code that benches them. Prior to this commit, the source file was
first decoded into a pixel buffer and then always copied from the
(2-dimensional) wuffs_base__pixel_buffer to a (1-dimensional)
wuffs_base_io_buffer. That copy is useful for *tests*, which compare
that io_buffer's contents to a known good result (i.e. a separate I/O
buffer filled with the contents of a golden file), but it isn't
necessary for *benches*. Dropping that unnecessary copy reduces the
total time per iteration, and therefore increases the reported speed.
name old speed new speed delta
wuffs_bmp_decode_40k/clang5 2.09GB/s ± 2% 2.48GB/s ± 0% +18.78% (p=0.008 n=5+5)
wuffs_bmp_decode_40k/gcc7 1.73GB/s ± 1% 1.93GB/s ± 0% +11.54% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/clang5 291MB/s ± 0% 376MB/s ± 1% +29.14% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_full_init/clang5 95.3MB/s ± 1% 103.2MB/s ± 1% +8.37% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/clang5 117MB/s ± 0% 130MB/s ± 0% +10.68% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/clang5 469MB/s ± 0% 489MB/s ± 1% +4.39% (p=0.008 n=5+5)
wuffs_gif_decode_10k_indexed/clang5 126MB/s ± 1% 130MB/s ± 1% +3.50% (p=0.008 n=5+5)
wuffs_gif_decode_20k/clang5 152MB/s ± 0% 156MB/s ± 1% +2.77% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/clang5 318MB/s ± 0% 329MB/s ± 0% +3.53% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/clang5 137MB/s ± 0% 139MB/s ± 0% +1.40% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/clang5 138MB/s ± 0% 140MB/s ± 1% +1.45% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/clang5 139MB/s ± 0% 140MB/s ± 1% +1.03% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/clang5 661MB/s ± 0% 747MB/s ± 1% +13.08% (p=0.008 n=5+5)
mimic_gif_decode_1k_bw/clang5 92.0MB/s ± 0% 91.9MB/s ± 1% ~ (p=0.841 n=5+5)
mimic_gif_decode_1k_color/clang5 45.5MB/s ± 0% 45.7MB/s ± 0% +0.45% (p=0.032 n=5+4)
mimic_gif_decode_10k_indexed/clang5 53.5MB/s ± 0% 53.7MB/s ± 0% +0.31% (p=0.032 n=5+4)
mimic_gif_decode_20k/clang5 55.5MB/s ± 0% 55.1MB/s ± 2% ~ (p=0.690 n=5+5)
mimic_gif_decode_100k_artificial/clang5 88.8MB/s ± 0% 89.0MB/s ± 1% ~ (p=0.151 n=5+5)
mimic_gif_decode_100k_realistic/clang5 53.5MB/s ± 1% 53.7MB/s ± 0% +0.31% (p=0.024 n=5+5)
mimic_gif_decode_1000k/clang5 54.6MB/s ± 0% 54.6MB/s ± 1% ~ (p=0.222 n=5+5)
mimic_gif_decode_anim_screencap/clang5 106MB/s ± 0% 109MB/s ± 0% +2.59% (p=0.008 n=5+5)
wuffs_gif_decode_1k_bw/gcc7 284MB/s ± 0% 356MB/s ± 0% +25.33% (p=0.016 n=4+5)
wuffs_gif_decode_1k_color_full_init/gcc7 82.1MB/s ± 0% 95.3MB/s ± 0% +16.08% (p=0.008 n=5+5)
wuffs_gif_decode_1k_color_part_init/gcc7 97.5MB/s ± 0% 117.4MB/s ± 0% +20.39% (p=0.008 n=5+5)
wuffs_gif_decode_10k_bgra/gcc7 345MB/s ± 0% 396MB/s ± 0% +14.71% (p=0.016 n=4+5)
wuffs_gif_decode_10k_indexed/gcc7 104MB/s ± 0% 121MB/s ± 0% +16.38% (p=0.008 n=5+5)
wuffs_gif_decode_20k/gcc7 131MB/s ± 0% 149MB/s ± 0% +13.55% (p=0.008 n=5+5)
wuffs_gif_decode_100k_artificial/gcc7 293MB/s ± 0% 321MB/s ± 1% +9.77% (p=0.008 n=5+5)
wuffs_gif_decode_100k_realistic/gcc7 116MB/s ± 1% 130MB/s ± 1% +12.10% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_full_init/gcc7 117MB/s ± 1% 132MB/s ± 1% +12.53% (p=0.008 n=5+5)
wuffs_gif_decode_1000k_part_init/gcc7 117MB/s ± 0% 132MB/s ± 1% +12.20% (p=0.008 n=5+5)
wuffs_gif_decode_anim_screencap/gcc7 615MB/s ± 2% 711MB/s ± 2% +15.53% (p=0.008 n=5+5)
mimic_gif_decode_1k_bw/gcc7 91.4MB/s ± 0% 91.7MB/s ± 1% ~ (p=0.095 n=5+5)
mimic_gif_decode_1k_color/gcc7 46.3MB/s ± 0% 46.2MB/s ± 2% ~ (p=0.841 n=5+5)
mimic_gif_decode_10k_indexed/gcc7 51.9MB/s ± 1% 51.7MB/s ± 1% ~ (p=0.310 n=5+5)
mimic_gif_decode_20k/gcc7 54.2MB/s ± 0% 54.2MB/s ± 1% ~ (p=0.421 n=5+5)
mimic_gif_decode_100k_artificial/gcc7 88.4MB/s ± 1% 88.7MB/s ± 1% ~ (p=0.222 n=5+5)
mimic_gif_decode_100k_realistic/gcc7 53.7MB/s ± 0% 53.7MB/s ± 0% ~ (p=0.206 n=5+5)
mimic_gif_decode_1000k/gcc7 53.8MB/s ± 2% 54.0MB/s ± 2% ~ (p=0.690 n=5+5)
mimic_gif_decode_anim_screencap/gcc7 106MB/s ± 0% 109MB/s ± 0% +2.79% (p=0.008 n=5+5)
|
2020-06-01 13:59:50 +10:00 |
|
Nigel Tao
|
4b9b971436
|
Harmonize do_bench_{gif,image}_decode
|
2020-06-01 13:27:46 +10:00 |
|
Nigel Tao
|
7a85f67b22
|
Add std/bmp benchmark
|
2020-06-01 13:03:03 +10:00 |
|
Nigel Tao
|
496e88b6c5
|
Remove wuffs_base__token__link_prev
|
2020-04-09 22:11:08 +10:00 |
|
Nigel Tao
|
3385efa7fd
|
Update token debug format for extended tokens
|
2020-04-02 12:10:10 +11:00 |
|
Nigel Tao
|
b72dd16f9b
|
Have test/* global variable names start with g_
|
2020-03-27 17:12:38 +11:00 |
|
Nigel Tao
|
f3146c2ea9
|
Add base.token_decoder.workbuf_len
|
2020-03-26 08:47:42 +11:00 |
|
Nigel Tao
|
fdac24a425
|
Rename FOO_BUFFER_SIZE to FOO_BUFFER_ARRAY_SIZE
|
2020-03-06 21:53:08 +11:00 |
|
Nigel Tao
|
6e7d1410ee
|
Redo how example/jsonptr's -indent=N -tabs works
|
2020-03-06 09:21:35 +11:00 |
|
Nigel Tao
|
6892095998
|
Have C programs handle flags consistently
|
2020-03-03 11:25:18 +11:00 |
|
Nigel Tao
|
d1c928a1ed
|
Have tokens include explicit link bits
|
2020-02-29 10:46:44 +11:00 |
|
Nigel Tao
|
1ad5cfac4d
|
Make wuffs_base__{load,store}_uNNxe public
|
2020-02-27 10:58:14 +11:00 |
|
Nigel Tao
|
193527bd2d
|
Add script/print-json-token-debug-format.c
|
2020-02-26 22:47:31 +11:00 |
|
Nigel Tao
|
f31819bed4
|
Remove testlib's "#ifdef WUFFS_INCLUDE_GUARD"
|
2020-02-26 10:20:45 +11:00 |
|
Nigel Tao
|
014b935d95
|
Add base.token_decoder interface
|
2020-02-26 10:19:49 +11:00 |
|
Nigel Tao
|
31e5365a26
|
Rename testlib's BUFFER_SIZE constant
|
2020-02-26 09:45:05 +11:00 |
|
Nigel Tao
|
2914bae3b2
|
Re-format C function signatures
|
2020-02-26 09:40:30 +11:00 |
|
Nigel Tao
|
51b1258b61
|
Rename test/c throughput_counter enums
|
2020-02-25 22:46:49 +11:00 |
|
Nigel Tao
|
7d31462e63
|
Add std/json benches
|
2020-02-25 22:42:18 +11:00 |
|
Nigel Tao
|
7b199116b0
|
Rename s/got/have/ in test/c
|
2020-02-24 21:23:58 +11:00 |
|
Nigel Tao
|
737e31ff3a
|
Add tokens
|
2020-02-11 12:02:58 +11:00 |
|
Nigel Tao
|
f50e161677
|
Add image_config_decoder interface test
|
2020-02-02 20:18:10 +11:00 |
|
Nigel Tao
|
557c2b7998
|
Add wuffs_base__pixel_buffer__color_u32_at
|
2020-01-24 21:39:19 +11:00 |
|
Nigel Tao
|
1a791217de
|
Add wuffs_base__pixel_blend type
|
2020-01-14 09:27:04 +11:00 |
|
Nigel Tao
|
c8e3a94200
|
Add base.image_decoder
|
2020-01-12 12:18:02 +11:00 |
|
Nigel Tao
|
e77c5d7001
|
Have hasher_u32 test take a filename arg
|
2020-01-12 11:38:18 +11:00 |
|
Nigel Tao
|
adf63e23b0
|
Add base.io_transformer.workbuf_len
|
2020-01-12 09:44:41 +11:00 |
|
Nigel Tao
|
92a5bfd7ec
|
Have various structs implement base.io_transformer
|
2020-01-11 22:25:31 +11:00 |
|
Nigel Tao
|
fd5c0143ab
|
Fix testlib -Werror=pedantic failures
|
2020-01-10 14:14:23 +11:00 |
|
Nigel Tao
|
72fcc2d94f
|
Add upcast methods
|
2020-01-10 14:04:07 +11:00 |
|
Nigel Tao
|
eeae6098b6
|
Add "do ... while(0)" around CHECK_ETC test macros
|
2020-01-08 13:59:50 +11:00 |
|
Nigel Tao
|
fabfff05d1
|
Have pixel_foo methods take pointer receivers
|
2020-01-05 13:33:52 +11:00 |
|
Nigel Tao
|
0319777cce
|
Have tests print all of status.repr
|
2020-01-05 12:56:48 +11:00 |
|
Nigel Tao
|
7f1572ca16
|
Add CHECK_STATUS testlib macro
|
2020-01-05 12:50:56 +11:00 |
|
Nigel Tao
|
77a5311c4b
|
Add CHECK_STRING testlib macro
|
2020-01-05 11:19:22 +11:00 |
|
Nigel Tao
|
948c6fb239
|
Avoid gcc's -Werror=format-truncation for snprintf
|
2019-10-14 09:31:15 +11:00 |
|
Nigel Tao
|
c36b4d79c4
|
Add a mimic test for zlib dictionaries
|
2019-08-11 20:06:29 +10:00 |
|
Nigel Tao
|
e5f535db4f
|
Remove set_{reader,writer}_limit in test/c code
|
2019-07-06 08:43:41 +10:00 |
|
Nigel Tao
|
ffeb2bff63
|
Split benchmarks for full / partial initialization
|
2019-02-24 16:54:19 +11:00 |
|
Nigel Tao
|
031783f9c8
|
Add C compiler version to test and bench output
|
2019-01-12 14:52:30 +11:00 |
|
Nigel Tao
|
dd3d9f6766
|
Add wuffs_base__pixel_format__bits_per_pixel
|
2019-01-12 11:52:02 +11:00 |
|
Nigel Tao
|
dd94ad3821
|
Rename z variable to status, in C code
|
2018-12-28 16:14:03 +11:00 |
|
Nigel Tao
|
529ebb0a61
|
Introduce binary alpha
|
2018-12-22 08:48:49 +11:00 |
|
Nigel Tao
|
45ab79b451
|
Allow GIF decoding to non-indexed pixel formats
|
2018-12-08 16:08:02 +11:00 |
|
Nigel Tao
|
3854ce3e89
|
Let test binaries run from any dir in the repo
Also spin out generate.WuffsRoot into its own package.
|
2018-11-03 08:46:31 +11:00 |
|
Nigel Tao
|
6cc954d7e1
|
Have tests return a "const char*" status
|
2018-09-22 08:43:56 +10:00 |
|
Nigel Tao
|
b6da2f4fb4
|
Clean up iters vs iters_unscaled
|
2018-09-15 19:42:27 +10:00 |
|
Nigel Tao
|
058d435759
|
Don't repeat tests iterscale times
|
2018-09-15 17:33:39 +10:00 |
|
Nigel Tao
|
6fed251b40
|
Split an io_buffer's fields into data and meta
|
2018-09-15 08:45:50 +10:00 |
|
Nigel Tao
|
2e804c8f20
|
Remove the testlib's global_palette_buffer
|
2018-09-09 21:50:28 +10:00 |
|