Conditionally disable rusqlite benchmark

This commit is contained in:
jussisaurio
2024-07-17 11:52:17 +03:00
parent 6f00a406dd
commit 40aa081ec2

View File

@@ -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));