core: add ServeDNS benchmark (#1158)

* core: add ServeDNS benchmark

Add benchmark function so we can perf test future additions to the
servers' ServeDNS function.

* naming
This commit is contained in:
Miek Gieben
2017-10-21 09:30:59 +01:00
committed by GitHub
parent d64b684831
commit 0af3fbab4f
2 changed files with 49 additions and 10 deletions

View File

@@ -280,7 +280,7 @@ func (s *Server) OnStartupComplete() {
}
}
// Tracer ... TODO: Add comment
// Tracer returns the tracer in the server if defined.
func (s *Server) Tracer() ot.Tracer {
if s.trace == nil {
return nil
@@ -308,7 +308,5 @@ const (
udp = 1
)
var (
// Quiet mode will not show any informative output on initialization.
Quiet bool
)
// Quiet mode will not show any informative output on initialization.
var Quiet bool