Skip to content
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

Add benchmarking tool #23

Closed
rakita opened this issue Dec 23, 2021 · 3 comments
Closed

Add benchmarking tool #23

rakita opened this issue Dec 23, 2021 · 3 comments

Comments

@rakita
Copy link
Member

rakita commented Dec 23, 2021

This seems like a great way to compare all evm's by opcode:
https://github.com/imapp-pl/gas-cost-estimator

additionaly we could add testing benchmark of our own so that we have faster build/test iteration when optimizing things.

@stan7123
Copy link

Hi,
I'm new to Rust but I'm trying to write simple code to benchmark arbitrary bytecode on REVM.
I saw examples that are already in the repo but they all assume creating a contract and running a transaction. Is there a simpler way to just run raw bytecode on EVM? Could you provide a simple example of how to do it?

@stan7123
Copy link

I managed to put the bytecode into the contract object and I'm running Interpreter with transaction data set to an empty string.
Seems to be executing opcodes correctly.

rakita pushed a commit that referenced this issue Sep 22, 2023
@rakita
Copy link
Member Author

rakita commented Jan 30, 2024

Will close this as it is an old issue,

@rakita rakita closed this as completed Jan 30, 2024
anylots pushed a commit to morph-l2/revm that referenced this issue Oct 15, 2024
* fix merge fails

* fix ci

* fix clippy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants