Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog/ganeshvanahalli-nit-4719.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Added
- Benchmark MEL Native + WASM Replay Over an Extremely Large ETH Block
2 changes: 1 addition & 1 deletion crates/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ path = "src/bin.rs"
clap = { workspace = true, features = ["derive"] }
eyre = { workspace = true }
gperftools = { workspace = true, optional = true }
prover = { workspace = true }
prover = { workspace = true, features = ["native"] }

[features]
counters = []
Expand Down
12 changes: 9 additions & 3 deletions crates/bench/src/bin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use std::{path::PathBuf, time::Duration};

use clap::Parser;
use eyre::bail;
#[cfg(feature = "heapprof")]
use gperftools::heap_profiler::HEAP_PROFILER;
#[cfg(feature = "cpuprof")]
Expand Down Expand Up @@ -64,14 +63,21 @@ fn main() -> eyre::Result<()> {
step_times.push(step_end_time);
match machine.get_status() {
MachineStatus::Errored => {
println!("Errored");
println!("Errored at position {}", machine.get_steps());
break;
}
MachineStatus::TooFar => {
bail!("Machine too far => position {}", machine.get_steps())
// TooFar is a graceful end state: the machine asked for an
// inbox message past `first_too_far`. Common when running a
// validation input that doesn't carry inbox messages (e.g.
// MEL-extraction-only InputJSON). Treat as completion so we
// can measure full step counts.
println!("TooFar at position {}", machine.get_steps());
break;
}
MachineStatus::Running => {}
MachineStatus::Finished => {
println!("Finished at position {}", machine.get_steps());
break;
}
}
Expand Down
Loading
Loading