Skip to content

add fresh weights for westend asset hub#10284

Merged
kianenigma merged 25 commits into
masterfrom
kiz-epmb-westend-weights
Nov 12, 2025
Merged

add fresh weights for westend asset hub#10284
kianenigma merged 25 commits into
masterfrom
kiz-epmb-westend-weights

Conversation

@kianenigma
Copy link
Copy Markdown
Contributor

  • And deprecate FastUnstake as it is unsafe
  • And use the faster solver for benchmarks to speed things up
  • Remove hardcoded weights of westend.

A step to reduce the diff size in #9925

@kianenigma kianenigma requested a review from a team as a code owner November 11, 2025 10:41
@kianenigma
Copy link
Copy Markdown
Contributor Author

/cmd bench --pallet pallet_election_provider_multi_block pallet_election_provider_multi_block_signed pallet_election_provider_multi_block_verifier pallet_election_provider_multi_block_unsigned --runtime asset-hub-westend

@github-actions
Copy link
Copy Markdown
Contributor

Command "bench --pallet pallet_election_provider_multi_block pallet_election_provider_multi_block_signed pallet_election_provider_multi_block_verifier pallet_election_provider_multi_block_unsigned --runtime asset-hub-westend" has started 🚀 See logs here

@kianenigma kianenigma added the T2-pallets This PR/Issue is related to a particular pallet. label Nov 11, 2025
…t_election_provider_multi_block pallet_election_provider_multi_block_signed pallet_election_provider_multi_block_verifier pallet_election_provider_multi_block_unsigned --runtime asset-hub-westend'
@github-actions
Copy link
Copy Markdown
Contributor

Command "bench --pallet pallet_election_provider_multi_block pallet_election_provider_multi_block_signed pallet_election_provider_multi_block_verifier pallet_election_provider_multi_block_unsigned --runtime asset-hub-westend" has finished ✅ See logs here

Details

Subweight results:
File Extrinsic Old New Change [%]
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_valid_terminal 10.34ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_valid_non_terminal 1.33ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_invalid_terminal 14.14ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_invalid_non_terminal 13.72ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_unsigned.rs validate_unsigned 218.25us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_unsigned.rs submit_unsigned 1.83ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs unset_page 690.15us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs submit_page 659.74us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs register_not_full 509.90us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs register_eject 4.91ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs clear_old_round_data 4.55ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs bail 4.57ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_nothing 184.74us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_unsigned 246.72us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_snapshot_rest 107.41ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_snapshot_msp 31.78ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_signed_validation 218.15us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_signed 107.30ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs manage 233.00ns Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs export_terminal 13.52ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs export_non_terminal 571.33us Added
Command output:

✅ Successful benchmarks of runtimes/pallets:
-- asset-hub-westend: ['pallet_election_provider_multi_block', 'pallet_election_provider_multi_block_signed', 'pallet_election_provider_multi_block_verifier', 'pallet_election_provider_multi_block_unsigned']

@kianenigma
Copy link
Copy Markdown
Contributor Author

/cmd prdoc --bump patch

Comment thread cumulus/parachains/runtimes/assets/asset-hub-westend/src/lib.rs Outdated
@kianenigma kianenigma enabled auto-merge November 11, 2025 12:26
Comment thread cumulus/parachains/runtimes/assets/asset-hub-westend/src/staking.rs
Comment thread prdoc/pr_10284.prdoc Outdated
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
@kianenigma
Copy link
Copy Markdown
Contributor Author

/cmd bench --pallet pallet_election_provider_multi_block pallet_election_provider_multi_block::signed pallet_election_provider_multi_block::verifier pallet_election_provider_multi_block::unsigned --runtime asset-hub-westend

@github-actions
Copy link
Copy Markdown
Contributor

Command "bench --pallet pallet_election_provider_multi_block pallet_election_provider_multi_block::signed pallet_election_provider_multi_block::verifier pallet_election_provider_multi_block::unsigned --runtime asset-hub-westend" has started 🚀 See logs here

…t_election_provider_multi_block pallet_election_provider_multi_block::signed pallet_election_provider_multi_block::verifier pallet_election_provider_multi_block::unsigned --runtime asset-hub-westend'
@github-actions
Copy link
Copy Markdown
Contributor

Command "bench --pallet pallet_election_provider_multi_block pallet_election_provider_multi_block::signed pallet_election_provider_multi_block::verifier pallet_election_provider_multi_block::unsigned --runtime asset-hub-westend" has finished ✅ See logs here

Details

Subweight results:
File Extrinsic Old New Change [%]
substrate/frame/revive/src/weights.rs identity 118.24us 156.03us +31.96
substrate/frame/revive/src/weights.rs seal_call_data_copy 119.86us 156.55us +30.62
substrate/frame/revive/src/weights.rs seal_copy_to_contract 212.31us 250.96us +18.21
substrate/frame/revive/src/weights.rs seal_return 26.79us 31.57us +17.85
substrate/frame/revive/src/weights.rs seal_call_data_load 315.00ns 362.00ns +14.92
substrate/frame/revive/src/weights.rs instr 1.20ms 1.35ms +13.16
substrate/frame/revive/src/weights.rs seal_deposit_event 83.43us 92.04us +10.32
substrate/frame/revive/src/weights.rs seal_caller 381.00ns 412.00ns +8.14
substrate/frame/revive/src/weights.rs seal_origin 355.00ns 377.00ns +6.20
substrate/frame/revive/src/weights.rs seal_return_data_size 318.00ns 337.00ns +5.97
substrate/frame/revive/src/weights.rs minimum_balance 1.56us 1.48us -5.12
substrate/frame/revive/src/weights.rs seal_base_fee 1.30us 1.22us -6.46
substrate/frame/revive/src/weights.rs caller_is_origin 1.35us 1.25us -7.33
substrate/frame/revive/src/weights.rs seal_value_transferred 384.00ns 354.00ns -7.81
substrate/frame/revive/src/weights.rs caller_is_root 1.35us 1.22us -9.79
substrate/frame/revive/src/weights.rs seal_block_number 369.00ns 322.00ns -12.74
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_valid_terminal 10.30ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_valid_non_terminal 1.33ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_invalid_terminal 14.06ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_invalid_non_terminal 13.65ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_unsigned.rs validate_unsigned 222.91us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_unsigned.rs submit_unsigned 1.94ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs unset_page 645.94us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs submit_page 651.56us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs register_not_full 511.57us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs register_eject 4.91ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs clear_old_round_data 4.55ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs bail 4.57ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_nothing 184.68us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_unsigned 241.71us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_snapshot_rest 106.22ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_snapshot_msp 31.71ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_signed_validation 215.18us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_signed 106.38ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs manage 207.00ns Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs export_terminal 13.53ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs export_non_terminal 563.35us Added
Command output:

✅ Successful benchmarks of runtimes/pallets:
-- asset-hub-westend: ['pallet_election_provider_multi_block', 'pallet_election_provider_multi_block::signed', 'pallet_election_provider_multi_block::verifier', 'pallet_election_provider_multi_block::unsigned']

Comment thread prdoc/pr_10284.prdoc Outdated
@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/19293550382
Failed job name: quick-benchmarks-omni

@kianenigma
Copy link
Copy Markdown
Contributor Author

/cmd bench --pallet pallet_election_provider_multi_block --runtime asset-hub-westend

@github-actions
Copy link
Copy Markdown
Contributor

Command "bench --pallet pallet_election_provider_multi_block --runtime asset-hub-westend" has started 🚀 See logs here

…t_election_provider_multi_block --runtime asset-hub-westend'
@github-actions
Copy link
Copy Markdown
Contributor

Command "bench --pallet pallet_election_provider_multi_block --runtime asset-hub-westend" has finished ✅ See logs here

Details

Subweight results:
File Extrinsic Old New Change [%]
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_valid_terminal 10.30ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_valid_non_terminal 1.33ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_invalid_terminal 14.06ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_verifier.rs on_initialize_invalid_non_terminal 13.65ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_unsigned.rs validate_unsigned 222.91us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_unsigned.rs submit_unsigned 1.94ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs unset_page 645.94us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs submit_page 651.56us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs register_not_full 511.57us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs register_eject 4.91ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs clear_old_round_data 4.55ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block_signed.rs bail 4.57ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_nothing 184.48us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_unsigned 250.23us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_snapshot_rest 109.84ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_snapshot_msp 31.92ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_signed_validation 223.76us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs on_initialize_into_signed 108.89ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs manage_fallback 3.62ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs export_terminal 13.61ms Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs export_non_terminal 572.58us Added
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_election_provider_multi_block.rs admin_set 372.11us Added
Command output:

✅ Successful benchmarks of runtimes/pallets:
-- asset-hub-westend: ['pallet_election_provider_multi_block']

@kianenigma kianenigma added this pull request to the merge queue Nov 12, 2025
auto-merge was automatically disabled November 12, 2025 14:25

Pull Request is not mergeable

Merged via the queue into master with commit 501b569 Nov 12, 2025
270 of 273 checks passed
@kianenigma kianenigma deleted the kiz-epmb-westend-weights branch November 12, 2025 14:38
0xRVE pushed a commit that referenced this pull request Nov 18, 2025
- And deprecate `FastUnstake` as it is unsafe 
- And use the faster solver for benchmarks to speed things up
- Remove hardcoded weights of westend.

A step to reduce the diff size in
#9925

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
fellowship-merge-bot Bot added a commit to polkadot-fellows/runtimes that referenced this pull request Nov 20, 2025
Closes: #894

- [x] Does not require a CHANGELOG entry

Same trick as in paritytech/polkadot-sdk#10284,
if it works.
should close #894

---------

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: fellowship-merge-bot[bot] <151052383+fellowship-merge-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T2-pallets This PR/Issue is related to a particular pallet.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants