mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 00:47:56 +01:00
Rename PUFFS to WUFFS, part 10 of N
This commit is contained in:
1 parent
8e3b5cce5e
commit
b9fd20bfe4
6 files changed
+141
-141
No files matched your search
+36
-36
@@ -1,9 +1,9 @@
|
||||
# Benchmarks
|
||||
|
||||
*Preliminary* `puffs bench -mimic` summarized throughput numbers for various
|
||||
*Preliminary* `wuffs bench -mimic` summarized throughput numbers for various
|
||||
codecs are below. Higher is better.
|
||||
|
||||
"Mimic" tests check that Puffs' output mimics (i.e. exactly matches) other
|
||||
"Mimic" tests check that Wuffs' output mimics (i.e. exactly matches) other
|
||||
libraries' output. "Mimic" benchmarks give the numbers for those other
|
||||
libraries, as shipped with the OS. These were measured on a Debian Testing
|
||||
system as of November 2017, which means these compiler versions:
|
||||
@@ -27,7 +27,7 @@ The benchmark programs aim to be runnable "out of the box" without any
|
||||
configuration or installation. For example, to run the `std/flate` benchmarks:
|
||||
|
||||
git clone https://github.com/google/wuffs.git
|
||||
cd puffs/test/c/std
|
||||
cd wuffs/test/c/std
|
||||
gcc -O3 flate.c
|
||||
./a.out -bench
|
||||
rm a.out
|
||||
@@ -42,24 +42,24 @@ code change. To install it, first install Go, then run `go get
|
||||
golang.org/x/perf/cmd/benchstat`.
|
||||
|
||||
|
||||
## puffs bench
|
||||
## wuffs bench
|
||||
|
||||
As mentioned above, individual benchmark programs can be run manually. However,
|
||||
the canonical way to run the benchmarks (across multiple compilers and multiple
|
||||
packages like GIF and PNG) is to use the `puffs` command line tool, as it will
|
||||
also re-generate (transpile) the C code whenever you edit the \*.puffs code.
|
||||
Running `go install -v github.com/google/wuffs/cmd/...` will install the Puffs
|
||||
packages like GIF and PNG) is to use the `wuffs` command line tool, as it will
|
||||
also re-generate (transpile) the C code whenever you edit the \*.wuffs code.
|
||||
Running `go install -v github.com/google/wuffs/cmd/...` will install the Wuffs
|
||||
tools. After that, you can say
|
||||
|
||||
puffs bench
|
||||
wuffs bench
|
||||
|
||||
or
|
||||
|
||||
puffs bench -mimic std/flate
|
||||
wuffs bench -mimic std/flate
|
||||
|
||||
or
|
||||
|
||||
puffs bench -ccompilers=gcc -reps=3 -focus=Benchmarkpuffs_gif_lzw std/gif
|
||||
wuffs bench -ccompilers=gcc -reps=3 -focus=Benchmarkwuffs_gif_lzw std/gif
|
||||
|
||||
|
||||
## CPU Scaling
|
||||
@@ -82,21 +82,21 @@ output.
|
||||
|
||||
name speed
|
||||
|
||||
puffs_adler32_10k/clang 2.42GB/s ± 3%
|
||||
puffs_adler32_100k/clang 2.42GB/s ± 3%
|
||||
puffs_flate_decode_1k/clang 133MB/s ± 3%
|
||||
puffs_flate_decode_10k/clang 199MB/s ± 3%
|
||||
puffs_flate_decode_100k/clang 229MB/s ± 4%
|
||||
puffs_zlib_decode_10k/clang 185MB/s ± 1%
|
||||
puffs_zlib_decode_100k/clang 210MB/s ± 3%
|
||||
wuffs_adler32_10k/clang 2.42GB/s ± 3%
|
||||
wuffs_adler32_100k/clang 2.42GB/s ± 3%
|
||||
wuffs_flate_decode_1k/clang 133MB/s ± 3%
|
||||
wuffs_flate_decode_10k/clang 199MB/s ± 3%
|
||||
wuffs_flate_decode_100k/clang 229MB/s ± 4%
|
||||
wuffs_zlib_decode_10k/clang 185MB/s ± 1%
|
||||
wuffs_zlib_decode_100k/clang 210MB/s ± 3%
|
||||
|
||||
puffs_adler32_10k/gcc 3.22GB/s ± 1%
|
||||
puffs_adler32_100k/gcc 3.23GB/s ± 0%
|
||||
puffs_flate_decode_1k/gcc 152MB/s ± 1%
|
||||
puffs_flate_decode_10k/gcc 250MB/s ± 1%
|
||||
puffs_flate_decode_100k/gcc 298MB/s ± 1%
|
||||
puffs_zlib_decode_10k/gcc 238MB/s ± 2%
|
||||
puffs_zlib_decode_100k/gcc 270MB/s ± 2%
|
||||
wuffs_adler32_10k/gcc 3.22GB/s ± 1%
|
||||
wuffs_adler32_100k/gcc 3.23GB/s ± 0%
|
||||
wuffs_flate_decode_1k/gcc 152MB/s ± 1%
|
||||
wuffs_flate_decode_10k/gcc 250MB/s ± 1%
|
||||
wuffs_flate_decode_100k/gcc 298MB/s ± 1%
|
||||
wuffs_zlib_decode_10k/gcc 238MB/s ± 2%
|
||||
wuffs_zlib_decode_100k/gcc 270MB/s ± 2%
|
||||
|
||||
mimic_adler32_10k 3.00GB/s ± 1%
|
||||
mimic_adler32_100k 2.91GB/s ± 2%
|
||||
@@ -116,15 +116,15 @@ is 1 byte per pixel.
|
||||
|
||||
name speed
|
||||
|
||||
puffs_gif_decode_1k/clang 346MB/s ± 1%
|
||||
puffs_gif_decode_10k/clang 137MB/s ± 0%
|
||||
puffs_gif_decode_100k/clang 118MB/s ± 0%
|
||||
puffs_gif_decode_1000k/clang 120MB/s ± 0%
|
||||
wuffs_gif_decode_1k/clang 346MB/s ± 1%
|
||||
wuffs_gif_decode_10k/clang 137MB/s ± 0%
|
||||
wuffs_gif_decode_100k/clang 118MB/s ± 0%
|
||||
wuffs_gif_decode_1000k/clang 120MB/s ± 0%
|
||||
|
||||
puffs_gif_decode_1k/gcc 399MB/s ± 1%
|
||||
puffs_gif_decode_10k/gcc 141MB/s ± 0%
|
||||
puffs_gif_decode_100k/gcc 128MB/s ± 0%
|
||||
puffs_gif_decode_1000k/gcc 131MB/s ± 0%
|
||||
wuffs_gif_decode_1k/gcc 399MB/s ± 1%
|
||||
wuffs_gif_decode_10k/gcc 141MB/s ± 0%
|
||||
wuffs_gif_decode_100k/gcc 128MB/s ± 0%
|
||||
wuffs_gif_decode_1000k/gcc 131MB/s ± 0%
|
||||
|
||||
mimic_gif_decode_1k 147MB/s ± 0%
|
||||
mimic_gif_decode_10k 90.7MB/s ± 0%
|
||||
@@ -134,10 +134,10 @@ is 1 byte per pixel.
|
||||
TODO: investigate why gcc 4.8 (Ubuntu Trusty) seems to generate faster code
|
||||
than gcc 7.2 (Debian Testing):
|
||||
|
||||
puffs_gif_decode_1k/gcc 411MB/s ± 2%
|
||||
puffs_gif_decode_10k/gcc 162MB/s ± 0%
|
||||
puffs_gif_decode_100k/gcc 138MB/s ± 0%
|
||||
puffs_gif_decode_1000k/gcc 141MB/s ± 0%
|
||||
wuffs_gif_decode_1k/gcc 411MB/s ± 2%
|
||||
wuffs_gif_decode_10k/gcc 162MB/s ± 0%
|
||||
wuffs_gif_decode_100k/gcc 138MB/s ± 0%
|
||||
wuffs_gif_decode_1000k/gcc 141MB/s ± 0%
|
||||
|
||||
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user