db read with mmap
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-11-09 20:57:21 +03:00
parent 7efd03d624
commit 6a3b3647b3
5 changed files with 41 additions and 35 deletions

View File

@@ -3,7 +3,7 @@ extern crate criterion;
#[path = "../src/db.rs"]
mod db;
use std::{path::PathBuf};
use std::path::PathBuf;
use db::{Reader, Writer, WriterOpts};
@@ -88,6 +88,5 @@ fn config() -> Criterion {
Criterion::default().sample_size(40)
}
criterion_group!{name=benches; config = config(); targets = db_read, db_write}
criterion_group! {name=benches; config = config(); targets = db_read, db_write}
criterion_main!(benches);