From 86182661b500a5fec68d7c5852ee8996d45887ed Mon Sep 17 00:00:00 2001 From: Jonathan Wang <31040440+jonathanpwang@users.noreply.github.com> Date: Sat, 4 Jan 2025 13:12:29 -0500 Subject: [PATCH] chore: black_box bench --- benchmarks/benches/regex_execute.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/benches/regex_execute.rs b/benchmarks/benches/regex_execute.rs index b6ae4dcd8d..0ffd9ec2da 100644 --- a/benchmarks/benches/regex_execute.rs +++ b/benchmarks/benches/regex_execute.rs @@ -1,4 +1,4 @@ -use criterion::{criterion_group, criterion_main, Criterion}; +use criterion::{black_box, criterion_group, criterion_main, Criterion}; use openvm_benchmarks::utils::build_bench_program; use openvm_circuit::arch::{instructions::exe::VmExe, VmExecutor}; use openvm_keccak256_circuit::Keccak256Rv32Config; @@ -33,7 +33,7 @@ fn benchmark_function(c: &mut Criterion) { group.bench_function("execute", |b| { b.iter(|| { executor - .execute(exe.clone(), StdIn::from_bytes(&fe_bytes)) + .execute(exe.clone(), black_box(StdIn::from_bytes(&fe_bytes))) .unwrap(); }) });