Hello this is Sandro
I am working on the gas pricing paper with Virgil.
In working on this paper, what is the current gas-price for every elementary operation? The best I’ve found is at:
Is there something more complete than this?
Hello this is Sandro
I am working on the gas pricing paper with Virgil.
In working on this paper, what is the current gas-price for every elementary operation? The best I’ve found is at:
Is there something more complete than this?
http://yellowpaper.io/ Page 20 (Appendix G) is where to start, keep reading through Appendix H. Of course, this document is 100% un-consumable by mere mortals which makes it largely useless. I would love it if there was an actually consumable version of that document.
I put this spreadsheet together https://docs.google.com/spreadsheets/d/1n6mRqkBz3iWcOlRem_mO09GtSKEKrAsfO7Frgx18pNU/edit#gid=0
I’m planning on getting this into a git repo and handling updates/versions. Will post back here if/when that happens.
Note: This version of the spreadsheet does not reflect any changes that are being made for Metropolis.
neat, that summarizes it well. Thank you!
Here is the original spreadsheet that we used to calculate the gas costs:
@aserev Interested in helping with paper. Check DM in discourse.
As a higher level research comment, this is why readable language defs can be nice. Here’s the KEVM interpretation of the current fee schedule: https://github.com/kframework/evm-semantics/blob/master/.build/rvk/evm.k#L1607
And the pyethereum implementation: https://github.com/ethereum/pyethereum/blob/develop/ethereum/opcodes.py
Just ported that google spreadsheet to a github repo https://github.com/djrtwo/evm-opcode-gas-costs
I’ll be tracking yellow paper changes and creating new versions for releases (like metropolis).
Is there any updated version of this table?
@shayan I’m working on one here. Slowly adding all of the gas costs, but it should have all opcodes through Istanbul / Muir Glacier.
That’s great, much needed.
Let me know when you think it’s complete enough to send the link on Eth Security groups
@shayan I finally got around to updating this, so it should be current now. That being said, any inaccuracies that folks can flag up are much appreciated.