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

Check and refine DefaultGasMultiplier #631

Closed
webmaster128 opened this issue Oct 7, 2021 · 1 comment · Fixed by #636
Closed

Check and refine DefaultGasMultiplier #631

webmaster128 opened this issue Oct 7, 2021 · 1 comment · Fixed by #636

Comments

@webmaster128
Copy link
Member

There is CosmWasm gas and Cosmos SDK gas. With 1.0 CosmWasm gas strives to consume 1 Teragas/millisecond on an off-the-shelf Intel machine (e.g. CI machine). Anything significatly cheaper of more expensive (in the order of magnitudes) justifies repricing.

From some very early measurements we set DefaultGasMultiplier to 100 and increased it by a factor of 150_000 because between 0.16 and 1.0 CosmWasm was changed to charge 150_000 instead of 1 gas per Wasm operation. But we don't know accurate this initial 100 is after two years of development.

To refine the multiplier, we should figure out the amount of gas Cosmos SDK consumes per millisecond. This can be done via secp256k1 signature verification. We know it costs 1000 Cosmo SDK gas. We need to benchmark it and calculate the rest from there.

@ethanfrey ethanfrey added this to the v1.0.0 milestone Oct 7, 2021
@ethanfrey
Copy link
Member

This seems part of #566

But better defined

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 a pull request may close this issue.

2 participants