Add more README.md benchmark detail.

This commit is contained in:
Nigel Tao committed 2017-07-04 09:41:05 +10:00
1 parent 9ad516b802
commit 847fd641c0
1 file changed
+16 -7
+16 -7
View File
@@ -641,14 +641,18 @@ TODO: also trawl through Go's bug tracker for "this image failed to load".
## Benchmarks ## Benchmarks
Preliminary `puffs bench` numbers for the GIF codec are below. "Mimic" tests *Preliminary* `puffs bench` throughput numbers for the GIF codec are below.
check that Puffs' output mimics exactly other libraries' output (i.e. giflib Higher is better.
for GIF, libpng for PNG, etc.). "Mimic" benchmarks are the numbers for those
other libraries, measured here on Ubunty 14.04 LTS "Trusty".
The 1k, 10k, etc. numbers are approximately how many pixels there are in the "Mimic" tests check that Puffs' output mimics exactly other libraries' output
decoded image. For example, the `test/testdata/harvesters.*` images are 1165 × (i.e. giflib for GIF, libpng for PNG, etc.). "Mimic" benchmarks are the numbers
859, which is approximately 1000k pixels. for those other libraries, as shipped with the OS, measured here on Ubunty
14.04 LTS "Trusty".
The 1k, 10k, etc. numbers are approximately how many bytes of pixel data there
is in the decoded image. For example, the `test/testdata/harvesters.*` images
are 1165 × 859 (approximately 1000k pixels) and a GIF image (a paletted image)
is 1 byte per pixel.
name speed name speed
gif_puffs_decode_1k/clang 389MB/s ± 2% gif_puffs_decode_1k/clang 389MB/s ± 2%
@@ -671,6 +675,11 @@ decoded image. For example, the `test/testdata/harvesters.*` images are 1165 ×
gif_mimic_decode_100k/gcc 100MB/s ± 0% gif_mimic_decode_100k/gcc 100MB/s ± 0%
gif_mimic_decode_1000k/gcc 102MB/s ± 0% gif_mimic_decode_1000k/gcc 102MB/s ± 0%
The mimic numbers measure the pre-compiled library that shipped with the OS, so
it is unsurprising that they don't depend on the C compiler (clang or gcc) used
to run the test harness.
## Code Size ## Code Size
TODO. TODO.