]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/go: fix proc-count accumulation in benchmark name
authorAlberto Donizetti <alb.donizetti@gmail.com>
Fri, 25 Mar 2016 17:17:37 +0000 (18:17 +0100)
committerMarcel van Lohuizen <mpvl@golang.org>
Sat, 26 Mar 2016 16:44:01 +0000 (16:44 +0000)
Fixes #14964

Change-Id: I5f772426081efaa9315c4ecaf60de850af324f1d
Reviewed-on: https://go-review.googlesource.com/21139
Reviewed-by: Ahmed Waheed <oneofone@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/testing/benchmark.go

index 19aae869969a9fc1b5d0c090e93f25937f95d1eb..c935bc5e062356f1d8ad957a655eeec57368c15c 100644 (file)
@@ -396,7 +396,7 @@ func (ctx *benchContext) processBench(b *B) {
                        b = &B{
                                common: common{
                                        signal: make(chan bool),
-                                       name:   benchName,
+                                       name:   b.name,
                                },
                                benchFunc: b.benchFunc,
                                benchTime: b.benchTime,