diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-02-10 17:00:06 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-04-13 12:38:16 +0200 |
commit | 18ecfd9e42a0b6c4f7a9fb713bbc53a9f5302b7c (patch) | |
tree | 31fde0cbfb3009ddbaf97e9e519a45999b953604 | |
parent | 0055f6ba67161692d2a5d32b8c00c6b32bf0c0f1 (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 +``` |