]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1] net/http: reduce mutex contention
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 21 Sep 2012 19:54:40 +0000 (05:54 +1000)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 21 Sep 2012 19:54:40 +0000 (05:54 +1000)
commit17fed3c6b403ebec45d4edf7b3f194403b37fb6e
treee95f288dbc3c30409b52e1fc1c130704a3e19652
parentbf68e33053339b3b21d02f43cbb90424ea22db17
[release-branch.go1] net/http: reduce mutex contention

««« backport 43568ec5cf55
net/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 https://golang.org/cl/6441134
The machine is 2 x 4 HT cores (16 HW threads total).
Fixes #3946.
Now contention moves to net.pollServer.AddFD().

R=bradfitz
CC=bradfitz, dave, dsymonds, gobot, golang-dev, remyoudompheng
https://golang.org/cl/6454142

»»»
src/pkg/net/http/export_test.go
src/pkg/net/http/transport.go