]> Cypherpunks repositories - gostls13.git/commit
compress/flate: simplify using subtests and sub-benchmarks
authorMarcel van Lohuizen <mpvl@golang.org>
Wed, 25 May 2016 09:19:17 +0000 (11:19 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Wed, 25 May 2016 17:44:22 +0000 (17:44 +0000)
commitd2aa5f95cce5055d71a77166a60b574cd3f8ecd5
tree39aaf72ba482ba3319f2dc97e909dcb82c160e33
parent89283781c69314f09e999fe131b12c57059c1ba1
compress/flate: simplify using subtests and sub-benchmarks

This causes the large files to be loaded only once per benchmark.

This CL also serves as an example use case of sub(tests|-benchmarks).

This CL ensures that names are identical to the original
except for an added slashes. Things could be
simplified further if this restriction were dropped.

Change-Id: I45e303e158e3152e33d0d751adfef784713bf997
Reviewed-on: https://go-review.googlesource.com/23420
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/compress/flate/reader_test.go
src/compress/flate/writer_test.go