build: modernize benchmark usage

This commit is contained in:
Nick Craig-Wood
2025-09-15 12:45:57 +01:00
parent d7aa37d263
commit 04d49bf0ea
3 changed files with 6 additions and 6 deletions
+1 -1
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("")
}
})