go/src/testing
Junyang Shao 558f5372fc 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>
2024-11-20 23:19:48 +00:00
..
fstest all: use slices.Sorted(maps.Keys(m)) 2024-10-02 14:22:59 +00:00
internal/testdeps cmd/go: fix problems with coverage percentage reporting w/ -coverpkg 2024-06-14 11:46:05 +00:00
iotest testing: add available godoc link 2023-11-08 17:55:47 +00:00
quick testing: add available godoc link 2023-11-08 17:55:47 +00:00
slogtest testing/slogtest: reuse results obtained from previous call 2024-11-13 19:03:44 +00:00
synctest testing/synctest: add experimental synctest package 2024-11-20 16:26:46 +00:00
allocs.go
allocs_test.go
benchmark.go cmd/compile,testing: implement one-time rampup logic for testing.B.Loop 2024-11-20 23:19:48 +00:00
benchmark_test.go cmd/compile,testing: implement one-time rampup logic for testing.B.Loop 2024-11-20 23:19:48 +00:00
cover.go cmd/go,testing: re-implement testing.Coverage 2023-05-23 11:37:31 +00:00
example.go testing: replace CRLF by LF on windows before comparing to the expected output 2024-11-13 18:37:25 +00:00
export_test.go testing: add Chdir 2024-08-16 23:48:50 +00:00
flag_test.go testing: use testenv.Executable 2024-09-03 18:03:28 +00:00
fuzz.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
helper_test.go testing: use testenv.Executable 2024-09-03 18:03:28 +00:00
helperfuncs_test.go testing: use subprocesses in TestTBHelper and TestTBHelperParallel 2023-11-21 17:24:47 +00:00
match.go all: use built-in clear to clear maps 2023-07-27 22:07:13 +00:00
match_test.go
newcover.go internal/coverage/cfile: remove //go:linkname into testing 2024-05-22 09:58:07 +00:00
panic_test.go Revert "testing: simplify concurrency and cleanup logic" 2023-11-27 16:49:24 +00:00
run_example.go
run_example_wasm.go
sub_test.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
testing.go testing: rename testContext to testState 2024-08-21 20:52:09 +00:00
testing_other.go testing: use time.Since in highPrecisionTime 2024-04-27 19:42:36 +00:00
testing_test.go cmd/compile,testing: implement one-time rampup logic for testing.B.Loop 2024-11-20 23:19:48 +00:00
testing_windows.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00
testing_windows_test.go testing: use QueryPerformanceCounter on Windows 2024-04-26 22:55:25 +00:00