]> Cypherpunks repositories - gostls13.git/commit
crypto: use t.Parallel() to increase speed
authorcui fliter <imcusg@gmail.com>
Thu, 6 Apr 2023 09:08:49 +0000 (17:08 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 27 Apr 2023 02:00:03 +0000 (02:00 +0000)
commitb4eed1c3414b6def26820a9189cb65cb070540be
tree4c0c180024a0f159aba4497918b24adfdce675fa
parent527745c4d55d07279125e1ad5442a86d2a631250
crypto: use t.Parallel() to increase speed

It is necessary to invoke the t.Parallel() method in both the top-level test function and its subtest function to maximize parallelism. In doing so, all subtest functions calling the t.Parallel() method in the package will work in parallel.

On my machine, the execution time of this test file was cut in half.

Change-Id: If09147a2a9969bb044932d71e6bfea29492866d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/482755
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Roland Shoemaker <roland@golang.org>
src/crypto/elliptic/elliptic_test.go