]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: avoid CPU underutilization starting from GOMAXPROCS=2 runtime
authorqiulaidongfeng <2645477756@qq.com>
Sat, 23 Mar 2024 03:19:33 +0000 (03:19 +0000)
committerGopher Robot <gobot@golang.org>
Sat, 23 Mar 2024 04:07:11 +0000 (04:07 +0000)
commit83a6c13e7344394d32d4114c3504ffecaae37b1e
treeb13eb2be8e29876d8d7bad4633df4497481c1eb0
parent8aeec7c5b0c630bb68798bc4b5fc7531b4d26694
cmd/dist: avoid CPU underutilization starting from GOMAXPROCS=2 runtime

This CL is doing now is:
change maxbg to increase test parallelism.
adjust test sequence.

This CL speeds up the go tool dist test,
most of the speed up is due to the fact that the
three time-consuming tests
cmd/internal/testdir and API check and runtime/race
can be done in parallel with the GOMAXPROCS=2 runtime
on a machine with enough CPU cores.

In windows with an 8-core 16-thread CPU,
this CL can complete all other tests before
GOMAXPROCS=2 runtime -cpu=1,2,4 -quick completes.

Fixes #65164

Change-Id: I56ed7031d58be3bece9f975bfc73e5c834d0a4fa
GitHub-Last-Rev: 18cffb770f60399c889ceb40ef8207a2d0c488e5
GitHub-Pull-Request: golang/go#65703
Reviewed-on: https://go-review.googlesource.com/c/go/+/563916
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Commit-Queue: Ian Lance Taylor <iant@golang.org>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/dist/test.go