-
Notifications
You must be signed in to change notification settings - Fork 992
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'tomas/test-benchmarks' (#1907)
* origin/tomas/test-benchmarks: changelog: add #1907 benches: upgrade criterion.rs bench: fix ibc native_vp bench benches/process_wrapper: increase gas limit to make it pass benches: update tx signatures for multisig benches: fix gov to enter voting period before voting benches: fix epoch params in gov proposals shared/ledger/gov: add some logging to gov VP benches: add README.md benches: add tracing support CI/build-and-test: run `make test-benches` make: add `test-benches` recipe and add it to `test`
- Loading branch information
Showing
11 changed files
with
172 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- Updated benchmarks and added tests to ensure they're working. | ||
([\#1907](https://github.com/anoma/namada/pull/1907)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Benchmarks | ||
|
||
The benchmarks are built with [criterion.rs](https://bheisler.github.io/criterion.rs/book). | ||
|
||
To enable tracing logs, run with e.g. `RUST_LOG=debug`. | ||
|
||
To ensure that the benches can run successfully without performing measurement, you can run `make test-benches` from the workspace run. | ||
|
||
To test a selected bench can run successfully on a single run, use can use e.g.: | ||
|
||
```shell | ||
cargo test --bench native_vps | ||
``` | ||
|
||
To benchmark a selected bench with a minimum sample size use e.g.: | ||
|
||
```shell | ||
cargo bench --bench whitelisted_txs -- --sample-size 10 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.