Skip to content

Commit 3387213

Browse files
committed
Try single-threaded runtime for microbenchmarks
1 parent d1fbeed commit 3387213

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rdf-fusion/benches/store.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use rdf_fusion::model::Term;
66
use rdf_fusion::store::Store;
77
use rdf_fusion_engine::results::QueryResults;
88
use rdf_fusion_model::{GraphName, NamedNode, Quad, Subject};
9-
use tokio::runtime::{Builder, Runtime};
9+
use tokio::runtime::Builder;
1010

1111
/// This benchmark measures transactionally inserting synthetic quads into the store.
1212
fn store_load(c: &mut Criterion) {
@@ -24,7 +24,7 @@ fn store_load(c: &mut Criterion) {
2424
/// This benchmarks measure the duration of running a simple query (1 triple pattern). Hopefully,
2525
/// this can provide insights into the "baseline" overhead of the query engine.
2626
fn store_single_pattern(c: &mut Criterion) {
27-
let runtime = Builder::new_current_thread().enable_all().unwrap();
27+
let runtime = Builder::new_current_thread().enable_all().build().unwrap();
2828

2929
// No Quads
3030
c.bench_function("Store::query - Single Pattern / No Quads", |b| {

0 commit comments

Comments
 (0)