mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
add chatlist loading benchmark
This commit is contained in:
@@ -27,7 +27,7 @@ fn criterion_benchmark(c: &mut Criterion) {
|
||||
(0..len).map(|i| chatlist.get_chat_id(i).unwrap()).collect()
|
||||
});
|
||||
|
||||
c.bench_function("Load all chats", |b| {
|
||||
c.bench_function("chat::get_chat_msgs (load messages from 10 chats)", |b| {
|
||||
b.to_async(AsyncStdExecutor)
|
||||
.iter(|| get_chat_msgs_benchmark(black_box(&path.as_ref()), black_box(&chats)))
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user