Browse Source

Merge remote-tracking branch 'miekg/faster1'

Conflicts:
	zone.go
Ask Bjørn Hansen 12 years ago
parent
commit
9814e721f0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      serve_test.go

+ 6 - 0
serve_test.go

@@ -141,6 +141,12 @@ func (s *ServeSuite) TestServingEDNS(c *C) {
 
 
 }
 }
 
 
+func (s *ServeSuite) BenchmarkServing(c *C) {
+	for i := 0; i < c.N; i++ {
+		exchange(c, "_country.foo.pgeodns.", dns.TypeTXT)
+	}
+}
+
 func exchangeSubnet(c *C, name string, dnstype uint16, ip string) *dns.Msg {
 func exchangeSubnet(c *C, name string, dnstype uint16, ip string) *dns.Msg {
 	msg := new(dns.Msg)
 	msg := new(dns.Msg)