]> Cypherpunks repositories - gostls13.git/commit
testing: streamline logic in loopSlowPath
authorAustin Clements <austin@google.com>
Thu, 20 Mar 2025 16:44:07 +0000 (12:44 -0400)
committerGopher Robot <gobot@golang.org>
Mon, 24 Mar 2025 18:41:13 +0000 (11:41 -0700)
commitaaf9b46800fe12c11c17bffebc82436204a1e85b
tree273e4c49bbe7c99f0ac8f7672968780335c9913e
parent5918101d673d601c26f5de880b1fa2c6564fb745
testing: streamline logic in loopSlowPath

There's a fair amount of duplication of logic between various return
branches of loopSlowPath and stopOrScaleBLoop. Restructure these so
there's a single "keep going" path and a single "we're done" path.

Change-Id: I38e4c7a616f8bd7707f3ca886f38ff21dbd78b6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/659658
Auto-Submit: Austin Clements <austin@google.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/testing/benchmark.go