]> Cypherpunks repositories - gostls13.git/commit
testing: ease writing parallel benchmarks
authorDmitriy Vyukov <dvyukov@google.com>
Mon, 17 Feb 2014 02:29:56 +0000 (06:29 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Mon, 17 Feb 2014 02:29:56 +0000 (06:29 +0400)
commitc3922f0a63b826000e6ab46cadc344782fbae178
treea3aa638d206d2f911f3b9226a403f7ff59407f62
parenta1aee55bd17b79edc66a865c02d170ed6296288d
testing: ease writing parallel benchmarks
Add b.RunParallel function that captures parallel benchmark boilerplate:
creates worker goroutines, joins worker goroutines, distributes work
among them in an efficient way, auto-tunes grain size.
Fixes #7090.

R=bradfitz, iant, josharian, tracey.brendan, r, rsc, gobot
CC=golang-codereviews
https://golang.org/cl/57270043
doc/go1.3.txt
src/pkg/runtime/chan_test.go
src/pkg/testing/benchmark.go
src/pkg/testing/benchmark_test.go
src/pkg/testing/testing.go