]> Cypherpunks repositories - gostls13.git/commit
runtime: refactor Syscall benchmark
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 28 Feb 2013 23:10:34 +0000 (01:10 +0200)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 28 Feb 2013 23:10:34 +0000 (01:10 +0200)
commit38d4d3c66a2aaaa7e4a73d197bbe425116b8ef49
tree5300a38f1b0c2b327d4c13391358321b162b8f5a
parent72b09bd7aefa1602a9c14c9006442d696d962def
runtime: refactor Syscall benchmark
And add a benchmark where #goroutines>GOMAXPROCS,
because it's the most interesting case.
Current results on darwin/amd64, Intel Core 2 Duo 2.13 GHz, 2 cores:
BenchmarkSyscall 100000000         56.0 ns/op
BenchmarkSyscall-2 50000000         57.2 ns/op
BenchmarkSyscallWork 10000000        635 ns/op
BenchmarkSyscallWork-2 10000000        315 ns/op
BenchmarkSyscallExcess  1000000       2698 ns/op
BenchmarkSyscallExcess-2  5000000       1192 ns/op
BenchmarkSyscallExcessWork  1000000       2832 ns/op
BenchmarkSyscallExcessWork-2  2000000       1966 ns/op

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