Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some cargo bench benchmarks #73

Merged
merged 7 commits into from
Jul 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ To run the `cap-primitives` fuzzer, run:
cargo +nightly fuzz run cap-primitives
```

## Benchmarking

There are several micro-benchmarks for the `cap-std` crate which stress-test
specific API features. As micro-benchmarks, they aren't representative of
real-world use, but they are useful for development of `cap-std`.

To run the `cap-std` benchmarks, run:

```
cargo +nightly bench
```

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ yanix = "0.19.0"
rand = "0.7.3"
cap-tempfile = { path = "cap-tempfile", version = "0.0.0" }
cap-directories = { path = "cap-directories", version = "0.0.0" }
tempfile = "3.1.0"

[target.'cfg(not(windows))'.dev-dependencies]
libc = "0.2.72"
Expand Down
Loading