solana/runtime/benches/message_processor.rs

15 lines
278 B
Rust
Raw Normal View History

#![feature(test)]
extern crate test;
2019-04-02 08:35:38 -07:00
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));
})
}