* Revert benchmarks back to libtest
Criterion has too many dependencies, it's execution as slower, and
we didn't see the kind of precision we had hoped for to use it to
block CI builds.
* Ignore benchmarks that take more than a few milliseconds per iteration
* Revert "Ignore benchmarks that take more than a few milliseconds per iteration"
This reverts commit b87cdf6ef4
.
* Don't run benchmarks in CI
They are already built in the nightly build. Executing them in CI
doesn't add much value until the results are precise enough to act
on.
13 lines
243 B
Rust
13 lines
243 B
Rust
#![feature(test)]
|
|
extern crate solana;
|
|
extern crate test;
|
|
|
|
use solana::signature::GenKeys;
|
|
use test::Bencher;
|
|
|
|
#[bench]
|
|
fn bench_gen_keys(b: &mut Bencher) {
|
|
let mut rnd = GenKeys::new([0u8; 32]);
|
|
b.iter(|| rnd.gen_n_keypairs(1000));
|
|
}
|