mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
feedback if missing env var
This commit is contained in:
@@ -31,6 +31,8 @@ fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
b.to_async(AsyncStdExecutor)
|
b.to_async(AsyncStdExecutor)
|
||||||
.iter(|| get_chat_msgs_benchmark(black_box(&path.as_ref()), black_box(&chats)))
|
.iter(|| get_chat_msgs_benchmark(black_box(&path.as_ref()), black_box(&chats)))
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
b.to_async(AsyncStdExecutor)
|
b.to_async(AsyncStdExecutor)
|
||||||
.iter(|| get_chat_list_benchmark(black_box(&context)))
|
.iter(|| get_chat_list_benchmark(black_box(&context)))
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
c.bench_function("search hello", |b| {
|
c.bench_function("search hello", |b| {
|
||||||
b.iter(|| block_on(async { search_benchmark(black_box(&path)).await }))
|
b.iter(|| block_on(async { search_benchmark(black_box(&path)).await }))
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user