Benchmarking is performed using criterion.
To execute benchmarks, run cargo bench
from the root directory.
The output can be found in /target/criterion/your_bench_target
. It constructs html reports that can be viewed in a browser.
To add a new bench:
- create a new file under etf-crypto-primitives/benches for example
my_new_bench.rs
- register your benchmark in the etf-crypto-primitives Cargo.toml by adding:
[[bench]]
name = "my_new_bench"
harness = false