Revert "Revert "Fix benchmark alignment""
This reverts commit b8e6bd45be
.
This commit is contained in:
parent
f2f9d43da5
commit
509a6ff9e2
|
@ -242,7 +242,8 @@ func TestMsgLenTest(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func BenchmarkMsgLen(b *testing.B) {
|
||||
// Padded to fix alignment
|
||||
func BenchmarkMsgLen____(b *testing.B) {
|
||||
b.StopTimer()
|
||||
makeMsg := func(question string, ans, ns, e []RR) *Msg {
|
||||
msg := new(Msg)
|
||||
|
|
|
@ -65,7 +65,8 @@ func TestServing(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
func BenchmarkServing(b *testing.B) {
|
||||
// Padded to fix alignment
|
||||
func BenchmarkServe____(b *testing.B) {
|
||||
b.StopTimer()
|
||||
HandleFunc("miek.nl.", HelloServer)
|
||||
a := runtime.GOMAXPROCS(4)
|
||||
|
@ -92,7 +93,7 @@ func HelloServerCompress(w ResponseWriter, req *Msg) {
|
|||
w.WriteMsg(m)
|
||||
}
|
||||
|
||||
func BenchmarkServingCompress(b *testing.B) {
|
||||
func BenchmarkServeCompress(b *testing.B) {
|
||||
b.StopTimer()
|
||||
HandleFunc("miek.nl.", HelloServerCompress)
|
||||
a := runtime.GOMAXPROCS(4)
|
||||
|
|
Loading…
Reference in New Issue