- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for concatNaive (0.24 sec)
-
cmd/object-api-utils_test.go
} } return path.Join(elem...) + trailingSlash } func concatNaive(ss ...string) string { rs := ss[0] for i := 1; i < len(ss); i++ { rs += ss[i] } return rs } func benchmark(b *testing.B, data []string) { b.Run("concat naive", func(b *testing.B) { b.ResetTimer() b.ReportAllocs() for i := 0; i < b.N; i++ { concatNaive(data...) } }) b.Run("concat fast", func(b *testing.B) {
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Thu Aug 08 15:29:58 UTC 2024 - 24.1K bytes - Viewed (0)