mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
Add script to benchmark the tests
This commit is contained in:
8
scripts/benchmark-tests.sh
Executable file
8
scripts/benchmark-tests.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
# Benchmark the tests with `hyperfine`.
|
||||
|
||||
set -e
|
||||
|
||||
# `--tests` selects unit tests but not the documentation tests.
|
||||
# `--skip` arguments skip online tests.
|
||||
hyperfine --warmup 1 --min-runs 20 "cargo test --tests --release -- --skip imex::transfer::tests::test_drop_provider --skip imex::transfer::tests::test_send_receive --skip oauth2::tests::test_oauth_from_mx --skip oauth2::tests::test_get_oauth2_token --skip oauth2::tests::test_get_oauth2_addr --skip configure::tests::test_no_panic_on_bad_credentials --skip qr_code_generator::tests::test_generate_backup_qr"
|
||||
Reference in New Issue
Block a user