mirror of
https://github.com/gin-gonic/gin.git
synced 2025-12-02 04:32:12 +08:00
test(benchmarks): fix the incorrect function name (#4375)
Signed-off-by: mengxun <mengxun1122@163.com>
This commit is contained in:
parent
234a6d4c00
commit
ed150e7254
@ -87,7 +87,7 @@ func BenchmarkOneRouteString(B *testing.B) {
|
|||||||
runRequest(B, router, http.MethodGet, "/text")
|
runRequest(B, router, http.MethodGet, "/text")
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkManyRoutesFist(B *testing.B) {
|
func BenchmarkManyRoutesFirst(B *testing.B) {
|
||||||
router := New()
|
router := New()
|
||||||
router.Any("/ping", func(c *Context) {})
|
router.Any("/ping", func(c *Context) {})
|
||||||
runRequest(B, router, http.MethodGet, "/ping")
|
runRequest(B, router, http.MethodGet, "/ping")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user