-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the root cause of the performance improvement from 0.19.0 to 0.20.0 #214
Comments
Initialization was not optimized earlier and precompile "Loading" was done in the not fastest way, So I optimized that part and it became faster. revm/crates/revm/src/evm_impl.rs Lines 167 to 181 in b19acaa
revm/crates/revm/src/evm_impl.rs Lines 204 to 208 in aa39d64
Cached precompile HashMap here gave speed up: https://github.com/bluealloy/revm/commits/main This is good comparison of simple SM call that does nothing that is x4 faster than 1.8: https://github.com/cl2089/rust-evm-bench An additional change is related to Bytecode analysis. You can read about it here: #121 |
Thanks for your reply! I will take a further look for it. |
If you want to see where exactly the processing went I would recommend doing |
I mocked 10000 transactions to check the performance for revm. After bumping revm to version 0.20.0, I found there is a great improvement.
I have checked the release log, but still have no clue.
Can anyone help me find out what is the root cause? Thanks!
The text was updated successfully, but these errors were encountered: