• Dmitry Vyukov's avatar
    testing: parallelize tests over count · f04d5836
    Dmitry Vyukov authored
    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: 's avatarIan Lance Taylor <iant@golang.org>
    f04d5836
Name
Last commit
Last update
..
internal/testdeps Loading commit data...
iotest Loading commit data...
quick Loading commit data...
allocs.go Loading commit data...
allocs_test.go Loading commit data...
benchmark.go Loading commit data...
benchmark_test.go Loading commit data...
cover.go Loading commit data...
example.go Loading commit data...
export_test.go Loading commit data...
helper_test.go Loading commit data...
helperfuncs_test.go Loading commit data...
match.go Loading commit data...
match_test.go Loading commit data...
sub_test.go Loading commit data...
testing.go Loading commit data...
testing_test.go Loading commit data...