]> Cypherpunks repositories - gostls13.git/commit
runtime: integrated network poller for darwin
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 14 Mar 2013 06:38:37 +0000 (10:38 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 14 Mar 2013 06:38:37 +0000 (10:38 +0400)
commit0bee99ab3b17caca812aa78a51485aadf0bc1788
tree48b76b090b3f527815e53874c751b8b7247a2954
parenta11d7d4e11207be9186c6dbeda11fedfef3cbe4d
runtime: integrated network poller for darwin
vs tip:
benchmark                           old ns/op    new ns/op    delta
BenchmarkTCP4Persistent                 67786        33175  -51.06%
BenchmarkTCP4Persistent-2               49085        31227  -36.38%
BenchmarkTCP4PersistentTimeout          69265        32565  -52.98%
BenchmarkTCP4PersistentTimeout-2        49217        32588  -33.79%

vs old scheduler:
benchmark                           old ns/op    new ns/op    delta
BenchmarkTCP4Persistent                 63517        33175  -47.77%
BenchmarkTCP4Persistent-2               54760        31227  -42.97%
BenchmarkTCP4PersistentTimeout          63234        32565  -48.50%
BenchmarkTCP4PersistentTimeout-2        56956        32588  -42.78%

R=golang-dev, bradfitz, devon.odell, mikioh.mikioh, iant, rsc
CC=golang-dev, pabuhr
https://golang.org/cl/7569043
12 files changed:
src/pkg/net/fd_darwin.go [deleted file]
src/pkg/net/fd_poll_runtime.go [new file with mode: 0644]
src/pkg/net/fd_poll_unix.go
src/pkg/runtime/defs_darwin.go
src/pkg/runtime/defs_darwin_386.h
src/pkg/runtime/defs_darwin_amd64.h
src/pkg/runtime/netpoll.goc [new file with mode: 0644]
src/pkg/runtime/netpoll_kqueue.c [new file with mode: 0644]
src/pkg/runtime/netpoll_stub.c
src/pkg/runtime/runtime.h
src/pkg/runtime/sys_darwin_386.s
src/pkg/runtime/sys_darwin_amd64.s