]> Cypherpunks repositories - gostls13.git/commit
cmd/compile,testing: implement one-time rampup logic for testing.B.Loop
authorJunyang Shao <shaojunyang@google.com>
Wed, 13 Nov 2024 23:34:51 +0000 (07:34 +0800)
committerGo LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Wed, 20 Nov 2024 23:19:48 +0000 (23:19 +0000)
commit558f5372fc524e69ade3ab3fe36b1913a4095398
treeb95143bb0a6d8db5e4811626afb2b26575dbf8df
parent60299c251364c6f4a830721e4953230260d118a0
cmd/compile,testing: implement one-time rampup logic for testing.B.Loop

testing.B.Loop now does its own loop scheduling without interaction with b.N.
b.N will be updated to the actual iterations b.Loop controls when b.Loop returns false.

This CL also added tests for fixed iteration count (benchtime=100x case).

This CL also ensured that b.Loop() is inlined.

For #61515

Change-Id: Ia15f4462f4830ef4ec51327520ff59910eb4bb58
Reviewed-on: https://go-review.googlesource.com/c/go/+/627755
Reviewed-by: Michael Pratt <mpratt@google.com>
Commit-Queue: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/inline/interleaved/interleaved.go
src/testing/benchmark.go
src/testing/benchmark_test.go
src/testing/testing_test.go
test/inline_testingbloop.go