1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

build: modernize benchmark usage

This commit is contained in:
Nick Craig-Wood
2025-09-14 16:13:42 +01:00
parent d7aa37d263
commit 04d49bf0ea
3 changed files with 6 additions and 6 deletions

View File

@@ -213,7 +213,7 @@ func BenchmarkCheckParents(b *testing.B) {
dt.Add(o)
}
b.StartTimer()
for n := 0; n < b.N; n++ {
for b.Loop() {
dt.CheckParents("")
}
})