upd bench
This commit is contained in:
parent
103b677d21
commit
3a26a4aa7f
@ -79,9 +79,8 @@ fn db_read(c: &mut Criterion) {
|
|||||||
let reader: Reader<TestData> = Reader::new(&tmpfile, 2048).expect("new reader");
|
let reader: Reader<TestData> = Reader::new(&tmpfile, 2048).expect("new reader");
|
||||||
reader
|
reader
|
||||||
},
|
},
|
||||||
|mut reader| {
|
|reader| {
|
||||||
let mut reader_iter = reader.iter();
|
for item in reader {
|
||||||
while let Some(item) = reader_iter.next() {
|
|
||||||
drop(item);
|
drop(item);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user