]> Cypherpunks repositories - gostls13.git/commit
net: add benchmarks for network interface identification
authorMikio Hara <mikioh.mikioh@gmail.com>
Thu, 21 Feb 2013 16:19:04 +0000 (01:19 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Thu, 21 Feb 2013 16:19:04 +0000 (01:19 +0900)
commit0ad88a481de7aeba15e5a8b3ee5af7141396b082
treeb6f4c8653aaf5d3b39aa57965629a715eab03b81
parent867121585ad4b524ae7b6de31ab13432a4e11ce3
net: add benchmarks for network interface identification

Current results on linux/amd64:
BenchmarkInterfaces                      20000             80902 ns/op
BenchmarkInterfaceByIndex                50000             71591 ns/op
BenchmarkInterfaceByName                 20000             79908 ns/op
BenchmarkInterfaceAddrs                   2000            836413 ns/op
BenchmarkInterfacesAndAddrs               5000            605946 ns/op
BenchmarkInterfacesAndMulticastAddrs     10000            169029 ns/op

Update #4866.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/7368046
src/pkg/net/interface_test.go