From dd3549666972563cc9be12cd19ea099e4ad7069f Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Wed, 29 Jan 2014 07:56:21 +0000 Subject: [PATCH] dont care about padding for benchmark function --- dns_test.go | 3 +-- server_test.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dns_test.go b/dns_test.go index 102ac138..fd6048c4 100644 --- a/dns_test.go +++ b/dns_test.go @@ -242,8 +242,7 @@ func TestMsgLenTest(t *testing.T) { } } -// Padded to fix alignment -func BenchmarkMsgLen____(b *testing.B) { +func BenchmarkMsgLen(b *testing.B) { b.StopTimer() makeMsg := func(question string, ans, ns, e []RR) *Msg { msg := new(Msg) diff --git a/server_test.go b/server_test.go index 4aaf7b2b..a2e4ace3 100644 --- a/server_test.go +++ b/server_test.go @@ -65,8 +65,7 @@ func TestServing(t *testing.T) { } } -// Padded to fix alignment -func BenchmarkServe____(b *testing.B) { +func BenchmarkServe(b *testing.B) { b.StopTimer() HandleFunc("miek.nl.", HelloServer) a := runtime.GOMAXPROCS(4)