Fix benchmark compilation

This commit is contained in:
Pekka Enberg
2023-09-09 10:24:08 +03:00
parent 4a5c71ab7a
commit 29a6c6b877

View File

@@ -1,11 +1,10 @@
use criterion::{criterion_group, criterion_main, Criterion, Throughput};
use lig_core::{Database, SyncIO};
use lig_core::{Database, IO};
use pprof::criterion::{Output, PProfProfiler};
use std::sync::Arc;
fn bench_db() -> Database {
let io = SyncIO::new();
Database::open(Arc::new(io), "../testing/hello.db").unwrap()
let io = IO::default();
Database::open(io, "../testing/hello.db").unwrap()
}
fn bench(c: &mut Criterion) {