Browse Source

Oops! Forgot one

Carl Jackson 11 years ago
parent
commit
3bfbfe4c5e
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      web/bench_test.go

+ 5
- 3
web/bench_test.go View File

@ -133,9 +133,11 @@ func BenchmarkStatic(b *testing.B) {
b.ResetTimer()
b.ReportAllocs()
for i := 0; i < b.N; i++ {
m.ServeHTTP(w, r)
}
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
m.ServeHTTP(w, r)
}
})
}
func BenchmarkRoute5(b *testing.B) {


Loading…
Cancel
Save