mirror of
https://github.com/miniflux/v2.git
synced 2025-07-27 17:28:38 +00:00
refactor(tests): use b.Loop() instead of for range b.N
See https://tip.golang.org/doc/go1.24#new-benchmark-function
This commit is contained in:
parent
3ab9ca9e4d
commit
43546976d2
3 changed files with 3 additions and 3 deletions
|
@ -80,7 +80,7 @@ func TestEstimateReadingTime(t *testing.T) {
|
|||
}
|
||||
|
||||
func BenchmarkEstimateReadingTime(b *testing.B) {
|
||||
for range b.N {
|
||||
for b.Loop() {
|
||||
for _, sample := range samples {
|
||||
EstimateReadingTime(sample, 200, 500)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue