upd bench

This commit is contained in:
Dmitry Belyaev 2023-03-28 15:37:21 +03:00
parent 103b677d21
commit 3a26a4aa7f
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -79,9 +79,8 @@ fn db_read(c: &mut Criterion) {
let reader: Reader<TestData> = Reader::new(&tmpfile, 2048).expect("new reader");
reader
},
|mut reader| {
let mut reader_iter = reader.iter();
while let Some(item) = reader_iter.next() {
|reader| {
for item in reader {
drop(item);
}
},