Skip to content

Commit

Permalink
chore: black_box bench
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Jan 4, 2025
1 parent 3faaaf0 commit 8618266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmarks/benches/regex_execute.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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();
})
});
Expand Down

0 comments on commit 8618266

Please sign in to comment.