]> Cypherpunks repositories - gostls13.git/commit
testing: implement testing.B.Loop
authorsunnymilk <shaojunyang@google.com>
Tue, 27 Aug 2024 21:23:10 +0000 (17:23 -0400)
committerJunyang Shao <shaojunyang@google.com>
Fri, 20 Sep 2024 19:09:41 +0000 (19:09 +0000)
commit6600a871ef7376b151cb7e4073c4095209f112ca
tree89152a85272af78bffaccdeb71acef20e3a384fc
parentc208b913954514ac7cab0fa701fba9c89af70392
testing: implement testing.B.Loop

Initial implementation for testing.B.Loop,
right now the calculation of b.N are still done in the old fasion way,
as of now b.Loop is merely an alias for the old loop over b.N.

For #61515.

Change-Id: If211d0acc5f0c33df530096dceafe0b947ab0c8e
Reviewed-on: https://go-review.googlesource.com/c/go/+/608798
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Run-TryBot: 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>
api/next/61515.txt [new file with mode: 0644]
doc/next/6-stdlib/99-minor/testing/61515.md [new file with mode: 0644]
src/testing/benchmark.go
src/testing/benchmark_test.go