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

Migrating polkadot-runtime-parachains configuration benchmarking to V2 #6607

Conversation

Krayt78
Copy link
Contributor

@Krayt78 Krayt78 commented Nov 21, 2024

Description

Migrating polkadot-runtime-parachains configuration benchmarking to the new benchmarking syntax v2.
This is a part of #6202

@Krayt78 Krayt78 mentioned this pull request Nov 21, 2024
43 tasks
@re-gius re-gius added R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet. T12-benchmarks This PR/Issue is related to benchmarking and weights. labels Dec 10, 2024
@Krayt78 Krayt78 requested a review from re-gius December 11, 2024 10:41
@paritytech paritytech deleted a comment from command-bot bot Dec 11, 2024
@paritytech paritytech deleted a comment from command-bot bot Dec 11, 2024
@re-gius
Copy link
Contributor

re-gius commented Dec 11, 2024

bot bench cumulus-assets --runtime=asset-hub-westend --pallet=polkadot_runtime_parachains

@command-bot
Copy link

command-bot bot commented Dec 11, 2024

@re-gius https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7904252 was started for your command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=asset-hub-westend --runtime_dir=assets --target_dir=cumulus --pallet=polkadot_runtime_parachains. Check out https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines?page=1&scope=all&username=group_605_bot to know what else is being executed currently.

Comment bot cancel 2-b4b72088-3afd-47b1-af21-392a8a3b4dd4 to cancel this command or bot cancel to cancel all commands in this pull request.

@command-bot
Copy link

command-bot bot commented Dec 11, 2024

@re-gius Command "$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=asset-hub-westend --runtime_dir=assets --target_dir=cumulus --pallet=polkadot_runtime_parachains has finished. Result: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7904252 has finished. If any artifacts were generated, you can download them from https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/7904252/artifacts/download.


set_config_with_perbill {}: set_on_demand_fee_variability(RawOrigin::Root, Perbill::from_percent(100))
#[benchmark]
fn set_config_with_executor_params() {
Copy link
Contributor

Choose a reason for hiding this comment

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

could you add some explanation here defining the values being used? While reviewing, I felt this a bit out of place

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Are you talking about the parameters used in ExecutorParams ?
Do you mean explenation here on git or adding comments ?
Cause i just converted the benchmarking to the V2 syntax, i havent changed any logic from before so idk why those values are used in the first place

@re-gius
Copy link
Contributor

re-gius commented Feb 26, 2025

/cmd bench --pallet polkadot_runtime_parachains::configuration --runtime westend rococo

Copy link
Contributor

Command "bench --pallet polkadot_runtime_parachains::configuration --runtime westend rococo" has started 🚀 See logs here

@paritytech paritytech deleted a comment from github-actions bot Feb 26, 2025
@paritytech paritytech deleted a comment from github-actions bot Feb 26, 2025
…parachains::configuration --runtime westend rococo'
Copy link
Contributor

Command "bench --pallet polkadot_runtime_parachains::configuration --runtime westend rococo" has failed ❌! See logs here

Command output:

✅ Successful benchmarks of runtimes/pallets:
-- westend: ['polkadot_runtime_parachains::configuration']
-- rococo: ['polkadot_runtime_parachains::configuration']

Copy link
Contributor

@seemantaggarwal seemantaggarwal left a comment

Choose a reason for hiding this comment

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

Nit, unblocking, there are some value changes, which should be explained in the pr desc and prdoc should be added

@re-gius
Copy link
Contributor

re-gius commented Mar 4, 2025

The weight value changes only come from the benchmarking command bot, so it's okay - I'm merging this.

@re-gius re-gius added this pull request to the merge queue Mar 4, 2025
@re-gius
Copy link
Contributor

re-gius commented Mar 4, 2025

/tip small

Copy link

@re-gius A referendum for a small (20 DOT) tip was successfully submitted for @Krayt78 (14AgwoPjcRiEEJgjfHmvAqkjdERCG26WEvQUoGLuBzcXKMS2 on polkadot).

Referendum number: 1470.
tip

Copy link

The referendum has appeared on Polkassembly.

Merged via the queue into paritytech:master with commit ac7037e Mar 4, 2025
240 of 254 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R0-silent Changes should not be mentioned in any release notes T2-pallets This PR/Issue is related to a particular pallet. T12-benchmarks This PR/Issue is related to benchmarking and weights.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants