Skip to content

Commit

Permalink
Bump criterion to 0.4.0 (#237)
Browse files Browse the repository at this point in the history
For the html reports, it now requires the cargo binary cargo-criterion.
  • Loading branch information
Tristramg committed Jan 12, 2023
1 parent f82ac0e commit 9bc01a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion benchmarks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bc01a9

Please sign in to comment.