]> Cypherpunks.ru repositories - gostls13.git/commit
Revert "testing: only compute b.N once when passed -count > 1"
authorAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 31 May 2018 12:04:07 +0000 (12:04 +0000)
committerAlberto Donizetti <alb.donizetti@gmail.com>
Thu, 31 May 2018 14:22:44 +0000 (14:22 +0000)
commitbfdf74be12e2527d797968870564e8dafc2aacb5
treeeeb9c9e308d2622f4e8323f93439a808bd7ece3b
parentcaf968616a3ee09d6c820428b4edebb68cfbde09
Revert "testing: only compute b.N once when passed -count > 1"

This reverts golang.org/cl/110775

Reason for revert: this is causing huge slow-dows on every run after
the 1st, on various benchmarks, on multiple architectures (see Issue
25622 for details). It's just a nice-to-have little optimization, and
we're near the 1st go1.11 beta release, so I'm reverting it.

Fixes #25622

Change-Id: I758ade4af4abf764abd8336d404396992d11a0c6
Reviewed-on: https://go-review.googlesource.com/115535
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/go/go_test.go
src/testing/benchmark.go