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