]> Cypherpunks repositories - gostls13.git/commit
runtime: add goroutine creation benchmark
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 27 Jun 2012 17:57:49 +0000 (21:57 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 27 Jun 2012 17:57:49 +0000 (21:57 +0400)
commit5a5e698c8fceec38c34f86375dcd44fb1a7a8939
tree9eb7046661cd8a0beb50da4e0807644a8e34229e
parent809e06babc883bf756d62b1e1fa971beafcf2713
runtime: add goroutine creation benchmark
Current results on 2 core darwin/amd64:
BenchmarkGoroutineChain 351 ns/op
BenchmarkGoroutineChain-2 3840 ns/op
BenchmarkGoroutineChain-4 4040 ns/op
BenchmarkConcGoroutineChain 350 ns/op
BenchmarkConcGoroutineChain-2 875 ns/op
BenchmarkConcGoroutineChain-4 2027 ns/op

R=r, rsc
CC=golang-dev
https://golang.org/cl/6332054
src/pkg/runtime/proc_test.go