]> Cypherpunks repositories - gostls13.git/commit
testing: make benchmarking faster
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 12 Jun 2014 14:51:32 +0000 (07:51 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 12 Jun 2014 14:51:32 +0000 (07:51 -0700)
commita5bb1af43214c3da52d1752e58d03ed968e6a11b
tree0f742c6679291b5bfb7e65b3762ae42298360adf
parent0476693eaf871653139735cc231c3c80f4daf7c9
testing: make benchmarking faster

Allow the number of benchmark iterations to grow faster for fast benchmarks, and don't round up twice.

Using the default benchtime, this CL reduces wall clock time to run benchmarks:

net/http        49s   -> 37s   (-24%)
runtime         8m31s -> 5m55s (-30%)
bytes           2m37s -> 1m29s (-43%)
encoding/json   29s   -> 21s   (-27%)
strings         1m16s -> 53s   (-30%)

LGTM=crawshaw
R=golang-codereviews, crawshaw
CC=golang-codereviews
https://golang.org/cl/101970047
src/pkg/testing/benchmark.go