This reverts commit 2e921437cd
.
This commit is contained in:
14
runtime/benches/message_processor.rs
Normal file
14
runtime/benches/message_processor.rs
Normal file
@ -0,0 +1,14 @@
|
||||
#![feature(test)]
|
||||
|
||||
extern crate test;
|
||||
|
||||
use solana_runtime::message_processor::*;
|
||||
use test::Bencher;
|
||||
|
||||
#[bench]
|
||||
fn bench_has_duplicates(bencher: &mut Bencher) {
|
||||
bencher.iter(|| {
|
||||
let data = test::black_box([1, 2, 3]);
|
||||
assert!(!has_duplicates(&data));
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user