feedback if missing env var

This commit is contained in:
holger krekel
2022-03-31 10:01:01 +02:00
parent 3e5e852e20
commit aaa42a3412
3 changed files with 6 additions and 0 deletions

View File

@@ -31,6 +31,8 @@ fn criterion_benchmark(c: &mut Criterion) {
b.to_async(AsyncStdExecutor)
.iter(|| get_chat_msgs_benchmark(black_box(&path.as_ref()), black_box(&chats)))
});
} else {
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
}
}

View File

@@ -18,6 +18,8 @@ fn criterion_benchmark(c: &mut Criterion) {
b.to_async(AsyncStdExecutor)
.iter(|| get_chat_list_benchmark(black_box(&context)))
});
} else {
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
}
}

View File

@@ -20,6 +20,8 @@ fn criterion_benchmark(c: &mut Criterion) {
c.bench_function("search hello", |b| {
b.iter(|| block_on(async { search_benchmark(black_box(&path)).await }))
});
} else {
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
}
}