Only compile bench_program_alu for x86_64 (#34282)

Ignore bench if not x86_64
This commit is contained in:
Tyera 2023-11-30 07:48:08 -07:00 committed by GitHub
parent c3323c0c36
commit 5085ee9b1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#![cfg(feature = "sbf_c")]
#![allow(clippy::uninlined_format_args)]
#![allow(clippy::arithmetic_side_effects)]
#![cfg_attr(not(target_arch = "x86_64"), allow(dead_code, unused_imports))]
use {
solana_rbpf::memory_region::MemoryState,
@ -101,6 +102,7 @@ fn bench_program_create_executable(bencher: &mut Bencher) {
}
#[bench]
#[cfg(target_arch = "x86_64")]
fn bench_program_alu(bencher: &mut Bencher) {
let ns_per_s = 1000000000;
let one_million = 1000000;