Skip to content

Commit a989651

Browse files
committed
Update
1 parent d6817f7 commit a989651

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/singleapp/csv_reuse_record/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ const (
1515
)
1616

1717
func Benchmark_Csv_ReuseRecord(b *testing.B) {
18-
for range b.N {
18+
for b.Loop() {
1919
readCsv(true)
2020
}
2121
}
2222

2323
func Benchmark_Csv_No_ReuseRecord(b *testing.B) {
24-
for range b.N {
24+
for b.Loop() {
2525
readCsv(false)
2626
}
2727
}
@@ -61,4 +61,4 @@ func readCsv(reuse bool) error {
6161
}
6262

6363
return nil
64-
}
64+
}

0 commit comments

Comments
 (0)