- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkBuildString_Builder (0.24 sec)
-
src/strings/builder_test.go
}) b.Run("3Write_NoGrow", func(b *testing.B) { b.ReportAllocs() f(b, 3, false) }) b.Run("3Write_Grow", func(b *testing.B) { b.ReportAllocs() f(b, 3, true) }) } func BenchmarkBuildString_Builder(b *testing.B) { benchmarkBuilder(b, func(b *testing.B, numWrite int, grow bool) { for i := 0; i < b.N; i++ { var buf Builder if grow { buf.Grow(len(someBytes) * numWrite) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 8.1K bytes - Viewed (0)