Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cassc committed Aug 18, 2022
1 parent a21068f commit 0822920
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Benchmark Rust EVM
# Benchmark Rust EVM and REVM



Expand All @@ -14,11 +14,11 @@ For each EVM,
* micro bench the `add(0xc7)` method for 5 seconds


Sample results:
Sample results on Thinkpad X13 Gen1:

``` text
execute_contract_method_success_from_revm (5.0s) ... 8_573.829 ns/iter (0.999 R²)
execute_contract_method_reverted_from_revm (5.0s) ... 8_188.534 ns/iter (0.999 R²)
execute_contract_method_success_from_rust_evm (5.0s) ... 8_419.229 ns/iter (0.999 R²)
execute_contract_method_reverted_from_rust_evm (5.0s) ... 7_759.615 ns/iter (0.995 R²)
execute_contract_method_success_from_rust_evm (5.0s) ... 9_431.962 ns/iter (0.999 R²)
execute_contract_method_reverted_from_rust_evm (5.0s) ... 7_720.943 ns/iter (1.000 R²)
execute_contract_method_success_from_revm (5.0s) ... 8_617.185 ns/iter (1.000 R²)
execute_contract_method_reverted_from_revm (5.0s) ... 8_594.083 ns/iter (0.999 R²)
```
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,6 @@ fn bench_revm() -> Result<()> {
}

fn main() -> Result<()> {
bench_revm()?;
bench_rust_evm()
bench_rust_evm()?;
bench_revm()
}

0 comments on commit 0822920

Please sign in to comment.