Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2020-05-17 15:27:43 +08:00
parent 8467ce7abc
commit 96b97fc3a6

View File

@ -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{}