Land program addresses on the curve (#11174)
This commit is contained in:
13
sdk/benches/pubkey.rs
Normal file
13
sdk/benches/pubkey.rs
Normal 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();
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user