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

Rebalance gas cost #2152

Merged
merged 15 commits into from
May 30, 2024
Merged

Rebalance gas cost #2152

merged 15 commits into from
May 30, 2024

Conversation

chipshort
Copy link
Collaborator

@chipshort chipshort commented May 24, 2024

closes #2143

I updated the GasConfig values and cost function according to the benchmark on the benchmark server.
I also changed the way we charge ed25519_batch_verify gas to fit better with the actual execution time. The calculation is now similar to that of the BLS functions, so I refactored this a bit.

I also addressed this old todo, since we are changing gas costs in tests anyways with this rebalancing. I don't think it's super important that we are exactly the same as wasmd here, but multiple orders of magnitude off seemed a bit much.

@chipshort chipshort marked this pull request as ready for review May 24, 2024 13:28
Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a CHANGELOG entry? Then this is good to go as far as I can tell

@chipshort chipshort merged commit af4b239 into main May 30, 2024
29 of 31 checks passed
@chipshort chipshort deleted the chipshort/gas-benchmarking branch May 30, 2024 12:03
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

Successfully merging this pull request may close these issues.

Re-balance all gas values configured in this repo and document reference hardware
3 participants