deps: update criterion dependency to v0.4.0 (#5935)

This commit is contained in:
Qinxuan Chen
2023-03-07 23:21:48 +08:00
committed by GitHub
parent 812b4b5229
commit e2dcb19099
4 changed files with 53 additions and 81 deletions

View File

@@ -35,7 +35,7 @@ sha2 = { version = "0.10.2", optional = true }
# accomodated in `tests`.
[dev-dependencies]
criterion = "0.3"
criterion = { version = "0.4.0", features = ["html_reports"] }
similar = "2.1.0"
[build-dependencies]

View File

@@ -37,8 +37,6 @@ mod x86 {
/// Using an inner module to feature-gate the benchmarks means that we must
/// manually specify how to run the benchmarks (see `criterion_main!`).
pub fn run_benchmarks() {
criterion::__warn_about_html_reports_feature();
criterion::__warn_about_cargo_bench_support_feature();
benches();
Criterion::default().configure_from_args().final_summary();
}