Descriptionnet: improve behavior of native Go DNS queries
Speed improvements via code cleanup, and changes to make go dns behave more like glibc resolver. See https://groups.google.com/forum/#!topic/golang-dev/lV-0aHqxVeo
Fixes issue 6579.
Benchmark results on linux/amd64
benchmark old ns/op new ns/op delta
BenchmarkGoLookupIP 61588062 30786782 -50.01%
BenchmarkGoLookupIPNoSuchHost 123138626 31487501 -74.43%
BenchmarkGoLookupIPWithBrokenNameServer 20063137067 5031143479 -74.92%
benchmark old allocs new allocs delta
BenchmarkGoLookupIP 105 108 2.86%
BenchmarkGoLookupIPNoSuchHost 200 102 -49.00%
BenchmarkGoLookupIPWithBrokenNameServer 172 162 -5.81%
benchmark old bytes new bytes delta
BenchmarkGoLookupIP 12111 11639 -3.90%
BenchmarkGoLookupIPNoSuchHost 23251 11820 -49.16%
BenchmarkGoLookupIPWithBrokenNameServer 26784 22032 -17.74%
Patch Set 1 #Patch Set 2 : diff -r 052730f52c17 https://code.google.com/p/go #Patch Set 3 : diff -r 052730f52c17 https://code.google.com/p/go #
MessagesTotal messages: 4
|