Skip to content

Commit

Permalink
go test -bench BenchmarkRouterStatic -run=^$
Browse files Browse the repository at this point in the history
  • Loading branch information
nbari committed Oct 4, 2017
1 parent 7422335 commit 97607fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bench_test.go
Expand Up @@ -23,8 +23,7 @@ func benchRequest(b *testing.B, router http.Handler, r *http.Request) {
}
}

// func BenchmarkRouterStatic(b *testing.B) {
func BenchmarkXX(b *testing.B) {
func BenchmarkRouterStatic(b *testing.B) {
router := New()
router.HandleFunc("/hello", func(w http.ResponseWriter, r *http.Request) {}, "GET,HEAD")
r, _ := http.NewRequest("GET", "/hello", nil)
Expand Down

0 comments on commit 97607fe

Please sign in to comment.