Descriptionnet/http: reduce mutex contention
benchmark old ns/op new ns/op delta
BenchmarkClientServerParallel 155909 154454 -0.93%
BenchmarkClientServerParallel-2 86012 82986 -3.52%
BenchmarkClientServerParallel-4 70211 55168 -21.43%
BenchmarkClientServerParallel-8 80755 47862 -40.73%
BenchmarkClientServerParallel-12 77753 51478 -33.79%
BenchmarkClientServerParallel-16 77920 50278 -35.47%
The benchmark is http://codereview.appspot.com/6441134
The machine is 2 x 4 HT cores (16 HW threads total).
Fixes issue 3946.
Now contention moves to net.pollServer.AddFD().
Patch Set 1 #Patch Set 2 : diff -r 66e0219bd117 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r b855390a295f https://go.googlecode.com/hg/ #Patch Set 4 : diff -r b855390a295f https://go.googlecode.com/hg/ #Patch Set 5 : diff -r b855390a295f https://go.googlecode.com/hg/ #
Total comments: 3
Patch Set 6 : diff -r bd7fd672b7c8 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r bd7fd672b7c8 https://go.googlecode.com/hg/ #MessagesTotal messages: 12
|