refactor: use b.Loop() to simplify the code and improve performance

Signed-off-by: promalert <promalert@outlook.com>
This commit is contained in:
promalert
2025-10-29 16:52:55 +08:00
committed by Michael Mayer
parent a8f4286100
commit 5d0aa1068c
12 changed files with 24 additions and 24 deletions

View File

@@ -166,7 +166,7 @@ func TestIsJoinToken(t *testing.T) {
}
func BenchmarkJoinToken(b *testing.B) {
for n := 0; n < b.N; n++ {
for b.Loop() {
JoinToken()
}
}