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

bench-bot: Add benchmark overhead command #102

Closed
ggwpez opened this issue Sep 7, 2022 · 0 comments · Fixed by paritytech/pipeline-scripts#83
Closed

bench-bot: Add benchmark overhead command #102

ggwpez opened this issue Sep 7, 2022 · 0 comments · Fixed by paritytech/pipeline-scripts#83
Assignees

Comments

@ggwpez
Copy link
Member

ggwpez commented Sep 7, 2022

Additionally to the benchmark pallet command we can expose benchmark overhead.
It has a simpler syntax than the pallet command, since it can only be called once per runtime:

polkadot benchmark overhead --chain=<RUNTIME>-dev --execution=wasm --wasm-execution=compiled --weight-path=runtime/<RUNTIME>/constants/src/weights/

Should work for the main runtimes, Polkadot, Kusama, Westend and Rococo.
This is a rather specific tuning, so for the smaller test-nets we don't need this IMO.
It will update two files in that folder: block_weights.rs and extrinsic_weights.rs.

For debugging you can add --max-ext-per-block=1 to make it faster.
There is a small issue (fixed paritytech/polkadot#5984) since it does not support custom copyright headers, so it will use the Substrate header 🙈.

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