Skip to content

Add pallet-collective instances benchmarks to all runtimes#3208

Merged
RomarQ merged 6 commits intomasterfrom
snowmead/pallet-collective-runtime-benchmarks
Mar 10, 2025
Merged

Add pallet-collective instances benchmarks to all runtimes#3208
RomarQ merged 6 commits intomasterfrom
snowmead/pallet-collective-runtime-benchmarks

Conversation

@snowmead
Copy link
Copy Markdown
Contributor

@snowmead snowmead commented Mar 7, 2025

What does it do?

Adds pallet-collective instances benchmarks to all runtimes. Added a temporary workaround to support benchmarking different pallet instances until we upgrade polkadot-sdk.

Uses new frame-omni-bencher in run-benches-for-runtime.sh and now outputs to the weights directory instead of a specific pallet file to support pallet instances.

Is there something left for follow-up PRs?

We should remove the workaround after our polkadot-sdk fork has been upgraded to stable2503.

The fix was done in this PR paritytech/polkadot-sdk#6435

We also need to benchmark both instances of pallet-collective: pallet_collective and pallet_collective_open_tech_committee.

…s script now uses frame-omni-bencher and outputs to a folder instead of a file to support pallet instances.
@snowmead snowmead requested review from a team as code owners March 7, 2025 14:21
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2025

Moonbase Weight Difference Report

File Extrinsic Old New Change Percent

Moonriver Weight Difference Report

File Extrinsic Old New Change Percent

Moonbeam Weight Difference Report

File Extrinsic Old New Change Percent

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2025

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2428 KB (+8 KB) 🚨

Moonbeam runtime: 2404 KB (+4 KB) 🚨

Moonriver runtime: 2408 KB (-4 KB) 🚨

Compared to latest release (runtime-3501)

Moonbase runtime: 2428 KB (+476 KB compared to latest release) 🚨

Moonbeam runtime: 2404 KB (+464 KB compared to latest release) 🚨

Moonriver runtime: 2408 KB (+468 KB compared to latest release) 🚨

@RomarQ RomarQ added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes not-breaking Does not need to be mentioned in breaking changes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit labels Mar 7, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 7, 2025

Coverage Report

@@                                Coverage Diff                                @@
##           master   snowmead/pallet-collective-runtime-benchmarks      +/-   ##
=================================================================================
- Coverage   74.57%                                          74.37%   -0.20%     
+ Files         381                                             384       +3     
+ Lines       96700                                           97044     +344     
=================================================================================
+ Hits        72114                                           72174      +60     
+ Misses      24586                                           24870     +284     
Files Changed Coverage

Coverage generated Fri Mar 7 19:35:22 UTC 2025

RomarQ
RomarQ previously approved these changes Mar 7, 2025
RomarQ
RomarQ previously approved these changes Mar 7, 2025
@RomarQ RomarQ requested a review from stiiifff March 10, 2025 14:43
@RomarQ RomarQ merged commit df27d55 into master Mar 10, 2025
38 checks passed
@RomarQ RomarQ deleted the snowmead/pallet-collective-runtime-benchmarks branch March 10, 2025 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D3-trivial PR contains trivial changes in a runtime directory that do not require an audit not-breaking Does not need to be mentioned in breaking changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants