Benchmark dc_receive_imf()

Don't count the account creation in the receive emails benchmark

Use Criterion's async support

See https://bheisler.github.io/criterion.rs/book/user_guide/benchmarking_async.html
This commit is contained in:
Hocuri
2021-11-18 21:27:04 +01:00
parent dd4f2ac671
commit e20ee3bfe5
5 changed files with 195 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ humansize = "1"
[dev-dependencies]
ansi_term = "0.12.0"
async-std = { version = "1", features = ["unstable", "attributes"] }
criterion = "0.3"
criterion = { version = "0.3.4", features = ["async_std"] }
futures-lite = "1.12"
log = "0.4"
pretty_assertions = "1.0"
@@ -116,6 +116,10 @@ harness = false
name = "search_msgs"
harness = false
[[bench]]
name = "receive_emails"
harness = false
[features]
default = ["vendored"]
internals = []