1
0
mirror of https://github.com/golang/go synced 2024-10-05 09:21:22 -06:00
go/src/compress
Joe Tsai ff27421067 compress/bzip2: fix benchmark to actually measure decompression rate
Motivation:
* Previously, the size of the compressed data was used for metrics,
rather than the uncompressed size. This causes the library to appear
to perform poorly relative to C or other implementation. Switch it
to use the uncompressed size so that it matches how decompression
benchmarks are usually done (like in compress/flate). This also makes
it easier to compare bzip2 rates to other algorithms since they measure
performance in this way.
* Also, reset the timer after doing initialization work.

Change-Id: I32112c2ee8e7391e658c9cf31039f70a689d9b9d
Reviewed-on: https://go-review.googlesource.com/17611
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-02-28 11:06:40 +00:00
..
bzip2 compress/bzip2: fix benchmark to actually measure decompression rate 2016-02-28 11:06:40 +00:00
flate compress/flate: extract LZ77 dictionary logic into seperate struct 2016-02-28 10:36:01 +00:00
gzip compress/gzip: specify when Reader.Header is valid 2015-11-13 09:16:53 +00:00
lzw build: shorten a few packages with long tests 2015-12-29 15:46:44 +00:00
testdata build: shorten a few packages with long tests 2015-12-29 15:46:44 +00:00
zlib build: shorten a few packages with long tests 2015-12-29 15:46:44 +00:00