From 40aa081ec2d1a10cb027556cb147ec92371b93b5 Mon Sep 17 00:00:00 2001 From: jussisaurio Date: Wed, 17 Jul 2024 11:52:17 +0300 Subject: [PATCH] Conditionally disable rusqlite benchmark --- core/benches/benchmark.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/benches/benchmark.rs b/core/benches/benchmark.rs index 93744fced..175c86df5 100644 --- a/core/benches/benchmark.rs +++ b/core/benches/benchmark.rs @@ -91,6 +91,12 @@ fn bench(c: &mut Criterion) { drop(group); + // https://github.com/penberg/limbo/issues/174 + // The rusqlite benchmark crashes on Mac M1 when using the flamegraph features + if std::env::var("DISABLE_RUSQLITE_BENCHMARK").is_ok() { + return; + } + let mut group = c.benchmark_group("rusqlite"); group.throughput(Throughput::Elements(1));