Bump criterion to 0.4.0 (#237)

For the html reports, it now requires the cargo binary cargo-criterion.
This commit is contained in:
Tristram Gräbener 2023-01-12 20:34:25 +01:00 committed by GitHub
parent f82ac0e8a3
commit 9bc01a9c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -54,3 +54,7 @@ runs:
uses: ./.github/actions/cargo-install
with:
name: just
- name: Install cargo-criterion
uses: ./.github/actions/cargo-install
with:
name: cargo-criterion

View File

@ -14,7 +14,7 @@ authors.workspace = true
maplibre = { path = "../maplibre", features = ["headless", "embed-static-tiles", "thread-safe-futures"] }
[dev-dependencies]
criterion = { version = "0.3.6", features = ["async_tokio"] }
criterion = { version = "0.4.0", features = ["async_tokio"] }
tokio = "1.19.2"
[[bench]]

View File

@ -70,7 +70,7 @@ test PROJECT ARCH:
cargo test -p {{PROJECT}} --target {{ARCH}}
benchmark:
cargo bench -p benchmarks
cargo criterion -p benchmarks
fmt: nightly-install-rustfmt
export RUSTUP_TOOLCHAIN=$NIGHTLY_TOOLCHAIN && cargo fmt