Move all benchmarks to benches/

This commit is contained in:
Greg Fitzgerald
2018-07-10 20:33:16 -06:00
committed by Greg Fitzgerald
parent bed5438831
commit 3144a70b18
9 changed files with 394 additions and 385 deletions

12
benches/signature.rs Normal file
View File

@@ -0,0 +1,12 @@
#![feature(test)]
extern crate solana;
extern crate test;
use solana::signature::GenKeys;
use test::Bencher;
#[bench]
fn bench_gen_keys(b: &mut Bencher) {
let rnd = GenKeys::new([0u8; 32]);
b.iter(|| rnd.gen_n_keypairs(1000));
}