Skip to content

Commit

Permalink
Weights for 1.2.5 - coretime-kusama + kusama fix for new prefixed…
Browse files Browse the repository at this point in the history
… with `polkadot_runtime_common` (#343)

New weights for:
- `coretime-kusama`
- `kusama` - `polkadot_runtime_common_*`

<!-- Remember that you can run `/merge` to enable auto-merge in the PR
-->

<!-- Remember to modify the changelog. If you don't need to modify it,
you can check the following box.
Instead, if you have already modified it, simply delete the following
line. -->

- [x] Does not require a CHANGELOG entry

## Kusama

subweight compare commits \
>          --path-pattern "./relay/kusama/**/weights/**/*.rs" \
>          --format markdown --no-color  \
>          --change added changed removed  \
>         --method asymptotic --ignore-errors  \
>         --strip-path-prefix="relay/kusama/src/weights/" \
>          remotes/polkadot-fellows/main \
>          origin/bko-weights 
| File | Extrinsic | Old | New | Change [%] |

|----------------------------------------------|---------------------------|----------|----------|------------|
| runtime_common_slots.rs | trigger_onboard | 326.14us | | Removed |
| runtime_common_slots.rs | manage_lease_period_start | 39.56ms | |
Removed |
| runtime_common_slots.rs | force_lease | 277.82us | | Removed |
| runtime_common_slots.rs | clear_all_leases | 1.25ms | | Removed |
| runtime_common_paras_registrar.rs | swap | 1.11ms | | Removed |
| runtime_common_paras_registrar.rs | set_current_head | 1.06ms | |
Removed |
| runtime_common_paras_registrar.rs | schedule_code_upgrade | 7.98ms | |
Removed |
| runtime_common_paras_registrar.rs | reserve | 300.60us | | Removed |
| runtime_common_paras_registrar.rs | register | 6.99ms | | Removed |
| runtime_common_paras_registrar.rs | force_register | 7.03ms | |
Removed |
| runtime_common_paras_registrar.rs | deregister | 602.09us | | Removed
|
| runtime_common_identity_migrator.rs | reap_identity | 11.10ms | |
Removed |
| runtime_common_identity_migrator.rs | poke_deposit | 490.74us | |
Removed |
| runtime_common_crowdloan.rs | withdraw | 572.14us | | Removed |
| runtime_common_crowdloan.rs | refund | 289.48ms | | Removed |
| runtime_common_crowdloan.rs | poke | 172.16us | | Removed |
| runtime_common_crowdloan.rs | on_initialize | 38.28ms | | Removed |
| runtime_common_crowdloan.rs | edit | 148.97us | | Removed |
| runtime_common_crowdloan.rs | dissolve | 422.33us | | Removed |
| runtime_common_crowdloan.rs | create | 476.03us | | Removed |
| runtime_common_crowdloan.rs | contribute | 714.84us | | Removed |
| runtime_common_crowdloan.rs | add_memo | 181.07us | | Removed |
| runtime_common_claims.rs | move_claim | 835.43us | | Removed |
| runtime_common_claims.rs | mint_claim | 438.40us | | Removed |
| runtime_common_claims.rs | claim_attest | 999.94us | | Removed |
| runtime_common_claims.rs | claim | 997.60us | | Removed |
| runtime_common_claims.rs | attest | 1.01ms | | Removed |
| runtime_common_auctions.rs | on_initialize | 467.52ms | | Removed |
| runtime_common_auctions.rs | new_auction | 258.00us | | Removed |
| runtime_common_auctions.rs | cancel_auction | 464.80ms | | Removed |
| runtime_common_auctions.rs | bid | 669.29us | | Removed |
| polkadot_runtime_common_slots.rs | trigger_onboard | | 354.19us |
Added |
| polkadot_runtime_common_slots.rs | manage_lease_period_start | |
40.10ms | Added |
| polkadot_runtime_common_slots.rs | force_lease | | 284.94us | Added |
| polkadot_runtime_common_slots.rs | clear_all_leases | | 1.31ms | Added
|
| polkadot_runtime_common_paras_registrar.rs | swap | | 1.16ms | Added |
| polkadot_runtime_common_paras_registrar.rs | set_current_head | |
949.51us | Added |
| polkadot_runtime_common_paras_registrar.rs | schedule_code_upgrade | |
8.09ms | Added |
| polkadot_runtime_common_paras_registrar.rs | reserve | | 307.34us |
Added |
| polkadot_runtime_common_paras_registrar.rs | register | | 8.31ms |
Added |
| polkadot_runtime_common_paras_registrar.rs | force_register | | 8.30ms
| Added |
| polkadot_runtime_common_paras_registrar.rs | deregister | | 645.59us |
Added |
| polkadot_runtime_common_identity_migrator.rs | reap_identity | |
11.15ms | Added |
| polkadot_runtime_common_identity_migrator.rs | poke_deposit | |
521.25us | Added |
| polkadot_runtime_common_crowdloan.rs | withdraw | | 620.27us | Added |
| polkadot_runtime_common_crowdloan.rs | refund | | 297.48ms | Added |
| polkadot_runtime_common_crowdloan.rs | poke | | 192.32us | Added |
| polkadot_runtime_common_crowdloan.rs | on_initialize | | 39.46ms |
Added |
| polkadot_runtime_common_crowdloan.rs | edit | | 168.16us | Added |
| polkadot_runtime_common_crowdloan.rs | dissolve | | 446.87us | Added |
| polkadot_runtime_common_crowdloan.rs | create | | 511.90us | Added |
| polkadot_runtime_common_crowdloan.rs | contribute | | 788.83us | Added
|
| polkadot_runtime_common_crowdloan.rs | add_memo | | 210.67us | Added |
| polkadot_runtime_common_claims.rs | move_claim | | 831.45us | Added |
| polkadot_runtime_common_claims.rs | mint_claim | | 437.42us | Added |
| polkadot_runtime_common_claims.rs | claim_attest | | 994.73us | Added
|
| polkadot_runtime_common_claims.rs | claim | | 995.32us | Added |
| polkadot_runtime_common_claims.rs | attest | | 1.00ms | Added |
| polkadot_runtime_common_auctions.rs | on_initialize | | 469.60ms |
Added |
| polkadot_runtime_common_auctions.rs | new_auction | | 259.51us | Added
|
| polkadot_runtime_common_auctions.rs | cancel_auction | | 466.71ms |
Added |
| polkadot_runtime_common_auctions.rs | bid | | 721.62us | Added |


## Coretime Kusama
(threshold 5%)
```
subweight compare commits          --path-pattern "./system-parachains/coretime/coretime-kusama/**/weights/**/*.rs"          --format markdown --no-color           --change added changed removed          --method asymptotic --ignore-errors   --threshold=5       --strip-path-prefix="system-parachains/coretime/coretime-kusama/src/weights/"          remotes/polkadot-fellows/main          origin/bko-weights
```
| File | Extrinsic | Old | New | Change [%] |

|---------------------------------------|-----------------------------|--------------|----------|------------|
| xcm/pallet_xcm_benchmarks_generic.rs | unpaid_execution | 1.21us |
4.56us | +277.48 |
| xcm/pallet_xcm_benchmarks_generic.rs | trap | 1.23us | 4.56us |
+270.13 |
| xcm/pallet_xcm_benchmarks_generic.rs | expect_origin | 1.27us | 4.54us
| +258.61 |
| xcm/pallet_xcm_benchmarks_generic.rs | set_topic | 1.28us | 4.55us |
+254.64 |
| xcm/pallet_xcm_benchmarks_generic.rs | clear_origin | 1.29us | 4.58us
| +254.49 |
| xcm/pallet_xcm_benchmarks_generic.rs | expect_error | 1.27us | 4.51us
| +253.73 |
| xcm/pallet_xcm_benchmarks_generic.rs | buy_execution | 1.33us | 4.69us
| +251.57 |
| xcm/pallet_xcm_benchmarks_generic.rs | set_appendix | 1.31us | 4.60us
| +250.34 |
| xcm/pallet_xcm_benchmarks_generic.rs | clear_error | 1.31us | 4.59us |
+249.58 |
| xcm/pallet_xcm_benchmarks_generic.rs | clear_topic | 1.32us | 4.59us |
+246.94 |
| xcm/pallet_xcm_benchmarks_generic.rs | clear_transact_status | 1.35us
| 4.67us | +246.70 |
| xcm/pallet_xcm_benchmarks_generic.rs | set_error_handler | 1.35us |
4.61us | +240.72 |
| xcm/pallet_xcm_benchmarks_generic.rs | set_fees_mode | 1.36us | 4.56us
| +235.29 |
| xcm/pallet_xcm_benchmarks_generic.rs | expect_asset | 1.42us | 4.75us
| +233.80 |
| xcm/pallet_xcm_benchmarks_generic.rs | descend_origin | 1.41us |
4.68us | +231.21 |
| xcm/pallet_xcm_benchmarks_generic.rs | expect_transact_status | 1.48us
| 4.79us | +224.31 |
| xcm/pallet_xcm_benchmarks_generic.rs | burn_asset | 1.71us | 5.15us |
+201.35 |
| xcm/pallet_xcm_benchmarks_generic.rs | refund_surplus | 1.98us |
5.58us | +181.39 |
| xcm/pallet_xcm_benchmarks_fungible.rs | receive_teleported_asset |
2.77us | 6.49us | +134.08 |
| xcm/pallet_xcm_benchmarks_generic.rs | expect_pallet | 3.68us | 7.66us
| +108.27 |
| xcm/pallet_xcm_benchmarks_generic.rs | transact | 6.70us | 10.75us |
+60.40 |
| pallet_timestamp.rs | on_finalize | 2.83us | 3.87us | +36.70 |
| pallet_utility.rs | as_derivative | 3.86us | 4.87us | +26.13 |
| pallet_utility.rs | batch_all | 2.81ms | 3.51ms | +24.90 |
| pallet_utility.rs | batch | 2.61ms | 3.25ms | +24.36 |
| pallet_utility.rs | force_batch | 2.62ms | 3.25ms | +24.36 |
| cumulus_pallet_xcmp_queue.rs | take_first_concatenated_xcm | 6.15us |
7.57us | +23.11 |
| pallet_utility.rs | dispatch_as | 5.83us | 7.12us | +22.06 |
| pallet_broker.rs | request_revenue_info_at | 205.00ns | 240.00ns |
+17.07 |
| xcm/pallet_xcm_benchmarks_generic.rs | query_response | 31.55us |
36.01us | +14.15 |
| frame_system.rs | set_code | 108.25ms | 117.74ms | +8.77 |
| pallet_proxy.rs | proxy | 38.82us | 42.05us | +8.31 |
| frame_system.rs | apply_authorized_upgrade | 113.38ms | 120.10ms |
+5.93 |
| pallet_xcm.rs | claim_assets | 159.57us | 169.02us | +5.92 |
| pallet_xcm.rs | take_response | 149.12us | 157.74us | +5.78 |
| xcm/pallet_xcm_benchmarks_fungible.rs | withdraw_asset | 152.81us |
160.82us | +5.24 |
| pallet_broker.rs | drop_history | 306.44us | 287.38us | -6.22 |
| pallet_broker.rs | drop_renewal | 216.29us | 200.01us | -7.53 |
| frame_system.rs | remark_with_event | 7.31ms | 6.48ms | -11.39 |
| frame_system.rs | remark | 1.56ms | 1.38ms | -11.53 |
| pallet_broker.rs | drop_contribution | 310.90us | 252.21us | -18.88 |
| pallet_xcm.rs | execute | 18446744.07s | 11.10us | -100.00 |
  • Loading branch information
bkontur authored Jun 6, 2024
1 parent 2539cb5 commit 200a935
Show file tree
Hide file tree
Showing 25 changed files with 581 additions and 573 deletions.
3 changes: 2 additions & 1 deletion chain-spec-generator/src/system_parachains_specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ fn encointer_kusama_genesis(endowed_accounts: Vec<AccountId>, id: u32) -> serde_
"polkadotXcm": {
"safeXcmVersion": Some(SAFE_XCM_VERSION),
},
"aura": encointer_kusama_runtime::aura_config_for_chain_spec(&["Alice"]),
// no need to pass anything to aura, in fact it will panic if we do. Session will take care
// of this. `aura: Default::default()`
})
}

Expand Down
2 changes: 1 addition & 1 deletion relay/kusama/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where
fn on_reap_identity(who: &AccountId, fields: u32, subs: u32) -> DispatchResult {
use crate::{
impls::IdentityMigratorCalls::PokeDeposit,
weights::runtime_common_identity_migrator::WeightInfo as MigratorWeights,
weights::polkadot_runtime_common_identity_migrator::WeightInfo as MigratorWeights,
};

let total_to_send = Self::calculate_remote_deposit(fields, subs);
Expand Down
16 changes: 7 additions & 9 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ impl claims::Config for Runtime {
type VestingSchedule = Vesting;
type Prefix = Prefix;
type MoveClaimOrigin = EnsureRoot<AccountId>;
type WeightInfo = weights::runtime_common_claims::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_claims::WeightInfo<Runtime>;
}

parameter_types! {
Expand Down Expand Up @@ -1005,7 +1005,7 @@ impl identity_migrator::Config for Runtime {
type RuntimeEvent = RuntimeEvent;
type Reaper = EnsureSigned<AccountId>;
type ReapIdentityHandler = impls::ToParachainIdentityReaper<Runtime, Self::AccountId>;
type WeightInfo = weights::runtime_common_identity_migrator::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_identity_migrator::WeightInfo<Runtime>;
}

impl pallet_utility::Config for Runtime {
Expand Down Expand Up @@ -1440,7 +1440,7 @@ impl paras_registrar::Config for Runtime {
type OnSwap = (Crowdloan, Slots);
type ParaDeposit = ParaDeposit;
type DataDepositPerByte = DataDepositPerByte;
type WeightInfo = weights::runtime_common_paras_registrar::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_paras_registrar::WeightInfo<Runtime>;
}

parameter_types! {
Expand All @@ -1455,7 +1455,7 @@ impl slots::Config for Runtime {
type LeasePeriod = LeasePeriod;
type LeaseOffset = ();
type ForceOrigin = EitherOf<EnsureRoot<Self::AccountId>, LeaseAdmin>;
type WeightInfo = weights::runtime_common_slots::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_slots::WeightInfo<Runtime>;
}

parameter_types! {
Expand All @@ -1476,7 +1476,7 @@ impl crowdloan::Config for Runtime {
type Registrar = Registrar;
type Auctioneer = Auctions;
type MaxMemoLength = MaxMemoLength;
type WeightInfo = weights::runtime_common_crowdloan::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_crowdloan::WeightInfo<Runtime>;
}

parameter_types! {
Expand All @@ -1495,7 +1495,7 @@ impl auctions::Config for Runtime {
type SampleLength = SampleLength;
type Randomness = pallet_babe::RandomnessFromOneEpochAgo<Runtime>;
type InitiateOrigin = EitherOf<EnsureRoot<Self::AccountId>, AuctionAdmin>;
type WeightInfo = weights::runtime_common_auctions::WeightInfo<Runtime>;
type WeightInfo = weights::polkadot_runtime_common_auctions::WeightInfo<Runtime>;
}

type NisCounterpartInstance = pallet_balances::Instance2;
Expand Down Expand Up @@ -1975,7 +1975,7 @@ pub mod migrations {
) {
log::debug!(target: "runtime", "Cancelling scheduled auctions failed: {:?}", err);
}
weights::runtime_common_auctions::WeightInfo::<Runtime>::cancel_auction()
weights::polkadot_runtime_common_auctions::WeightInfo::<Runtime>::cancel_auction()
.saturating_add(weights::pallet_scheduler::WeightInfo::<Runtime>::cancel_named(
<Runtime as pallet_scheduler::Config>::MaxScheduledPerBlock::get(),
))
Expand Down Expand Up @@ -2033,8 +2033,6 @@ pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
mod benches {
frame_benchmarking::define_benchmarks!(
// Polkadot
// NOTE: Make sure to prefix these with `polkadot_runtime_common::` so
// that the path resolves correctly in the generated file.
[polkadot_runtime_common::auctions, Auctions]
[polkadot_runtime_common::crowdloan, Crowdloan]
[polkadot_runtime_common::claims, Claims]
Expand Down
12 changes: 6 additions & 6 deletions relay/kusama/src/weights/mod.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 200a935

Please sign in to comment.