]> Cypherpunks repositories - gostls13.git/commit
testing: parallelize tests over count
authorDmitry Vyukov <dvyukov@google.com>
Mon, 5 Jun 2017 08:37:37 +0000 (10:37 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Thu, 24 Aug 2017 05:45:17 +0000 (05:45 +0000)
commitf04d5836181dec3ec1b7e427607f02fa7a204a2d
treea49a674d8d236336bcdc0042fdf0301f7bafbf1d
parentf7aa454c58ed0d06823f509fc39474b6f52f7c3a
testing: parallelize tests over count

Currently all package tests are executed once
with Parallel tests executed in parallel.
Then this process is repeated count*cpu times.
Tests are not parallelized over count*cpu.
Parallelizing over cpu is not possible as
GOMAXPROCS is a global setting. But it is
possible for count.

Parallelize over count.

Brings down testing of my package with -count=100
form 10s to 0.3s.

Change-Id: I76d8322adeb8c5c6e70b99af690291fd69d6402a
Reviewed-on: https://go-review.googlesource.com/44830
Run-TryBot: Dmitry Vyukov <dvyukov@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/benchmark.go
src/testing/testing.go