]> Cypherpunks repositories - gostls13.git/commit
expvar: make BenchmarkAdd{Same,Different} comparable to 1.8
authorBryan C. Mills <bcmills@google.com>
Fri, 10 Feb 2017 19:46:22 +0000 (14:46 -0500)
committerBryan Mills <bcmills@google.com>
Fri, 10 Feb 2017 20:08:14 +0000 (20:08 +0000)
commitaa1538799601bdbc881f2ad3133184377b7e7aca
tree1c43e00a5e689609c509f2ab8b6691c4c72734bc
parent275e1fdb20a3751f5a30f9ec2f0c3fb0b1c8d1d1
expvar: make BenchmarkAdd{Same,Different} comparable to 1.8

bradfitz noted in change 36717 that the new behavior was no longer
comparable with the old.  This change restores comparable behavior
for -cpu=1.

BenchmarkMapAddSame                 909           909           +0.00%
BenchmarkMapAddSame-6               1309          262           -79.98%
BenchmarkMapAddDifferent            2856          3030          +6.09%
BenchmarkMapAddDifferent-6          3803          581           -84.72%

updates #18177

Change-Id: Ifaff5a1f48be92002d86c296220313b7efdc81d6
Reviewed-on: https://go-review.googlesource.com/36723
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/expvar/expvar_test.go