We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58d4242 commit ee0a6bdCopy full SHA for ee0a6bd
testing/testing/benchmark.go
@@ -552,7 +552,6 @@ func (b *B) loopSlowPath() bool {
552
// whereas b.N-based benchmarks must run the benchmark function (and any
553
// associated setup and cleanup) several times.
554
func (b *B) Loop() bool {
555
- b.StopTimer()
556
// This is written such that the fast path is as fast as possible and can be
557
// inlined.
558
//
@@ -567,7 +566,6 @@ func (b *B) Loop() bool {
567
566
// path can do consistency checks and fail.
568
if b.loop.i < b.loop.n {
569
b.loop.i++
570
- b.StartTimer()
571
return true
572
}
573
return b.loopSlowPath()
0 commit comments