Descriptionruntime: 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
Patch Set 1 #Patch Set 2 : diff -r 059a3cd9172d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 059a3cd9172d https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 4 : diff -r 059a3cd9172d https://dvyukov%40google.com@code.google.com/p/go/ #MessagesTotal messages: 3
|