]> Cypherpunks repositories - gostls13.git/commit
runtime: improve select benchmarks
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 17 Jul 2014 17:49:45 +0000 (21:49 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 17 Jul 2014 17:49:45 +0000 (21:49 +0400)
commitdc84eca75eab04ec1a0c454ccf135ee9da10951e
tree4d2287c12bf1befe21f2061f0c688deb6f44666c
parent90870e61b7311a0c2b4d3059368cf75006157a50
runtime: improve select benchmarks
1. Add select on sync channels benchmark.
2. Make channels in BenchmarkSelectNonblock shared.
With GOMAXPROCS=1 it is the same, but with GOMAXPROCS>1
it becomes a more interesting benchmark.

LGTM=khr
R=golang-codereviews, khr
CC=golang-codereviews
https://golang.org/cl/115780043
src/pkg/runtime/chan_test.go