From dd34a4c045f37d7890e7fc6bc0b82fbb37e37a62 Mon Sep 17 00:00:00 2001 From: Joan Martinez Date: Mon, 22 Jul 2024 11:42:25 +0200 Subject: [PATCH] bench: fix compilation --- core/benches/benchmark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/benches/benchmark.rs b/core/benches/benchmark.rs index 175c86df5..9be7679ec 100644 --- a/core/benches/benchmark.rs +++ b/core/benches/benchmark.rs @@ -1,13 +1,13 @@ use criterion::{criterion_group, criterion_main, Criterion, Throughput}; use limbo_core::{Database, PlatformIO, IO}; use pprof::criterion::{Output, PProfProfiler}; -use std::rc::Rc; +use std::sync::Arc; fn bench(c: &mut Criterion) { let mut group = c.benchmark_group("limbo"); group.throughput(Throughput::Elements(1)); - let io = Rc::new(PlatformIO::new().unwrap()); + let io = Arc::new(PlatformIO::new().unwrap()); let db = Database::open_file(io.clone(), "../testing/testing.db").unwrap(); let conn = db.connect();