]> Cypherpunks repositories - gostls13.git/commit
hash/maphash: parallel run test
authorqiulaidongfeng <2645477756@qq.com>
Wed, 1 May 2024 13:42:46 +0000 (13:42 +0000)
committerGopher Robot <gobot@golang.org>
Fri, 3 May 2024 16:41:38 +0000 (16:41 +0000)
commit44e48c7e6cb0aceccae6535b218748d9f312fc89
treed82bdc6c0ff24bae856e8b44192f65efa09e83f2
parent18dd68267263b0b37c14969349f7faa59556b1a8
hash/maphash: parallel run test

This is a reapplication of CL 564576.

This reduces the go test hash/maphash time
by more than half.

After investigation it was confirmed that
the original CL would cause OOM when 32-bit machine.

This CL add testenv.ParallelOn64Bit for tests
that can be parallel on 64-bit machines,
it is not parallel on 32-bit machines,
because CL 564995 require the same API.

Change-Id: I1b7feaa07716cb3f55db4671653348fabf2396b0
GitHub-Last-Rev: 28277255587f6a1b92b9bf1848e1f53adaca64dc
GitHub-Pull-Request: golang/go#66359
Cq-Include-Trybots: luci.golang.try:gotip-linux-386-longtest
Reviewed-on: https://go-review.googlesource.com/c/go/+/572195
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/hash/maphash/smhasher_test.go
src/internal/testenv/testenv.go