diff --git a/bench_test.go b/bench_test.go index 354fc395..9377fa91 100644 --- a/bench_test.go +++ b/bench_test.go @@ -339,8 +339,9 @@ type benchmarkWriteTableCopyFromSrc struct { } func (s *benchmarkWriteTableCopyFromSrc) Next() bool { + next := s.idx < s.count s.idx++ - return s.idx < s.count + return next } func (s *benchmarkWriteTableCopyFromSrc) Values() ([]any, error) {