Document benchmarks in readme

type: documentation
This commit is contained in:
Casey Rodarmor 2020-05-26 13:56:42 -07:00
parent 4e6b475470
commit f832605d81
No known key found for this signature in database
GPG Key ID: 556186B153EC6FE0
2 changed files with 25 additions and 0 deletions

View File

@ -35,6 +35,7 @@ For more about the project and its goals, check out
- [Release Updates](#release-updates)
- [Chat](#chat)
- [Contributing](#contributing)
- [Benchmarks](#benchmarks)
- [Semantic Versioning](#semantic-versioning)
- [Unstable Features](#unstable-features)
- [Source Signatures](#source-signatures)
@ -269,6 +270,18 @@ fixes:
The only required field is `type`. To see the possible values for `type`, run
`cargo run --package gen commit-types`.
## Benchmarks
Performance benchmarks can be run with:
```shell
$ cargo bench --features bench
```
The benchmark framework used is [`criterion`](https://github.com/bheisler/criterion.rs).
The bench targets themselves are in the `benches` directory. These targets call benchmarking functions in `src/benches.rs`, which are only enabled when the `bench` feature is enabled.
## Semantic Versioning
Intermodal follows [semantic versioning](https://semver.org/).

View File

@ -245,6 +245,18 @@ fixes:
The only required field is `type`. To see the possible values for `type`, run
`cargo run --package gen commit-types`.
## Benchmarks
Performance benchmarks can be run with:
```shell
$ cargo bench --features bench
```
The benchmark framework used is [`criterion`](https://github.com/bheisler/criterion.rs).
The bench targets themselves are in the `benches` directory. These targets call benchmarking functions in `src/benches.rs`, which are only enabled when the `bench` feature is enabled.
## Semantic Versioning
Intermodal follows [semantic versioning](https://semver.org/).