Nigel Tao
|
744fbdd732
|
Have std/png decode iCCP chunks
Updates #39
|
2021-11-05 16:29:11 +11:00 |
|
Nigel Tao
|
d5075c7e94
|
Push "int i" into "for (int i = etc; etc; etc)"
|
2021-11-02 14:07:58 +11:00 |
|
Nigel Tao
|
db5a407bab
|
Have std/png decode sRGB chunks
Updates #39
|
2021-10-16 09:27:30 +11:00 |
|
Nigel Tao
|
911049e9f9
|
Have std/png decode cHRM and gAMA chunks
Updates #39
|
2021-10-15 15:08:47 +11:00 |
|
Nigel Tao
|
5a4dd303f0
|
Remove hippopotamus.interlaced.png "wuffs test"
Coverage now comes from build-all.sh's nia-checksums-of-data.txt test.
|
2021-10-07 16:52:17 +11:00 |
|
Nigel Tao
|
f9c029c788
|
Fix std/png history_position for interlacing
|
2021-10-07 13:52:40 +11:00 |
|
Nigel Tao
|
c8592d2b7a
|
Remove obsolete comments re s/gAMA/hAMA/ PNG chunk
The one-byte patch was added in commit 88616cc9 but no longer applied as
of commit 54771322.
|
2021-09-06 23:14:29 +10:00 |
|
Nigel Tao
|
ad40102c5a
|
Change mimic marker symbol from "!!" to "¿"
|
2021-03-25 22:22:27 +11:00 |
|
Nigel Tao
|
5dd7ede975
|
Add more png benchmarks for alternative mimic libs
On a mid-range x86_64 laptop:
"libpng" (Debian's /usr/lib/x86_64-linux-gnu/libpng16.so) numbers are
used as a 1.00x baseline for the other libraries.
(†): libpng's "simplified API" doesn't provide a way to ignore the
checksum. We copy the "verify_checksum" numbers for a 1.00x baseline.
Some of the other libraries don't have the option to ignore or verify
the checksum, always doing only one or the other.
----
libpng_decode_19k_8bpp 58.0MB/s ± 0% 1.00x
libpng_decode_40k_24bpp 73.1MB/s ± 0% 1.00x
libpng_decode_77k_8bpp 177MB/s ± 0% 1.00x
libpng_decode_552k_32bpp_ignore_checksum 146MB/s ± 0% (†)
libpng_decode_552k_32bpp_verify_checksum 146MB/s ± 0% 1.00x
libpng_decode_4002k_24bpp 104MB/s ± 0% 1.00x
----
wuffs_decode_19k_8bpp/clang9 131MB/s ± 0% 2.26x
wuffs_decode_40k_24bpp/clang9 153MB/s ± 0% 2.09x
wuffs_decode_77k_8bpp/clang9 472MB/s ± 0% 2.67x
wuffs_decode_552k_32bpp_ignore_checksum/clang9 370MB/s ± 0% 2.53x
wuffs_decode_552k_32bpp_verify_checksum/clang9 357MB/s ± 0% 2.45x
wuffs_decode_4002k_24bpp/clang9 156MB/s ± 0% 1.50x
wuffs_decode_19k_8bpp/gcc10 136MB/s ± 1% 2.34x
wuffs_decode_40k_24bpp/gcc10 162MB/s ± 0% 2.22x
wuffs_decode_77k_8bpp/gcc10 486MB/s ± 0% 2.75x
wuffs_decode_552k_32bpp_ignore_checksum/gcc10 388MB/s ± 0% 2.66x
wuffs_decode_552k_32bpp_verify_checksum/gcc10 373MB/s ± 0% 2.55x
wuffs_decode_4002k_24bpp/gcc10 164MB/s ± 0% 1.58x
----
libspng_decode_19k_8bpp/clang9 59.3MB/s ± 0% 1.02x
libspng_decode_40k_24bpp/clang9 78.4MB/s ± 0% 1.07x
libspng_decode_77k_8bpp/clang9 189MB/s ± 0% 1.07x
libspng_decode_552k_32bpp_ignore_checksum/clang9 236MB/s ± 0% 1.62x
libspng_decode_552k_32bpp_verify_checksum/clang9 203MB/s ± 0% 1.39x
libspng_decode_4002k_24bpp/clang9 110MB/s ± 0% 1.06x
libspng_decode_19k_8bpp/gcc10 59.6MB/s ± 0% 1.03x
libspng_decode_40k_24bpp/gcc10 77.5MB/s ± 0% 1.06x
libspng_decode_77k_8bpp/gcc10 189MB/s ± 0% 1.07x
libspng_decode_552k_32bpp_ignore_checksum/gcc10 223MB/s ± 0% 1.53x
libspng_decode_552k_32bpp_verify_checksum/gcc10 194MB/s ± 0% 1.33x
libspng_decode_4002k_24bpp/gcc10 109MB/s ± 0% 1.05x
----
lodepng_decode_19k_8bpp/clang9 65.1MB/s ± 0% 1.12x
lodepng_decode_40k_24bpp/clang9 72.1MB/s ± 0% 0.99x
lodepng_decode_77k_8bpp/clang9 222MB/s ± 0% 1.25x
lodepng_decode_552k_32bpp_ignore_checksum/clang9 skipped
lodepng_decode_552k_32bpp_verify_checksum/clang9 162MB/s ± 0% 1.11x
lodepng_decode_4002k_24bpp/clang9 70.5MB/s ± 0% 0.68x
lodepng_decode_19k_8bpp/gcc10 61.1MB/s ± 0% 1.05x
lodepng_decode_40k_24bpp/gcc10 62.5MB/s ± 1% 0.85x
lodepng_decode_77k_8bpp/gcc10 176MB/s ± 0% 0.99x
lodepng_decode_552k_32bpp_ignore_checksum/gcc10 skipped
lodepng_decode_552k_32bpp_verify_checksum/gcc10 139MB/s ± 0% 0.95x
lodepng_decode_4002k_24bpp/gcc10 62.3MB/s ± 0% 0.60x
----
stbimage_decode_19k_8bpp/clang9 75.1MB/s ± 1% 1.29x
stbimage_decode_40k_24bpp/clang9 84.6MB/s ± 0% 1.16x
stbimage_decode_77k_8bpp/clang9 234MB/s ± 0% 1.32x
stbimage_decode_552k_32bpp_ignore_checksum/clang9 162MB/s ± 0% 1.11x
stbimage_decode_552k_32bpp_verify_checksum/clang9 skipped
stbimage_decode_4002k_24bpp/clang9 80.7MB/s ± 0% 0.78x
stbimage_decode_19k_8bpp/gcc10 73.3MB/s ± 0% 1.26x
stbimage_decode_40k_24bpp/gcc10 81.8MB/s ± 0% 1.12x
stbimage_decode_77k_8bpp/gcc10 214MB/s ± 0% 1.21x
stbimage_decode_552k_32bpp_ignore_checksum/gcc10 145MB/s ± 0% 0.99x
stbimage_decode_552k_32bpp_verify_checksum/gcc10 skipped
stbimage_decode_4002k_24bpp/gcc10 79.7MB/s ± 0% 0.77x
----
go_decode_19k_8bpp/go1.16 39.3MB/s ± 1% 0.68x
go_decode_40k_24bpp/go1.16 46.5MB/s ± 1% 0.64x
go_decode_77k_8bpp/go1.16 78.3MB/s ± 0% 0.44x
go_decode_552k_32bpp_ignore_checksum/go1.16 skipped
go_decode_552k_32bpp_verify_checksum/go1.16 120MB/s ± 1% 0.82x
go_decode_4002k_24bpp/go1.16 50.7MB/s ± 0% 0.49x
----
rust_decode_19k_8bpp/rust1.48 88.3MB/s ± 0% 1.52x
rust_decode_40k_24bpp/rust1.48 133MB/s ± 0% 1.82x
rust_decode_77k_8bpp/rust1.48 180MB/s ± 0% 1.02x
rust_decode_552k_32bpp_ignore_checksum/rust1.48 skipped
rust_decode_552k_32bpp_verify_checksum/rust1.48 146MB/s ± 0% 1.00x
rust_decode_4002k_24bpp/rust1.48 134MB/s ± 0% 1.29x
|
2021-03-24 23:36:48 +11:00 |
|
Nigel Tao
|
baad01d50f
|
Have std/png decode interlaced PNG images
|
2021-02-05 22:53:05 +11:00 |
|
Nigel Tao
|
2f78804e62
|
Use more inclusive language
|
2021-01-23 19:50:47 +11:00 |
|
Nigel Tao
|
fd8025342e
|
Be able to test and bench the libspng library
That's libspng with an 's', instead of libpng without an 's'.
Wuffs' std/png and std/zlib implementations have not been fully
optimized yet, but as a snapshot, here's how it compares with these
"mimic" libraries, libspng and libpng.
On a mid-range x86_64 laptop:
Wuffs/clang9:
wuffs_png_decode_image_19k_8bpp/clang9 91.9MB/s ± 0%
wuffs_png_decode_image_40k_24bpp/clang9 128MB/s ± 0%
wuffs_png_decode_image_77k_8bpp/clang9 342MB/s ± 0%
wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 324MB/s ± 0%
wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 258MB/s ± 0%
wuffs_png_decode_image_4002k_24bpp/clang9 127MB/s ± 0%
Wuffs/gcc10:
wuffs_png_decode_image_19k_8bpp/gcc10 94.3MB/s ± 0%
wuffs_png_decode_image_40k_24bpp/gcc10 131MB/s ± 0%
wuffs_png_decode_image_77k_8bpp/gcc10 348MB/s ± 1%
wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc10 319MB/s ± 0%
wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc10 269MB/s ± 0%
wuffs_png_decode_image_4002k_24bpp/gcc10 131MB/s ± 0%
libspng/clang9:
mimic_png_decode_image_19k_8bpp/clang9 59.3MB/s ± 1%
mimic_png_decode_image_40k_24bpp/clang9 78.4MB/s ± 0%
mimic_png_decode_image_77k_8bpp/clang9 189MB/s ± 0%
mimic_png_decode_image_552k_32bpp_ignore_checksum/clang9 235MB/s ± 0%
mimic_png_decode_image_552k_32bpp_verify_checksum/clang9 203MB/s ± 0%
mimic_png_decode_image_4002k_24bpp/clang9 110MB/s ± 0%
libspng/gcc10:
mimic_png_decode_image_19k_8bpp/gcc10 59.5MB/s ± 0%
mimic_png_decode_image_40k_24bpp/gcc10 77.6MB/s ± 0%
mimic_png_decode_image_77k_8bpp/gcc10 188MB/s ± 0%
mimic_png_decode_image_552k_32bpp_ignore_checksum/gcc10 223MB/s ± 0%
mimic_png_decode_image_552k_32bpp_verify_checksum/gcc10 193MB/s ± 0%
mimic_png_decode_image_4002k_24bpp/gcc10 109MB/s ± 0%
libpng (Debian_Testing_Bullseye /usr/lib/x86_64-linux-gnu/libpng.so):
mimic_png_decode_image_19k_8bpp 58.3MB/s ± 0%
mimic_png_decode_image_40k_24bpp 73.1MB/s ± 0%
mimic_png_decode_image_77k_8bpp 177MB/s ± 0%
mimic_png_decode_image_552k_32bpp_ignore_checksum skipped
mimic_png_decode_image_552k_32bpp_verify_checksum 146MB/s ± 0%
mimic_png_decode_image_4002k_24bpp 104MB/s ± 0%
|
2021-01-22 13:15:42 +11:00 |
|
Nigel Tao
|
170a810486
|
Add std/png benches for ignore/verify checksums
wuffs_png_decode_image_552k_32bpp_ignore_checksum/clang9 324MB/s ± 0%
wuffs_png_decode_image_552k_32bpp_verify_checksum/clang9 258MB/s ± 0%
wuffs_png_decode_image_552k_32bpp_ignore_checksum/gcc10 319MB/s ± 0%
wuffs_png_decode_image_552k_32bpp_verify_checksum/gcc10 269MB/s ± 0%
|
2021-01-22 11:34:52 +11:00 |
|
Nigel Tao
|
5669f6da87
|
Rename some std/png tests and benches
|
2021-01-21 22:56:58 +11:00 |
|
Nigel Tao
|
cf4aff9ef0
|
Have testlib image_decoder helpers take quirks
|
2021-01-21 22:29:30 +11:00 |
|
Nigel Tao
|
5477132298
|
Have std/png verify PLTE chunk checksums
|
2021-01-21 20:21:33 +11:00 |
|
Nigel Tao
|
04ab103809
|
Have std/png check CRC-32 checksums
wuffs_png_decode_19k_8bpp/clang9 90.3MB/s ± 0% 89.0MB/s ± 0% -1.49% (p=0.008 n=5+5)
wuffs_png_decode_40k_24bpp/clang9 128MB/s ± 0% 126MB/s ± 0% -1.42% (p=0.008 n=5+5)
wuffs_png_decode_77k_8bpp/clang9 340MB/s ± 0% 333MB/s ± 0% -1.81% (p=0.008 n=5+5)
wuffs_png_decode_552k_32bpp/clang9 256MB/s ± 0% 253MB/s ± 0% -1.06% (p=0.008 n=5+5)
wuffs_png_decode_4002k_24bpp/clang9 128MB/s ± 0% 126MB/s ± 0% -1.77% (p=0.008 n=5+5)
wuffs_png_decode_19k_8bpp/gcc10 97.7MB/s ± 0% 95.2MB/s ± 0% -2.52% (p=0.008 n=5+5)
wuffs_png_decode_40k_24bpp/gcc10 136MB/s ± 3% 129MB/s ± 0% -5.13% (p=0.008 n=5+5)
wuffs_png_decode_77k_8bpp/gcc10 362MB/s ± 1% 353MB/s ± 1% -2.52% (p=0.008 n=5+5)
wuffs_png_decode_552k_32bpp/gcc10 273MB/s ± 0% 271MB/s ± 0% -0.54% (p=0.008 n=5+5)
wuffs_png_decode_4002k_24bpp/gcc10 136MB/s ± 0% 130MB/s ± 0% -4.45% (p=0.008 n=5+5)
|
2021-01-21 13:28:10 +11:00 |
|
Nigel Tao
|
9510479f50
|
Add std/png benches for filter_distance = 3
|
2021-01-18 14:52:33 +11:00 |
|
Nigel Tao
|
beaf3ef11f
|
Add choose
wuffs_png_decode_filter_1_sub/clang9 905MB/s ± 0% 1339MB/s ± 0% +48.05% (p=0.008 n=5+5)
wuffs_png_decode_filter_1_sub/gcc10 1.12GB/s ± 0% 1.85GB/s ± 0% +64.80% (p=0.016 n=5+4)
|
2021-01-06 23:16:16 +11:00 |
|
Nigel Tao
|
1b83476575
|
Add test_wuffs_png_decode_filters_round_trip
|
2021-01-03 23:24:53 +11:00 |
|
Nigel Tao
|
0976467a32
|
Add std/png decode filter benches
|
2020-12-29 13:40:40 +11:00 |
|
Nigel Tao
|
d1c561cb19
|
Fix std/png Average filter for the top row
|
2020-12-28 22:24:03 +11:00 |
|
Nigel Tao
|
88616cc969
|
Add std/png mimic benches
Wuffs' std/png and std/zlib implementations have not been optimized yet,
but even at this early stage, they are roughly on par with their
"mimics": equivalent production-quality C libraries (libpng and zlib).
On a mid-range x86_64 laptop:
wuffs_png_decode_19k_8bpp/clang9 95.8MB/s ± 0%
wuffs_png_decode_40k_24bpp/clang9 100MB/s ± 1%
wuffs_png_decode_77k_8bpp/clang9 359MB/s ± 0%
wuffs_png_decode_552k_32bpp/clang9 119MB/s ± 0%
wuffs_png_decode_4002k_24bpp/clang9 101MB/s ± 0%
wuffs_png_decode_19k_8bpp/gcc10 97.2MB/s ± 0%
wuffs_png_decode_40k_24bpp/gcc10 111MB/s ± 0%
wuffs_png_decode_77k_8bpp/gcc10 316MB/s ± 0%
wuffs_png_decode_552k_32bpp/gcc10 132MB/s ± 0%
wuffs_png_decode_4002k_24bpp/gcc10 116MB/s ± 0%
mimic_png_decode_19k_8bpp 58.1MB/s ± 0%
mimic_png_decode_40k_24bpp 73.3MB/s ± 0%
mimic_png_decode_77k_8bpp 177MB/s ± 0%
mimic_png_decode_552k_32bpp 147MB/s ± 0%
mimic_png_decode_4002k_24bpp 104MB/s ± 0%
wuffs_zlib_decode_10k/clang9 126MB/s ± 0%
wuffs_zlib_decode_100k/clang9 136MB/s ± 0%
wuffs_zlib_decode_10k/gcc10 131MB/s ± 0%
wuffs_zlib_decode_100k/gcc10 159MB/s ± 0%
mimic_zlib_decode_10k 133MB/s ± 0%
mimic_zlib_decode_100k 160MB/s ± 0%
|
2020-12-28 15:52:46 +11:00 |
|
Nigel Tao
|
0eca0b85c8
|
Add std/png benches
|
2020-12-26 22:14:34 +11:00 |
|
Nigel Tao
|
4ff1429553
|
Add std/png filter_and_swizzle
|
2020-12-25 18:35:19 +11:00 |
|
Nigel Tao
|
58c30e9d6d
|
Add std/png
|
2020-12-24 13:10:29 +11:00 |
|