Skip to content

Conversation

@acatangiu
Copy link
Contributor

Parametrize pallet-assets::set_reserves() weight based on number of reserves provided instead of always assuming worst-case.

@acatangiu acatangiu self-assigned this Dec 23, 2025
@acatangiu acatangiu requested a review from a team as a code owner December 23, 2025 11:53
@acatangiu acatangiu added T2-pallets This PR/Issue is related to a particular pallet. A4-backport-stable2512 Pull request must be backported to the stable2512 release branch labels Dec 23, 2025
@acatangiu
Copy link
Contributor Author

/cmd prdoc --audience runtime_dev --bump minor

@acatangiu
Copy link
Contributor Author

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

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

Command "bench --runtime asset-hub-westend --pallet pallet-assets" has failed ❌! See logs here

@acatangiu
Copy link
Contributor Author

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

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

Details

Subweight results:
File Extrinsic Old New Change [%]
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs finish_destroy 165.00us 273.85us +65.97
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs finish_destroy 165.59us 274.79us +65.94
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs finish_destroy 165.35us 273.67us +65.50
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs allowance 35.39us 40.04us +13.16
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs allowance 36.06us 40.79us +13.12
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs set_metadata 183.03us 205.80us +12.44
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs total_issuance 33.90us 38.10us +12.38
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs balance 33.01us 37.01us +12.11
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs set_metadata 184.20us 206.15us +11.92
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs total_issuance 33.67us 37.41us +11.13
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs clear_metadata 183.30us 203.18us +10.85
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs force_clear_metadata 182.84us 202.30us +10.65
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs allowance 36.25us 39.96us +10.23
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs balance 32.99us 36.28us +9.96
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs balance 32.46us 35.55us +9.52
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs clear_metadata 183.41us 199.28us +8.65
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs force_clear_metadata 182.81us 197.27us +7.91
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs force_cancel_approval 290.35us 313.20us +7.87
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs approve_transfer 288.20us 310.85us +7.86
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs touch_other 286.95us 309.15us +7.73
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs create 341.07us 367.37us +7.71
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs cancel_approval 290.38us 312.57us +7.64
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs set_reserves 141.95us 151.79us +6.93
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs thaw 170.56us 182.25us +6.85
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs thaw 170.58us 182.17us +6.79
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs freeze 171.01us 182.48us +6.71
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs block 170.79us 182.18us +6.67
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs start_destroy 171.96us 183.40us +6.65
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs set_metadata 169.38us 180.37us +6.49
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs thaw_asset 140.75us 149.72us +6.38
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs freeze 170.61us 181.49us +6.38
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs touch 418.94us 445.50us +6.34
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs freeze_asset 140.70us 149.59us +6.32
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs force_clear_metadata 169.03us 179.65us +6.28
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs force_cancel_approval 290.28us 308.38us +6.24
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs set_reserves 142.40us 151.28us +6.24
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs block 170.77us 181.37us +6.21
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs block 171.02us 181.56us +6.17
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs thaw_asset 140.79us 149.44us +6.14
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs cancel_approval 290.25us 307.99us +6.11
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs freeze 170.80us 181.18us +6.08
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs thaw 170.90us 181.25us +6.06
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs freeze_asset 140.84us 149.23us +5.95
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs freeze_asset 138.84us 146.95us +5.84
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs set_reserves 142.22us 150.49us +5.82
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs start_destroy 171.69us 181.53us +5.73
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs clear_metadata 169.62us 179.28us +5.69
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs thaw_asset 138.45us 146.25us +5.64
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs force_asset_status 137.49us 145.20us +5.61
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs set_min_balance 139.02us 146.79us +5.59
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs set_team 138.47us 146.21us +5.59
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs force_asset_status 138.03us 145.43us +5.36
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs start_destroy 170.73us 179.87us +5.35
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs approve_transfer 286.60us 301.81us +5.31
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs force_cancel_approval 275.40us 289.84us +5.24
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs total_issuance 31.58us 33.24us +5.24
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs cancel_approval 275.72us 290.12us +5.22
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs create 163.49us 171.94us +5.17
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs touch_other 285.65us 300.34us +5.14
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs create 312.27us 328.20us +5.10
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_pool.rs set_team 138.51us 145.50us +5.05
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_local.rs set_team 138.56us 145.53us +5.03
cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/pallet_assets_foreign.rs transfer_ownership 165.61us 173.90us +5.00
Command output:

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

Copy link
Member

@shawntabrizi shawntabrizi left a comment

Choose a reason for hiding this comment

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

code changes look good to me, seems the weight files are not updated yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2512 Pull request must be backported to the stable2512 release branch T2-pallets This PR/Issue is related to a particular pallet.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants