Skip to content

Commit 3ee0d24

Browse files
committed
one more test
1 parent 554593a commit 3ee0d24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

slicetostring_benchmark_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ func BenchmarkSliceToStringAdvanced10MixedItems(b *testing.B) {
2929
}
3030
}
3131

32+
func BenchmarkSliceToStringAdvanced10TypedItems(b *testing.B) {
33+
slice := []int32{100, 102, 300, 404, 500, 600, 707, 800, 909, 1024}
34+
for i := 0; i < b.N; i++ {
35+
_ = stringFormatter.Format("{0:L,}", []any{slice})
36+
}
37+
}
38+
3239
func BenchmarkSliceStandard10MixedItems(b *testing.B) {
3340
slice := []any{100, "200", 300, "400", 500, 600, "700", 800, 1.09, "hello"}
3441
for i := 0; i < b.N; i++ {

0 commit comments

Comments
 (0)