]> Cypherpunks repositories - gostls13.git/commit
runtime: add more chan benchmarks
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 4 Feb 2014 05:41:48 +0000 (09:41 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 4 Feb 2014 05:41:48 +0000 (09:41 +0400)
commit3baceaa1519baada9f040c14b7f36e89a6c83144
tree42b7d89877c11aa2b5882c575fc6b8dd94a06da7
parent9ed5995cfe4c217c1291ced9c4a70334383df226
runtime: add more chan benchmarks
Add benchmarks for:
1. non-blocking failing receive (polling of "stop" chan)
2. channel-based semaphore (gate pattern)
3. select-based producer/consumer (pass data through a channel, but also wait on "stop" and "timeout" channels)

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