Skip to content

Commit

Permalink
chore: fix fibonacci runtime bench (#1118)
Browse files Browse the repository at this point in the history
This wasn't updated after some changes because it's not run in CI.
  • Loading branch information
jonathanpwang authored Dec 19, 2024
1 parent 56caed2 commit 5967b9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion benchmarks/benches/fibonacci_execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use openvm_rv32im_circuit::Rv32ImConfig;
use openvm_rv32im_transpiler::{
Rv32ITranspilerExtension, Rv32IoTranspilerExtension, Rv32MTranspilerExtension,
};
use openvm_sdk::StdIn;
use openvm_stark_sdk::p3_baby_bear::BabyBear;
use openvm_transpiler::{transpiler::Transpiler, FromElf};
use pprof::criterion::{Output, PProfProfiler};
Expand All @@ -26,7 +27,10 @@ fn benchmark_function(c: &mut Criterion) {

group.bench_function("execute", |b| {
b.iter(|| {
executor.execute(exe.clone(), vec![]).unwrap();
let n = 100_000u64;
let mut stdin = StdIn::default();
stdin.write(&n);
executor.execute(exe.clone(), stdin).unwrap();
})
});

Expand Down

0 comments on commit 5967b9d

Please sign in to comment.