mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-20 00:47:28 +01:00
ca76a01ac2525ef89e39615ad621f4efe39e8a2e
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
592bc14ed1 |
Have std/deflate allow non-compact dst history
Fixes #52 On a mid-range x86_64 laptop (2016, Skylake): name old speed new speed delta wuffs_deflate_decode_1k_full_init/clang9 101MB/s ± 1% 100MB/s ± 1% -1.22% (p=0.000 n=9+9) wuffs_deflate_decode_1k_part_init/clang9 119MB/s ± 1% 119MB/s ± 1% ~ (p=0.139 n=8+9) wuffs_deflate_decode_10k_full_init/clang9 221MB/s ± 1% 210MB/s ± 1% -4.94% (p=0.000 n=9+9) wuffs_deflate_decode_10k_part_init/clang9 225MB/s ± 3% 215MB/s ± 1% -4.33% (p=0.000 n=10+8) wuffs_deflate_decode_100k_just_one_read/clang9 290MB/s ± 0% 284MB/s ± 1% -2.26% (p=0.000 n=8+9) wuffs_deflate_decode_100k_many_big_reads/clang9 188MB/s ± 3% 177MB/s ± 1% -5.78% (p=0.000 n=9+10) wuffs_deflate_decode_1k_full_init/gcc10 101MB/s ± 0% 97MB/s ± 1% -3.65% (p=0.000 n=8+9) wuffs_deflate_decode_1k_part_init/gcc10 119MB/s ± 1% 113MB/s ± 2% -4.65% (p=0.000 n=9+9) wuffs_deflate_decode_10k_full_init/gcc10 214MB/s ± 3% 224MB/s ± 1% +4.83% (p=0.000 n=10+10) wuffs_deflate_decode_10k_part_init/gcc10 222MB/s ± 1% 231MB/s ± 1% +4.03% (p=0.000 n=9+10) wuffs_deflate_decode_100k_just_one_read/gcc10 281MB/s ± 2% 297MB/s ± 0% +5.78% (p=0.000 n=9+9) wuffs_deflate_decode_100k_many_big_reads/gcc10 184MB/s ± 0% 194MB/s ± 0% +5.85% (p=0.000 n=10+8) mimic_deflate_decode_1k_full_init 138MB/s ± 1% 138MB/s ± 0% ~ (p=0.546 n=9+9) mimic_deflate_decode_10k_full_init 156MB/s ± 2% 156MB/s ± 0% ~ (p=0.387 n=9+9) mimic_deflate_decode_100k_just_one_read 191MB/s ± 1% 190MB/s ± 2% -0.94% (p=0.004 n=9+10) mimic_deflate_decode_100k_many_big_reads 147MB/s ± 1% 147MB/s ± 1% ~ (p=0.356 n=9+10) wuffs_gzip_decode_10k/clang9 220MB/s ± 1% 209MB/s ± 1% -5.29% (p=0.000 n=10+9) wuffs_gzip_decode_100k/clang9 283MB/s ± 2% 279MB/s ± 1% -1.47% (p=0.002 n=10+10) wuffs_gzip_decode_10k/gcc10 218MB/s ± 1% 214MB/s ± 2% -1.76% (p=0.000 n=9+10) wuffs_gzip_decode_100k/gcc10 274MB/s ± 0% 264MB/s ± 2% -3.61% (p=0.000 n=7+10) mimic_gzip_decode_10k 131MB/s ± 2% 132MB/s ± 0% +0.81% (p=0.000 n=10+8) mimic_gzip_decode_100k 156MB/s ± 0% 156MB/s ± 1% ~ (p=0.423 n=8+9) wuffs_zlib_decode_10k/clang9 223MB/s ± 2% 209MB/s ± 2% -6.41% (p=0.000 n=10+10) wuffs_zlib_decode_100k/clang9 285MB/s ± 0% 280MB/s ± 0% -1.87% (p=0.000 n=8+9) wuffs_zlib_decode_10k/gcc10 235MB/s ± 0% 215MB/s ± 1% -8.22% (p=0.000 n=10+9) wuffs_zlib_decode_100k/gcc10 293MB/s ± 0% 268MB/s ± 1% -8.38% (p=0.000 n=8+10) mimic_zlib_decode_10k 145MB/s ± 1% 145MB/s ± 1% -0.45% (p=0.004 n=9+9) mimic_zlib_decode_100k 175MB/s ± 1% 174MB/s ± 0% ~ (p=0.055 n=10+8) wuffs_png_decode_image_19k_8bpp/clang9 142MB/s ± 1% 152MB/s ± 1% +6.98% (p=0.000 n=9+9) wuffs_png_decode_image_40k_24bpp/clang9 172MB/s ± 0% 170MB/s ± 0% -1.63% (p=0.000 n=8+9) wuffs_png_decode_image_77k_8bpp/clang9 504MB/s ± 2% 540MB/s ± 1% +7.28% (p=0.000 n=9+10) wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 462MB/s ± 1% 470MB/s ± 0% +1.57% (p=0.000 n=9+10) wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 445MB/s ± 1% 451MB/s ± 0% +1.49% (p=0.000 n=8+10) wuffs_png_decode_image_4002k_24bpp/clang9 175MB/s ± 3% 175MB/s ± 1% ~ (p=0.356 n=9+10) wuffs_png_decode_image_19k_8bpp/gcc10 150MB/s ± 0% 153MB/s ± 1% +2.03% (p=0.000 n=10+10) wuffs_png_decode_image_40k_24bpp/gcc10 186MB/s ± 0% 186MB/s ± 0% ~ (p=0.408 n=10+8) wuffs_png_decode_image_77k_8bpp/gcc10 543MB/s ± 0% 542MB/s ± 0% -0.23% (p=0.019 n=9+9) wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc10 478MB/s ± 1% 498MB/s ± 0% +4.12% (p=0.000 n=10+9) wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc10 451MB/s ± 4% 476MB/s ± 0% +5.37% (p=0.000 n=10+9) wuffs_png_decode_image_4002k_24bpp/gcc10 185MB/s ± 2% 190MB/s ± 1% +2.78% (p=0.000 n=10+9) mimic_png_decode_image_19k_8bpp 63.0MB/s ± 0% 62.9MB/s ± 1% ~ (p=0.673 n=8+9) mimic_png_decode_image_40k_24bpp 78.7MB/s ± 0% 78.9MB/s ± 0% ~ (p=0.059 n=9+8) mimic_png_decode_image_77k_8bpp 192MB/s ± 1% 193MB/s ± 3% +0.44% (p=0.028 n=10+9) mimic_png_decode_image_552k_32bpp_verify_checksum 157MB/s ± 0% 158MB/s ± 1% ~ (p=0.053 n=10+9) mimic_png_decode_image_4002k_24bpp 113MB/s ± 1% 113MB/s ± 1% ~ (p=0.053 n=10+9) |
||
|
|
385c34930a | Check 8-byte-chunk copy distance precondition | ||
|
|
4e3a005d28 |
Use 8-byte-chunk copy for decode_huffman_fast32
On a Raspberry Pi 4 (32-bit armv7l) with -march=native and -mfpu=neon
("native" means "armv8-a+crc+simd"):
wuffs_deflate_decode_1k_full_init/clang9 45.1MB/s ± 5% 47.2MB/s ± 6% ~ (p=0.151 n=5+5)
wuffs_deflate_decode_1k_part_init/clang9 60.6MB/s ± 0% 64.2MB/s ± 0% +5.94% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/clang9 82.0MB/s ± 1% 104.8MB/s ± 1% +27.75% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang9 87.9MB/s ± 0% 114.4MB/s ± 0% +30.13% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang9 111MB/s ± 0% 139MB/s ± 0% +26.03% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang9 60.2MB/s ± 0% 63.3MB/s ± 0% +5.28% (p=0.008 n=5+5)
wuffs_deflate_decode_1k_full_init/gcc8 45.8MB/s ± 3% 47.4MB/s ± 1% +3.38% (p=0.032 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc8 63.0MB/s ± 1% 62.8MB/s ± 1% ~ (p=0.151 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc8 87.9MB/s ± 0% 102.9MB/s ± 1% +17.08% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc8 95.3MB/s ± 0% 111.5MB/s ± 0% +17.03% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc8 115MB/s ± 0% 130MB/s ± 0% +12.38% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc8 58.9MB/s ± 0% 60.1MB/s ± 0% +1.94% (p=0.008 n=5+5)
mimic_deflate_decode_1k 77.7MB/s ± 1% 77.2MB/s ± 1% ~ (p=0.222 n=5+5)
mimic_deflate_decode_10k 114MB/s ± 0% 114MB/s ± 1% ~ (p=0.548 n=5+5)
mimic_deflate_decode_100k_just_one_read 158MB/s ± 0% 158MB/s ± 0% ~ (p=0.056 n=5+5)
mimic_deflate_decode_100k_many_big_reads 113MB/s ± 0% 113MB/s ± 0% ~ (p=0.690 n=5+5)
----
wuffs_gzip_decode_10k/clang9 91.4MB/s ± 0% 106.9MB/s ± 0% +16.93% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/clang9 113MB/s ± 0% 128MB/s ± 0% +13.01% (p=0.008 n=5+5)
wuffs_gzip_decode_10k/gcc8 92.2MB/s ± 0% 109.7MB/s ± 0% +19.00% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/gcc8 111MB/s ± 0% 119MB/s ± 0% +7.43% (p=0.008 n=5+5)
mimic_gzip_decode_10k 98.2MB/s ± 0% 98.1MB/s ± 0% ~ (p=0.222 n=5+5)
mimic_gzip_decode_100k 128MB/s ± 0% 128MB/s ± 0% +0.11% (p=0.008 n=5+5)
----
wuffs_zlib_decode_10k/clang9 90.8MB/s ± 0% 111.5MB/s ± 0% +22.86% (p=0.008 n=5+5)
wuffs_zlib_decode_100k/clang9 108MB/s ± 0% 134MB/s ± 0% +23.90% (p=0.008 n=5+5)
wuffs_zlib_decode_10k/gcc8 92.3MB/s ± 0% 108.2MB/s ± 0% +17.15% (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc8 112MB/s ± 0% 119MB/s ± 0% +6.90% (p=0.008 n=5+5)
mimic_zlib_decode_10k 108MB/s ± 0% 108MB/s ± 0% +0.39% (p=0.008 n=5+5)
mimic_zlib_decode_100k 143MB/s ± 0% 141MB/s ± 0% -1.28% (p=0.008 n=5+5)
----
wuffs_png_decode_image_19k_8bpp/clang9 72.4MB/s ± 0% 81.9MB/s ± 0% +13.10% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/clang9 104MB/s ± 0% 104MB/s ± 0% -0.40% (p=0.008 n=5+5)
wuffs_png_decode_image_77k_8bpp/clang9 274MB/s ± 0% 301MB/s ± 0% +9.80% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 165MB/s ± 0% 183MB/s ± 0% +10.96% (p=0.016 n=4+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 160MB/s ± 1% 178MB/s ± 0% +11.28% (p=0.008 n=5+5)
wuffs_png_decode_image_4002k_24bpp/clang9 98.1MB/s ± 0% 98.9MB/s ± 0% +0.82% (p=0.016 n=5+4)
wuffs_png_decode_image_19k_8bpp/gcc8 73.5MB/s ± 0% 80.4MB/s ± 0% +9.33% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/gcc8 104MB/s ± 0% 106MB/s ± 0% +1.73% (p=0.008 n=5+5)
wuffs_png_decode_image_77k_8bpp/gcc8 248MB/s ± 0% 272MB/s ± 0% +9.67% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc8 163MB/s ± 0% 177MB/s ± 0% +8.89% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc8 157MB/s ± 0% 170MB/s ± 0% +8.42% (p=0.008 n=5+5)
wuffs_png_decode_image_4002k_24bpp/gcc8 98.6MB/s ± 0% 100.9MB/s ± 0% +2.29% (p=0.008 n=5+5)
mimic_png_decode_image_19k_8bpp 43.7MB/s ± 0% 43.7MB/s ± 0% ~ (p=0.690 n=5+5)
mimic_png_decode_image_40k_24bpp 54.6MB/s ± 0% 54.6MB/s ± 0% ~ (p=0.151 n=5+5)
mimic_png_decode_image_77k_8bpp 125MB/s ± 0% 124MB/s ± 0% -0.28% (p=0.008 n=5+5)
mimic_png_decode_image_552k_32bpp_ignore_checksum skipped
mimic_png_decode_image_552k_32bpp_verify_checksum 102MB/s ± 0% 102MB/s ± 0% ~ (p=0.238 n=5+5)
mimic_png_decode_image_4002k_24bpp 81.7MB/s ± 0% 81.8MB/s ± 0% +0.09% (p=0.008 n=5+5)
|
||
|
|
8595a3b696 |
Add std/deflate decode_huffman_fast32
This undoes commit
|
||
|
|
279d69bb38 | Prepare to add std/deflate decode_huffman_fast32 |