Nigel Tao
b645180357
Drop pixel_swizzler__bgr__etc d[3] assignment
...
Updates https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32451
2021-03-26 13:51:27 +11:00
Nigel Tao
3f262b2121
Drop obsolete etc_8_byte_chunks_fast comment
2021-03-25 22:43:54 +11:00
Nigel Tao
bb2e9e90b5
Change cgen marker symbol from "!!" to "¡"
2021-03-25 22:17:26 +11:00
Nigel Tao
61635213cd
Add "‼" to "WUFFS C HEADER ENDS HERE" comment
2021-03-25 14:11:23 +11:00
Nigel Tao
5adb0d3c80
Add "WUFFS MULTI-FILE SECTION" comments
2021-03-25 14:02:04 +11:00
Nigel Tao
df5bb599a7
Swizzler support src_pixfmt = BGR_565
...
Binary size, before:
59472 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
62072 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
102936 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
102904 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
66064 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
68768 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
109256 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
109208 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2021-03-21 22:15:33 +11:00
Nigel Tao
15b04e65f3
Swizzler support src_pixfmt = RGBA_PREMUL
...
Binary size, before:
55392 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
57880 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
96816 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
96736 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
59472 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
62072 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
102936 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
102904 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2021-03-21 21:49:53 +11:00
Nigel Tao
17ae882a96
Swizzler support src_pixfmt = BGRA_PREMUL
...
Binary size, before:
48632 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
50784 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
82936 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
82920 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
55392 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
57880 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
96816 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
96736 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2021-03-21 21:27:51 +11:00
Nigel Tao
bdb45036a9
Swizzler support dst_pixfmt BGRA_NONPREMUL_4X16LE
...
Binary size, before:
41496 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
43104 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
72344 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
72328 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
48632 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
50784 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
82936 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
82920 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2021-03-20 17:01:41 +11:00
Nigel Tao
3b6b5ad486
Swizzler support dst_pixfmt = RGBA_{NON,}PREMUL
...
Binary size, before:
37856 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
39552 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
64536 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
64488 gen/lib/c/gcc-static/wuffs-base-pixconv.o
After:
41496 gen/lib/c/clang-9-dynamic/wuffs-base-pixconv.lo
43104 gen/lib/c/clang-9-static/wuffs-base-pixconv.o
72344 gen/lib/c/gcc-dynamic/wuffs-base-pixconv.lo
72328 gen/lib/c/gcc-static/wuffs-base-pixconv.o
2021-03-19 18:52:56 +11:00
Nigel Tao
f49c382029
wuffs gen -version=0.3.0-alpha.21
2021-03-18 12:11:20 +11:00
Nigel Tao
8d90971782
Bump "MSVC+X64 needs /arch:AVX" from error to warn
2021-03-18 12:09:22 +11:00
Nigel Tao
cbc072e776
Include <immintrin.h> etc for MSVC+X64
2021-03-18 11:50:05 +11:00
Nigel Tao
b24e046670
Replace SIMD CRC-32 k6' magic constant with Px'
...
This is just a change of name (and a change of comment), not a change of
value.
From my colleague, Eric Biggers:
The number is not k6' = (x^32 mod P(x) << 32)' << 1 = 0x1DB710640, but
rather P(x)' = 0x1DB710641. This value represents the generator
polynomial of CRC-32 as a 33-bit value, using the CRC-32 bit ordering
convention (lowest order bit = coefficient of highest order polynomial
term). The lowest order bit is the coefficient of x^32, which by
definition is 1 for CRC-32. P(x) is used as a multiplicand in Barrett
reduction, which is the step which reduces a 64-bit value to the final
32-bit remainder. See "Algorithm 1" in the Gopal paper.
The reason that last bit doesn't actually matter is because the output
of the Barrett reduction is supposed to be fully reduced mod P(x), so
only 32 bits (the bits that represent the coefficients of x^0..x^31) are
supposed to be able to be nonzero. Therefore, in practice
implementations will just truncate the result to 32 bits. Incorrectly
using 0x1DB710640 rather than P(x) = 0x1DB710641 only causes the result
to be wrong by a factor of x^32, so it doesn't affect those 32 bits.
2021-03-18 11:21:51 +11:00
Nigel Tao
8d1650117f
wuffs gen -version=0.3.0-alpha.20
2021-03-17 12:08:15 +11:00
Nigel Tao
9914f7314d
Add WUFFS_BASE__MAYBE_ATTRIBUTE_TARGET
2021-03-17 12:03:06 +11:00
Nigel Tao
073d3e0150
wuffs gen -version=0.3.0-alpha.19
2021-03-16 12:22:28 +11:00
Nigel Tao
cbc1367a0f
Add more pixel_buffer fill_rect cases
2021-03-11 23:57:41 +11:00
Nigel Tao
385c34930a
Check 8-byte-chunk copy distance precondition
2021-03-11 22:54:06 +11:00
Nigel Tao
5767f030a3
Add DecodeImageCallbacks::SelectPixfmt
2021-03-11 16:25:16 +11:00
Nigel Tao
441e96a8d4
Add pixel_buffer.set_color_u32_fill_rect
2021-03-11 15:53:09 +11:00
Nigel Tao
1daace6342
Add DecodeImageCallbacks::OnImageFormat def impl
2021-03-11 12:04:00 +11:00
Nigel Tao
54175156bd
Add more wuffs_aux::DecodeImage comments
2021-03-11 11:28:50 +11:00
Nigel Tao
f2ed33375c
Gate wuffs_aux on WUFFS_BASE__HAVE_UNIQUE_PTR
2021-03-11 10:52:49 +11:00
Nigel Tao
02041e84f8
Narrow the arg range for base.uxx.{high,low}_bits
2021-03-10 14:28:06 +11:00
Nigel Tao
e16fbafdca
Add TODOs for using MSVC intrinsics
2021-03-10 14:22:11 +11:00
Nigel Tao
334974f56e
Add WUFFS_BASE__HAVE_EQ_DELETE
2021-03-10 14:05:09 +11:00
Nigel Tao
d05cae1e1a
Pull struct definitions out of extern "C"
...
This avoids
https://developercommunity.visualstudio.com/t/Cryptic-error-message:-error-C2065:-__/1363621
2021-03-10 13:49:01 +11:00
Nigel Tao
210021e584
Drop obsolete "#if defined(_MSC_VER)"
2021-03-10 09:25:52 +11:00
Nigel Tao
312810f5a3
Fix some -Werror=sign-conversion bugs
2021-03-09 00:39:26 +11:00
Nigel Tao
69e32e8579
Add WUFFS_BASE__HAVE_UNIQUE_PTR macro
2021-03-09 00:30:06 +11:00
Nigel Tao
2dfeee722c
Add wuffs_base__cpu_arch__have_x86_sse42 for MSC
2021-03-09 00:15:35 +11:00
Nigel Tao
3a45b69cc5
Fix internal/cgen/auxiliary/image.cc C++ warnings
2021-03-08 23:36:59 +11:00
Nigel Tao
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)
2021-03-08 15:41:48 +11:00
Nigel Tao
8f3d875d3f
Fix some auxiliary/image compiler warnings
2021-03-08 14:33:31 +11:00
Nigel Tao
9e5817e45d
Have wuffs_aux::DecodeImage's Done take unique_ptr
2021-03-08 13:48:12 +11:00
Nigel Tao
b58a961acb
Add etc_copy_u32_from_history_8_byte_chunks_fast
...
On a mid-range x86_64 laptop:
----
$ ls -lh linux-5.11.3.tar.gz | awk '{print $5 " " $9}'
178M linux-5.11.3.tar.gz
$ # Debian's /usr/bin/zcat
$ time /usr/bin/zcat < linux-5.11.3.tar.gz > /dev/null
real 0m8.423s
$ # Wuffs; before
$ time gen/bin/example-zcat < linux-5.11.3.tar.gz > /dev/null
real 0m4.054s
$ # Wuffs; after
$ time gen/bin/example-zcat < linux-5.11.3.tar.gz > /dev/null
real 0m2.651s
----
Wuffs benchmarks:
wuffs_deflate_decode_1k_full_init/clang9 95.6MB/s ± 0% 98.1MB/s ± 1% +2.62% (p=0.008 n=5+5)
wuffs_deflate_decode_1k_part_init/clang9 109MB/s ± 0% 112MB/s ± 0% +3.31% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/clang9 162MB/s ± 0% 201MB/s ± 0% +24.32% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/clang9 165MB/s ± 0% 206MB/s ± 0% +25.16% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/clang9 170MB/s ± 0% 253MB/s ± 0% +48.63% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/clang9 147MB/s ± 0% 160MB/s ± 0% +8.77% (p=0.016 n=4+5)
wuffs_deflate_decode_1k_full_init/gcc10 92.1MB/s ± 0% 91.7MB/s ± 0% -0.44% (p=0.016 n=5+5)
wuffs_deflate_decode_1k_part_init/gcc10 107MB/s ± 0% 104MB/s ± 0% -3.35% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_full_init/gcc10 149MB/s ± 0% 195MB/s ± 0% +30.68% (p=0.008 n=5+5)
wuffs_deflate_decode_10k_part_init/gcc10 152MB/s ± 1% 199MB/s ± 1% +31.23% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_just_one_read/gcc10 213MB/s ± 0% 256MB/s ± 0% +20.42% (p=0.008 n=5+5)
wuffs_deflate_decode_100k_many_big_reads/gcc10 177MB/s ± 0% 177MB/s ± 1% ~ (p=0.595 n=5+5)
mimic_deflate_decode_1k 128MB/s ± 0% 128MB/s ± 0% +0.42% (p=0.016 n=5+4)
mimic_deflate_decode_10k 143MB/s ± 0% 143MB/s ± 0% ~ (p=0.310 n=5+5)
mimic_deflate_decode_100k_just_one_read 176MB/s ± 0% 176MB/s ± 0% -0.24% (p=0.008 n=5+5)
mimic_deflate_decode_100k_many_big_reads 135MB/s ± 0% 135MB/s ± 0% +0.12% (p=0.016 n=5+5)
----
wuffs_gzip_decode_10k/clang9 166MB/s ± 0% 198MB/s ± 1% +19.66% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/clang9 178MB/s ± 0% 241MB/s ± 0% +35.41% (p=0.008 n=5+5)
wuffs_gzip_decode_10k/gcc10 172MB/s ± 0% 199MB/s ± 0% +15.67% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/gcc10 198MB/s ± 0% 258MB/s ± 0% +29.95% (p=0.008 n=5+5)
mimic_gzip_decode_10k 121MB/s ± 0% 121MB/s ± 0% ~ (p=0.421 n=5+5)
mimic_gzip_decode_100k 144MB/s ± 0% 144MB/s ± 0% ~ (p=0.548 n=5+5)
----
wuffs_zlib_decode_10k/clang9 154MB/s ± 0% 199MB/s ± 0% +28.89% (p=0.016 n=4+5)
wuffs_zlib_decode_100k/clang9 186MB/s ± 1% 234MB/s ± 1% +25.58% (p=0.008 n=5+5)
wuffs_zlib_decode_10k/gcc10 156MB/s ± 0% 202MB/s ± 0% +30.01% (p=0.008 n=5+5)
wuffs_zlib_decode_100k/gcc10 198MB/s ± 0% 262MB/s ± 0% +32.21% (p=0.008 n=5+5)
mimic_zlib_decode_10k 133MB/s ± 0% 133MB/s ± 0% ~ (p=1.000 n=5+5)
mimic_zlib_decode_100k 160MB/s ± 0% 160MB/s ± 0% ~ (p=0.095 n=5+5)
----
wuffs_png_decode_image_19k_8bpp/clang9 115MB/s ± 0% 131MB/s ± 0% +14.45% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/clang9 153MB/s ± 0% 153MB/s ± 0% -0.51% (p=0.008 n=5+5)
wuffs_png_decode_image_77k_8bpp/clang9 415MB/s ± 0% 474MB/s ± 0% +14.37% (p=0.016 n=4+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 345MB/s ± 1% 371MB/s ± 0% +7.62% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 335MB/s ± 0% 359MB/s ± 0% +7.06% (p=0.016 n=4+5)
wuffs_png_decode_image_4002k_24bpp/clang9 153MB/s ± 0% 156MB/s ± 0% +2.37% (p=0.008 n=5+5)
wuffs_png_decode_image_19k_8bpp/gcc10 123MB/s ± 0% 135MB/s ± 1% +9.38% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/gcc10 159MB/s ± 1% 163MB/s ± 0% +2.60% (p=0.016 n=5+4)
wuffs_png_decode_image_77k_8bpp/gcc10 452MB/s ± 0% 479MB/s ± 0% +6.00% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc10 353MB/s ± 0% 387MB/s ± 0% +9.42% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc10 341MB/s ± 0% 372MB/s ± 0% +9.07% (p=0.008 n=5+5)
wuffs_png_decode_image_4002k_24bpp/gcc10 161MB/s ± 0% 164MB/s ± 0% +1.86% (p=0.016 n=4+5)
mimic_png_decode_image_19k_8bpp 58.1MB/s ± 0% 58.2MB/s ± 0% +0.22% (p=0.008 n=5+5)
mimic_png_decode_image_40k_24bpp 73.2MB/s ± 0% 73.2MB/s ± 0% ~ (p=0.341 n=5+5)
mimic_png_decode_image_77k_8bpp 177MB/s ± 0% 177MB/s ± 0% ~ (p=0.095 n=5+5)
mimic_png_decode_image_552k_32bpp_ignore_checksum skipped
mimic_png_decode_image_552k_32bpp_verify_checksum 147MB/s ± 0% 146MB/s ± 0% ~ (p=0.056 n=5+5)
mimic_png_decode_image_4002k_24bpp 104MB/s ± 0% 104MB/s ± 0% ~ (p=0.841 n=4+5)
2021-03-08 13:19:39 +11:00
Nigel Tao
5d4fbc3ac6
Implement std/crc32 ieee_hasher.up_x86_sse42
...
On a mid-range x86_64 laptop:
----
$ ls -lh linux-5.11.3.tar.gz | awk '{print $5 " " $9}'
178M linux-5.11.3.tar.gz
$ # Debian's /usr/bin/crc32
$ time /usr/bin/crc32 /dev/stdin < linux-5.11.3.tar.gz > /dev/null
real 0m0.411s
$ # Wuffs; before
$ time gen/bin/example-crc32 < linux-5.11.3.tar.gz > /dev/null
real 0m0.137s
$ # Wuffs; after
$ time gen/bin/example-crc32 < linux-5.11.3.tar.gz > /dev/null
real 0m0.060s
----
Wuffs benchmarks:
wuffs_crc32_ieee_10k/clang9 1.71GB/s ± 0% 8.40GB/s ± 3% +391.97% (p=0.008 n=5+5)
wuffs_crc32_ieee_100k/clang9 1.73GB/s ± 1% 10.67GB/s ± 0% +518.47% (p=0.008 n=5+5)
wuffs_crc32_ieee_10k/gcc10 2.08GB/s ± 0% 8.77GB/s ± 0% +322.05% (p=0.008 n=5+5)
wuffs_crc32_ieee_100k/gcc10 2.10GB/s ± 0% 11.23GB/s ± 0% +435.56% (p=0.008 n=5+5)
mimic_crc32_ieee_10k 774MB/s ± 0% 776MB/s ± 0% +0.23% (p=0.016 n=5+5)
mimic_crc32_ieee_100k 773MB/s ± 0% 775MB/s ± 0% +0.24% (p=0.032 n=5+5)
wuffs_gzip_decode_10k/clang9 151MB/s ± 0% 166MB/s ± 0% +9.81% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/clang9 155MB/s ± 0% 178MB/s ± 0% +14.53% (p=0.008 n=5+5)
wuffs_gzip_decode_10k/gcc10 150MB/s ± 0% 172MB/s ± 0% +14.92% (p=0.008 n=5+5)
wuffs_gzip_decode_100k/gcc10 188MB/s ± 0% 198MB/s ± 0% +5.37% (p=0.008 n=5+5)
mimic_gzip_decode_10k 121MB/s ± 0% 121MB/s ± 0% ~ (p=1.000 n=5+5)
mimic_gzip_decode_100k 143MB/s ± 0% 144MB/s ± 0% ~ (p=0.056 n=5+5)
wuffs_png_decode_image_19k_8bpp/clang9 111MB/s ± 0% 115MB/s ± 0% +3.77% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/clang9 147MB/s ± 0% 153MB/s ± 0% +4.66% (p=0.008 n=5+5)
wuffs_png_decode_image_77k_8bpp/clang9 404MB/s ± 0% 415MB/s ± 0% +2.75% (p=0.016 n=5+4)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 344MB/s ± 0% 345MB/s ± 1% ~ (p=0.151 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 329MB/s ± 0% 335MB/s ± 0% +1.78% (p=0.016 n=5+4)
wuffs_png_decode_image_4002k_24bpp/clang9 148MB/s ± 0% 153MB/s ± 0% +3.38% (p=0.008 n=5+5)
wuffs_png_decode_image_19k_8bpp/gcc10 120MB/s ± 0% 123MB/s ± 0% +2.62% (p=0.008 n=5+5)
wuffs_png_decode_image_40k_24bpp/gcc10 153MB/s ± 0% 159MB/s ± 1% +3.54% (p=0.008 n=5+5)
wuffs_png_decode_image_77k_8bpp/gcc10 440MB/s ± 0% 452MB/s ± 0% +2.82% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc10 357MB/s ± 0% 353MB/s ± 0% -0.95% (p=0.008 n=5+5)
wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc10 341MB/s ± 0% 341MB/s ± 0% ~ (p=0.151 n=5+5)
wuffs_png_decode_image_4002k_24bpp/gcc10 157MB/s ± 0% 161MB/s ± 0% +2.85% (p=0.016 n=5+4)
mimic_png_decode_image_19k_8bpp 58.1MB/s ± 0% 58.1MB/s ± 0% ~ (p=0.389 n=5+5)
mimic_png_decode_image_40k_24bpp 73.2MB/s ± 0% 73.2MB/s ± 0% ~ (p=0.548 n=5+5)
mimic_png_decode_image_77k_8bpp 177MB/s ± 0% 177MB/s ± 0% +0.14% (p=0.008 n=5+5)
mimic_png_decode_image_552k_32bpp_ignore_checksum skipped
mimic_png_decode_image_552k_32bpp_verify_checksum 146MB/s ± 0% 147MB/s ± 0% +0.13% (p=0.016 n=5+5)
mimic_png_decode_image_4002k_24bpp 104MB/s ± 0% 104MB/s ± 0% ~ (p=0.556 n=5+4)
2021-03-07 12:27:45 +11:00
Nigel Tao
44acd0e20a
Add std/crc32 ieee_hasher.up_x86_sse42 placeholder
2021-03-06 11:20:50 +11:00
Nigel Tao
a0228720e3
Have wuffs_aux's CopyIn compact the dst buffer
2021-03-04 16:02:56 +11:00
Nigel Tao
fd1f1c6b53
Have wuffs_aux::DecodeImage handle I/O redirects
2021-03-04 15:17:47 +11:00
Nigel Tao
04f8686989
Add wuffs_aux::DecodeImage
2021-03-03 23:19:58 +11:00
Nigel Tao
6050cbd319
Add wuffs_base__magic_number_guess_fourcc
2021-02-27 13:45:57 +11:00
Nigel Tao
76a530e95a
Add more FourCC values
2021-02-27 08:23:38 +11:00
Nigel Tao
3b5d8fdfba
Use arm_neon_uAxB types and methods
2021-02-24 16:48:09 +11:00
Nigel Tao
1765863601
Optimize make_m128i_slice128 pointer arg
2021-02-18 22:43:13 +11:00
Nigel Tao
869be76fae
Rename some std/png c/p variables
2021-02-18 14:32:35 +11:00
Nigel Tao
8c4348b8f6
Rename some std etc_sse42 functions
2021-02-18 13:48:46 +11:00
Nigel Tao
ce97a7ccd9
Rename wuffs_base__cpu_arch__have_sse42
2021-02-18 13:44:33 +11:00
Nigel Tao
26c7fb941f
Un-choosy-fy std/png decoder.filter_2
2021-02-18 13:32:25 +11:00