mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -45,7 +45,7 @@ jobs:
|
|||||||
- uses: actions-rs/clippy-check@v1
|
- uses: actions-rs/clippy-check@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
args: --workspace --tests --examples
|
args: --workspace --tests --examples --benches
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: Rust doc comments
|
name: Rust doc comments
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ fn criterion_benchmark(c: &mut Criterion) {
|
|||||||
|
|
||||||
c.bench_function("chat::get_chat_msgs (load messages from 10 chats)", |b| {
|
c.bench_function("chat::get_chat_msgs (load messages from 10 chats)", |b| {
|
||||||
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 {
|
} else {
|
||||||
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
|
println!("env var not set: DELTACHAT_BENCHMARK_DATABASE");
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use deltachat::chatlist::Chatlist;
|
|||||||
use deltachat::context::Context;
|
use deltachat::context::Context;
|
||||||
|
|
||||||
async fn get_chat_list_benchmark(context: &Context) {
|
async fn get_chat_list_benchmark(context: &Context) {
|
||||||
Chatlist::try_load(&context, 0, None, None).await.unwrap();
|
Chatlist::try_load(context, 0, None, None).await.unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
fn criterion_benchmark(c: &mut Criterion) {
|
fn criterion_benchmark(c: &mut Criterion) {
|
||||||
|
|||||||
Reference in New Issue
Block a user