Descriptionnet: 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 issue 4866.
Patch Set 1 #Patch Set 2 : diff -r 734059df2768 https://code.google.com/p/go #Patch Set 3 : diff -r 734059df2768 https://code.google.com/p/go #Patch Set 4 : diff -r 734059df2768 https://code.google.com/p/go #Patch Set 5 : diff -r 734059df2768 https://code.google.com/p/go #
Total comments: 2
Patch Set 6 : diff -r 734059df2768 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r 95914f6d6c36 https://code.google.com/p/go #MessagesTotal messages: 7
|