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:
@@ -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("")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user