Nigel Tao
|
4e7ef5fb88
|
Rename I/O bounds fields to mark and limit
|
2018-08-18 09:38:02 +10:00 |
|
Nigel Tao
|
1c75f7b748
|
Redo {frame,image,pixel}_config and pixel_buffer
|
2018-07-21 09:15:33 +10:00 |
|
Nigel Tao
|
a0bafff465
|
Ship as a "single file C library"
|
2018-07-14 08:59:36 +10:00 |
|
Nigel Tao
|
25a106903f
|
Have include guards start with WUFFS_INCLUDE_GUARD
|
2018-06-16 08:10:22 +10:00 |
|
Nigel Tao
|
c5b7b7097e
|
Rename inclusive and exclusive to incl and excl
|
2018-06-11 09:04:12 +10:00 |
|
Nigel Tao
|
df96e48341
|
Rename some #ifndef WUFFS_BASE_HEADER_H guards
|
2018-06-10 09:37:30 +10:00 |
|
Nigel Tao
|
87ab36f8c4
|
Have check_wuffs_version take the sizeof receiver
Also rename foo__initialize to foo__check_wuffs_version.
|
2018-05-29 14:20:27 +10:00 |
|
Nigel Tao
|
e1293c2522
|
Fix decoding GIFs to an image (not IO) buffer
|
2018-05-28 14:06:58 +10:00 |
|
Nigel Tao
|
5e856540bd
|
Have std/gif update an image_buffer's dirty_rect
|
2018-05-24 11:29:16 +10:00 |
|
Nigel Tao
|
34cfc3f863
|
Have std/gif's palettes be BGRA, not RGB
|
2018-05-24 10:33:02 +10:00 |
|
Nigel Tao
|
227f8610fc
|
Rename some testlib set_limit methods
|
2018-05-11 13:49:47 +10:00 |
|
Nigel Tao
|
23fff7f841
|
Simplify some testlib set_limit methods
|
2018-05-11 13:45:26 +10:00 |
|
Nigel Tao
|
bf4aa38a84
|
Relocate some for-test-only set_limit methods
|
2018-05-11 13:42:06 +10:00 |
|
Nigel Tao
|
a2044fdaa6
|
Drop the ".c" in "std/gif.c" test output
|
2018-05-05 11:38:31 +10:00 |
|
Nigel Tao
|
5e9cca7e82
|
Tweak "wuffs bench" output format
|
2018-05-04 17:32:35 +10:00 |
|
Nigel Tao
|
ba98b04307
|
Add an iterscale flag
|
2018-05-04 17:17:59 +10:00 |
|
Nigel Tao
|
bd71c2d9fd
|
Rename proc_reps to reps
|
2018-05-04 16:55:14 +10:00 |
|
Nigel Tao
|
f36234a724
|
Rename reps to iters
|
2018-05-04 16:53:42 +10:00 |
|
Nigel Tao
|
97aab37462
|
Rename buf1, reader1, etc to io_buffer, io_reader
Also remove the unused Buf1, Buf2 and Usize tokens.
|
2018-04-05 20:49:48 +10: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
|
66047db6d8
|
Be more paranoid about calling strncmp.
|
2017-11-04 10:49:23 +11:00 |
|
Nigel Tao
|
6602dea7be
|
Make focus's "/gcc" suffix optional.
|
2017-11-04 10:40:43 +11:00 |
|
Nigel Tao
|
4729170678
|
Make focus's "Benchmark" prefix optional.
|
2017-11-04 10:25:24 +11:00 |
|
Nigel Tao
|
0230a65c7b
|
Let focus have a trailing comma.
|
2017-11-04 10:21:32 +11:00 |
|
Nigel Tao
|
c62aa518a5
|
Make focus's "test_" or "bench_" prefix optional.
|
2017-11-04 10:05:37 +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
|
0e136f59af
|
Use an explicitly typed tc_neither.
|
2017-11-03 11:18:38 +11:00 |
|
Nigel Tao
|
b7f347d406
|
Fix a "return false as char*" typo.
|
2017-11-03 11:15:38 +11:00 |
|
Nigel Tao
|
f29c4e278f
|
Follow the pkg__type__method convention for base.
|
2017-10-21 15:59:08 +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
|
04e8a73d10
|
Update std/flate's decoder.history_index.
|
2017-09-30 11:56:30 +10:00 |
|
Nigel Tao
|
e0f87fb2a7
|
Add a -reps=N flag to "puffs bench".
|
2017-07-30 08:27:52 +10:00 |
|
Nigel Tao
|
c463f4956f
|
Add script/print-bits.go.
|
2017-07-17 17:28:19 +10:00 |
|
Nigel Tao
|
1e39d0302a
|
Have "puffs bench" show the compiler version.
|
2017-07-16 23:47:04 +10:00 |
|
Nigel Tao
|
4b4473cc91
|
Flush "puffs bench"'s stdout.
|
2017-07-16 23:27:36 +10:00 |
|
Nigel Tao
|
85610b5df2
|
Add a throughput_counter concept.
Example benchstat summary of "puffs bench -mimic" output below, with
some blank lines added for clarity.
For example, gzip and zlib both add a checksum (crc32 and adler32
respectively) to raw flate. The headline mimic_{gzip,zlib}_decode_100k
numbers are 386µs and 347µs per op. Subtracting 73.2µs and 34.3µs for
the checksum times from the headline times give the same number: 313µs.
This 313µs differs from 358µs for raw flate (mimic_flate_decode_100k)
because zlib takes two different code paths for wrapped vs raw flate. In
the zlib source code, this is inflate.c vs infback.c respectively.
----
name time/op
mimic_adler32_10k/clang 3.74µs ± 1%
mimic_adler32_100k/clang 34.3µs ± 1%
mimic_crc32_10k/clang 8.10µs ± 1%
mimic_crc32_100k/clang 73.2µs ± 0%
mimic_flate_decode_1k/clang 4.31µs ± 1%
mimic_flate_decode_10k/clang 42.1µs ± 1%
mimic_flate_decode_100k/clang 358µs ± 1%
mimic_gzip_decode_10k/clang 49.8µs ± 1%
mimic_gzip_decode_100k/clang 386µs ± 0%
mimic_zlib_decode_10k/clang 45.3µs ± 0%
mimic_zlib_decode_100k/clang 347µs ± 1%
mimic_adler32_10k/gcc 3.72µs ± 1%
mimic_adler32_100k/gcc 34.3µs ± 2%
mimic_crc32_10k/gcc 8.06µs ± 0%
mimic_crc32_100k/gcc 73.1µs ± 0%
mimic_flate_decode_1k/gcc 4.26µs ± 0%
mimic_flate_decode_10k/gcc 42.0µs ± 0%
mimic_flate_decode_100k/gcc 356µs ± 0%
mimic_gzip_decode_10k/gcc 50.4µs ± 4%
mimic_gzip_decode_100k/gcc 390µs ± 2%
mimic_zlib_decode_10k/gcc 45.6µs ± 1%
mimic_zlib_decode_100k/gcc 348µs ± 1%
puffs_gif_lzw_decode_20k/clang 151µs ± 0%
puffs_gif_lzw_decode_100k/clang 566µs ± 0%
puffs_gif_decode_1k/clang 2.74µs ± 1%
puffs_gif_decode_10k/clang 73.8µs ± 0%
puffs_gif_decode_100k/clang 1.13ms ± 0%
puffs_gif_decode_1000k/clang 7.99ms ± 0%
mimic_gif_decode_1k/clang 6.44µs ± 0%
mimic_gif_decode_10k/clang 107µs ± 0%
mimic_gif_decode_100k/clang 1.38ms ± 0%
mimic_gif_decode_1000k/clang 9.79ms ± 0%
puffs_gif_lzw_decode_20k/gcc 127µs ± 0%
puffs_gif_lzw_decode_100k/gcc 501µs ± 0%
puffs_gif_decode_1k/gcc 2.45µs ± 1%
puffs_gif_decode_10k/gcc 65.1µs ± 0%
puffs_gif_decode_100k/gcc 1.01ms ± 0%
puffs_gif_decode_1000k/gcc 7.16ms ± 1%
mimic_gif_decode_1k/gcc 6.66µs ± 2%
mimic_gif_decode_10k/gcc 108µs ± 1%
mimic_gif_decode_100k/gcc 1.39ms ± 0%
mimic_gif_decode_1000k/gcc 9.93ms ± 1%
name speed
mimic_adler32_10k/clang 2.96GB/s ± 1%
mimic_adler32_100k/clang 2.91GB/s ± 1%
mimic_crc32_10k/clang 1.37GB/s ± 1%
mimic_crc32_100k/clang 1.37GB/s ± 0%
mimic_flate_decode_1k/clang 219MB/s ± 1%
mimic_flate_decode_10k/clang 263MB/s ± 1%
mimic_flate_decode_100k/clang 280MB/s ± 1%
mimic_gzip_decode_10k/clang 222MB/s ± 1%
mimic_gzip_decode_100k/clang 259MB/s ± 0%
mimic_zlib_decode_10k/clang 244MB/s ± 0%
mimic_zlib_decode_100k/clang 288MB/s ± 1%
mimic_adler32_10k/gcc 2.97GB/s ± 1%
mimic_adler32_100k/gcc 2.92GB/s ± 2%
mimic_crc32_10k/gcc 1.37GB/s ± 0%
mimic_crc32_100k/gcc 1.37GB/s ± 0%
mimic_flate_decode_1k/gcc 221MB/s ± 0%
mimic_flate_decode_10k/gcc 264MB/s ± 0%
mimic_flate_decode_100k/gcc 281MB/s ± 0%
mimic_gzip_decode_10k/gcc 219MB/s ± 4%
mimic_gzip_decode_100k/gcc 256MB/s ± 2%
mimic_zlib_decode_10k/gcc 243MB/s ± 1%
mimic_zlib_decode_100k/gcc 287MB/s ± 1%
puffs_gif_lzw_decode_20k/clang 128MB/s ± 0%
puffs_gif_lzw_decode_100k/clang 177MB/s ± 0%
puffs_gif_decode_1k/clang 373MB/s ± 1%
puffs_gif_decode_10k/clang 137MB/s ± 0%
puffs_gif_decode_100k/clang 122MB/s ± 0%
puffs_gif_decode_1000k/clang 125MB/s ± 0%
mimic_gif_decode_1k/clang 159MB/s ± 0%
mimic_gif_decode_10k/clang 94.2MB/s ± 0%
mimic_gif_decode_100k/clang 100MB/s ± 0%
mimic_gif_decode_1000k/clang 102MB/s ± 0%
puffs_gif_lzw_decode_20k/gcc 151MB/s ± 0%
puffs_gif_lzw_decode_100k/gcc 200MB/s ± 0%
puffs_gif_decode_1k/gcc 418MB/s ± 1%
puffs_gif_decode_10k/gcc 155MB/s ± 0%
puffs_gif_decode_100k/gcc 137MB/s ± 0%
puffs_gif_decode_1000k/gcc 140MB/s ± 1%
mimic_gif_decode_1k/gcc 154MB/s ± 2%
mimic_gif_decode_10k/gcc 93.0MB/s ± 1%
mimic_gif_decode_100k/gcc 98.9MB/s ± 0%
mimic_gif_decode_1000k/gcc 101MB/s ± 1%
----
|
2017-07-14 13:09:45 +10:00 |
|
Nigel Tao
|
8be6dc3394
|
Add adler32 and crc32 benchmarks.
|
2017-07-14 13:01:08 +10:00 |
|
Nigel Tao
|
0561297826
|
Increase soem testlib buffer sizes.
|
2017-07-07 12:08:56 +10:00 |
|
Nigel Tao
|
0b9f9162a5
|
Add std/flate tests.
|
2017-07-07 12:06:54 +10:00 |
|
Nigel Tao
|
ed6c642f98
|
Strip the "bench_" from "Benchmarkbench_etc".
|
2017-07-02 11:49:34 +10:00 |
|
Nigel Tao
|
11f4cfeb49
|
Fix C for loop initializer style nit.
|
2017-06-30 11:46:04 +10:00 |
|
Nigel Tao
|
0cba6885fa
|
Spell the "-b" flag fully, as "-bench".
|
2017-06-30 08:50:12 +10:00 |
|
Nigel Tao
|
84b3e6e5c2
|
Make benchmark suffixes "/gcc" not "_gcc".
|
2017-06-30 08:35:14 +10:00 |
|
Nigel Tao
|
9e59fd1202
|
Add instructions to install benchstat.
|
2017-06-30 08:33:06 +10:00 |
|
Nigel Tao
|
0203d2f148
|
Compile with gcc without -std=c99.
|
2017-06-29 16:27:04 +10:00 |
|