Skip to content

Commit

Permalink
chore: remove analysis bench inner loops (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Dec 20, 2024
1 parent 5f229c0 commit 2ebed31
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions bins/revme/src/cmd/bench/analysis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use revm::{
primitives::{address, bytes, hex, Bytes, TxKind},
Context, MainEvm,
};
use std::time::Instant;

const BYTES: &str = include_str!("analysis.hex");

Expand All @@ -23,16 +22,5 @@ pub fn run() {
tx.data = bytes!("8035F0CE");
});
let mut evm = MainEvm::new(context, EthHandler::default());

// Just to warm up the processor.
for _ in 0..10000 {
let _ = evm.transact().unwrap();
}

let timer = Instant::now();
for _ in 0..30000 {
let _ = evm.transact().unwrap();
}
let time = timer.elapsed();
println!("Elapsed time: {:?}", time);
let _ = evm.transact().unwrap();
}

0 comments on commit 2ebed31

Please sign in to comment.