Land program addresses on the curve (#11174)

This commit is contained in:
Jack May
2020-07-27 10:45:59 -07:00
committed by GitHub
parent aa8d6083c4
commit f317c362a8
5 changed files with 64 additions and 15 deletions

13
sdk/benches/pubkey.rs Normal file
View File

@ -0,0 +1,13 @@
#![feature(test)]
extern crate test;
use solana_sdk::pubkey::Pubkey;
use test::Bencher;
#[bench]
fn bench_pubkey_create_program_address(b: &mut Bencher) {
let program_id = Pubkey::new_rand();
b.iter(|| {
Pubkey::create_program_address(&[b"todo"], &program_id).unwrap();
});
}