fix serialization, added benchmark tests, updated next release docs

This commit is contained in:
yusing
2025-01-26 15:08:10 +08:00
parent 83ea19dd92
commit bbc10cb105
7 changed files with 120 additions and 4 deletions

View File

@@ -36,3 +36,27 @@ func TestSplit(t *testing.T) {
})
}
}
func BenchmarkSplitRune(b *testing.B) {
for range b.N {
SplitRune(alphaNumeric, ',')
}
}
func BenchmarkSplitRuneStdlib(b *testing.B) {
for range b.N {
strings.Split(alphaNumeric, ",")
}
}
func BenchmarkJoinRune(b *testing.B) {
for range b.N {
JoinRune(SplitRune(alphaNumeric, ','), ',')
}
}
func BenchmarkJoinRuneStdlib(b *testing.B) {
for range b.N {
strings.Join(SplitRune(alphaNumeric, ','), ",")
}
}