mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-18 14:52:18 +08:00
update
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
8467ce7abc
commit
96b97fc3a6
14
tree_test.go
14
tree_test.go
@ -93,20 +93,6 @@ func TestCountParams(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
var s = strings.Repeat("/:param", 5)
|
||||
|
||||
func BenchmarkCountParamsOld(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
countParamsOld(s)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkCountParams(b *testing.B) {
|
||||
for i := 0; i < b.N; i++ {
|
||||
countParamsNew(s)
|
||||
}
|
||||
}
|
||||
|
||||
func TestTreeAddAndGet(t *testing.T) {
|
||||
tree := &node{}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user