dont care about padding for benchmark function
This commit is contained in:
parent
876680216e
commit
dd35496669
|
@ -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()
|
b.StopTimer()
|
||||||
makeMsg := func(question string, ans, ns, e []RR) *Msg {
|
makeMsg := func(question string, ans, ns, e []RR) *Msg {
|
||||||
msg := new(Msg)
|
msg := new(Msg)
|
||||||
|
|
|
@ -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()
|
b.StopTimer()
|
||||||
HandleFunc("miek.nl.", HelloServer)
|
HandleFunc("miek.nl.", HelloServer)
|
||||||
a := runtime.GOMAXPROCS(4)
|
a := runtime.GOMAXPROCS(4)
|
||||||
|
|
Loading…
Reference in New Issue