diff --git a/core/router/api_builder_benchmark_test.go b/core/router/api_builder_benchmark_test.go index 04c1fd0e..e16f798c 100644 --- a/core/router/api_builder_benchmark_test.go +++ b/core/router/api_builder_benchmark_test.go @@ -1,6 +1,7 @@ package router import ( + "bytes" "math/rand" "strings" "testing" @@ -44,7 +45,8 @@ func randStringBytesMaskImprSrc(n int) string { // END. func genPaths(routesLength, minCharLength, maxCharLength int) []string { - b := new(strings.Builder) + // b := new(strings.Builder) + b := new(bytes.Buffer) paths := make([]string, routesLength) pathStart := '/' for i := 0; i < routesLength; i++ {