Skip to content

Commit

Permalink
Use revm analysed code
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Aug 29, 2022
1 parent fa93eab commit 758af59
Show file tree
Hide file tree
Showing 5 changed files with 477 additions and 47 deletions.
86 changes: 44 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ eyre = "0.6.8"
hex = "0.4.3"
primitive-types = { version = "0.11.1", features = ["scale-info"] }
microbench = "0.5.0"
revm = { git = "https://github.com/bluealloy/revm.git", branch="forks", features = ["serde", "hex", "with-serde"] }
revm = { git = "https://github.com/bluealloy/revm.git", branch="precomp", features = ["serde", "hex", "with-serde"] }
bytes = "1.2.1"


[profile.release]
debug = true
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ execute_contract_method_reverted_from_rust_evm (5.0s) ... 7_720.943 ns/ite
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²)
```

After updating revm branch on XPS (i7-10750H CPU @ 2.60GHz):
```text
execute_contract_method_success_from_rust_evm (1.0s) ... 8_549.149 ns/iter (0.999 R²)
execute_contract_method_reverted_from_rust_evm (1.0s) ... 7_504.395 ns/iter (1.000 R²)
execute_contract_method_success_from_revm (1.0s) ... 2_414.513 ns/iter (1.000 R²)
execute_contract_method_reverted_from_revm (1.0s) ... 2_194.849 ns/iter (1.000 R²)
```
Loading

0 comments on commit 758af59

Please sign in to comment.