Skip to content

Commit

Permalink
Document benchmarks in readme
Browse files Browse the repository at this point in the history
type: documentation
  • Loading branch information
casey committed May 26, 2020
1 parent 4e6b475 commit f832605
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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/).
Expand Down
12 changes: 12 additions & 0 deletions bin/gen/templates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down

0 comments on commit f832605

Please sign in to comment.