|
testing: RunParallel and SetParallelism are misleading.
RunParallel actually executes benchmarks concurrently, and SetParallelism
controls the level of concurrency (-cpu sets the level of parallelism).
This cl changes these names to RunConcurrent and SetConcurrency respectively,
and improves the description of RunParallel. It adds two example benchmarks
to RunParallel in order to hilight when to and not to use it. Lastly, this CL
modifies the rest of the source tree files that call RunParallel and
SetParallelism so that ./all.bash passes. Aside from the renaming,
no functional lines have been changed.
Fixes issue 7433.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+136 lines, -61 lines) |
Patch |
|
M |
src/pkg/fmt/fmt_test.go
|
View
|
1
|
7 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/pkg/math/big/nat_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/net/http/serve_test.go
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/net/rpc/server_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/runtime/chan_test.go
|
View
|
1
|
8 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/mfinal_test.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/norace_test.go
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/runtime/proc_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/sync/mutex_test.go
|
View
|
1
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/sync/once_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
src/pkg/sync/pool_test.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/sync/runtime_sema_test.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/sync/rwmutex_test.go
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/pkg/sync/waitgroup_test.go
|
View
|
1
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
src/pkg/testing/benchmark.go
|
View
|
1
|
6 chunks |
+19 lines, -16 lines |
0 comments
|
Download
|
|
M |
src/pkg/testing/benchmark_test.go
|
View
|
1
|
5 chunks |
+79 lines, -7 lines |
0 comments
|
Download
|
|
M |
src/pkg/time/sleep_test.go
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 4
|