Crates.io | cargo-criterion |
lib.rs | cargo-criterion |
version | 1.1.0 |
source | src |
created_at | 2020-04-27 23:06:25.295217 |
updated_at | 2021-07-28 22:03:21.079652 |
description | Cargo extension for running Criterion.rs benchmarks and reporting the results. |
homepage | |
repository | https://github.com/bheisler/cargo-criterion |
max_upload_size | |
id | 234814 |
size | 413,229 |
cargo-criterion is a Plugin for Cargo which handles much of the heavy lifting for analyzing and reporting on Criterion-rs benchmarks.
This assumes that you already have benchmarks which use Criterion-rs. If not, see the Criterion-rs Quickstart Guide. Note that Criterion.rs version 0.3.3 or later is recommended. Benchmarks which do not use Criterion.rs, or which use an earlier version, will run correctly but will not benefit from some of cargo-criterion's features.
First install cargo-criterion:
cargo install cargo-criterion
Then you can use it to run your Criterion-rs benchmarks:
cargo criterion
First, thank you for contributing.
One great way to contribute to cargo-criterion is to use it for your own benchmarking needs and report your experiences, file and comment on issues, etc.
Code or documentation improvements in the form of pull requests are also welcome. If you're not sure what to work on, try checking the Beginner label.
If your issues or pull requests have no response after a few days, feel free to ping me (@bheisler).
For more details, see the CONTRIBUTING.md file.
cargo-criterion supports the last three stable minor releases of Rust. At time of writing, this means Rust 1.50 or later. Older versions may work, but are not tested or guaranteed.
Currently, the oldest version of Rust believed to work is 1.46. Future versions of cargo-criterion may break support for such old versions, and this will not be considered a breaking change. If you require cargo-criterion to work on old versions of Rust, you will need to stick to a specific patch version of cargo-criterion.
cargo-criterion was originally developed and is currently maintained by Brook Heisler (@bheisler).
cargo-criterion is dual licensed under the Apache 2.0 license and the MIT license.