Descriptionruntime: allow external threads to wake up goroutines
GOMAXPROCS=1 BenchmarkCgoBlockCallback 1042393 ns/op threads=815
GOMAXPROCS=4 BenchmarkCgoBlockCallback 1013339 ns/op threads=922
GOMAXPROCS=16 BenchmarkCgoBlockCallback 331943 ns/op threads=991
GOMAXPROCS=1 BenchmarkCgoBlockCallbackChan 5380903 ns/op threads=8
GOMAXPROCS=4 BenchmarkCgoBlockCallbackChan 390350 ns/op threads=52
GOMAXPROCS=16 BenchmarkCgoBlockCallbackChan 323382 ns/op threads=55
GOMAXPROCS=1 BenchmarkCgoBlockCallbackExternal 323619 ns/op threads=8
GOMAXPROCS=4 BenchmarkCgoBlockCallbackExternal 323361 ns/op threads=21
GOMAXPROCS=16 BenchmarkCgoBlockCallbackExternal 323010 ns/op threads=36
Patch Set 1 #Patch Set 2 : diff -r 65a1b6a436af https://dvyukov%40google.com@code.google.com/p/go/ #Patch Set 3 : diff -r 99a1e180eda3 https://dvyukov%40google.com@code.google.com/p/go/ #
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||