diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-02-10 17:00:06 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-02-15 16:44:32 +0100 |
commit | 851b8021447093c9ba7b3962b7008eb994998074 (patch) | |
tree | fbd4f4bac1e4aef0b9083d1c0d953be2be9e45f4 | |
parent | 35fdf498553d8519c513f541f6499719257d020e (diff) |
bench: Add readme.
-rw-r--r-- | openpgp/benches/README.md | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/openpgp/benches/README.md b/openpgp/benches/README.md new file mode 100644 index 00000000..38418da7 --- /dev/null +++ b/openpgp/benches/README.md @@ -0,0 +1,27 @@ +# Benchmarks + +We use [`criterion`](https://crates.io/crates/criterion) as a benchmark framework. It is +* statistics driven, +* configurable, +* produces nice plots +* and is compatible with stable Rust. + +To run the benchmarks, run +``` +cargo bench +``` + +To run a specific benchmark, run +``` +cargo bench -- benchmark_name +``` + +To test the benchmarks, run +``` +cargo test --benches +``` + +To test a specific benchmark +``` +cargo test --benches -- benchmark_name +``` |