Skip to content

Commit 200a935

Browse files
authored
Weights for 1.2.5 - coretime-kusama + kusama fix for new prefixed 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 |
1 parent 2539cb5 commit 200a935

25 files changed

+581
-573
lines changed

chain-spec-generator/src/system_parachains_specs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,8 @@ fn encointer_kusama_genesis(endowed_accounts: Vec<AccountId>, id: u32) -> serde_
582582
"polkadotXcm": {
583583
"safeXcmVersion": Some(SAFE_XCM_VERSION),
584584
},
585-
"aura": encointer_kusama_runtime::aura_config_for_chain_spec(&["Alice"]),
585+
// no need to pass anything to aura, in fact it will panic if we do. Session will take care
586+
// of this. `aura: Default::default()`
586587
})
587588
}
588589

relay/kusama/src/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ where
9292
fn on_reap_identity(who: &AccountId, fields: u32, subs: u32) -> DispatchResult {
9393
use crate::{
9494
impls::IdentityMigratorCalls::PokeDeposit,
95-
weights::runtime_common_identity_migrator::WeightInfo as MigratorWeights,
95+
weights::polkadot_runtime_common_identity_migrator::WeightInfo as MigratorWeights,
9696
};
9797

9898
let total_to_send = Self::calculate_remote_deposit(fields, subs);

relay/kusama/src/lib.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ impl claims::Config for Runtime {
967967
type VestingSchedule = Vesting;
968968
type Prefix = Prefix;
969969
type MoveClaimOrigin = EnsureRoot<AccountId>;
970-
type WeightInfo = weights::runtime_common_claims::WeightInfo<Runtime>;
970+
type WeightInfo = weights::polkadot_runtime_common_claims::WeightInfo<Runtime>;
971971
}
972972

973973
parameter_types! {
@@ -1005,7 +1005,7 @@ impl identity_migrator::Config for Runtime {
10051005
type RuntimeEvent = RuntimeEvent;
10061006
type Reaper = EnsureSigned<AccountId>;
10071007
type ReapIdentityHandler = impls::ToParachainIdentityReaper<Runtime, Self::AccountId>;
1008-
type WeightInfo = weights::runtime_common_identity_migrator::WeightInfo<Runtime>;
1008+
type WeightInfo = weights::polkadot_runtime_common_identity_migrator::WeightInfo<Runtime>;
10091009
}
10101010

10111011
impl pallet_utility::Config for Runtime {
@@ -1440,7 +1440,7 @@ impl paras_registrar::Config for Runtime {
14401440
type OnSwap = (Crowdloan, Slots);
14411441
type ParaDeposit = ParaDeposit;
14421442
type DataDepositPerByte = DataDepositPerByte;
1443-
type WeightInfo = weights::runtime_common_paras_registrar::WeightInfo<Runtime>;
1443+
type WeightInfo = weights::polkadot_runtime_common_paras_registrar::WeightInfo<Runtime>;
14441444
}
14451445

14461446
parameter_types! {
@@ -1455,7 +1455,7 @@ impl slots::Config for Runtime {
14551455
type LeasePeriod = LeasePeriod;
14561456
type LeaseOffset = ();
14571457
type ForceOrigin = EitherOf<EnsureRoot<Self::AccountId>, LeaseAdmin>;
1458-
type WeightInfo = weights::runtime_common_slots::WeightInfo<Runtime>;
1458+
type WeightInfo = weights::polkadot_runtime_common_slots::WeightInfo<Runtime>;
14591459
}
14601460

14611461
parameter_types! {
@@ -1476,7 +1476,7 @@ impl crowdloan::Config for Runtime {
14761476
type Registrar = Registrar;
14771477
type Auctioneer = Auctions;
14781478
type MaxMemoLength = MaxMemoLength;
1479-
type WeightInfo = weights::runtime_common_crowdloan::WeightInfo<Runtime>;
1479+
type WeightInfo = weights::polkadot_runtime_common_crowdloan::WeightInfo<Runtime>;
14801480
}
14811481

14821482
parameter_types! {
@@ -1495,7 +1495,7 @@ impl auctions::Config for Runtime {
14951495
type SampleLength = SampleLength;
14961496
type Randomness = pallet_babe::RandomnessFromOneEpochAgo<Runtime>;
14971497
type InitiateOrigin = EitherOf<EnsureRoot<Self::AccountId>, AuctionAdmin>;
1498-
type WeightInfo = weights::runtime_common_auctions::WeightInfo<Runtime>;
1498+
type WeightInfo = weights::polkadot_runtime_common_auctions::WeightInfo<Runtime>;
14991499
}
15001500

15011501
type NisCounterpartInstance = pallet_balances::Instance2;
@@ -1975,7 +1975,7 @@ pub mod migrations {
19751975
) {
19761976
log::debug!(target: "runtime", "Cancelling scheduled auctions failed: {:?}", err);
19771977
}
1978-
weights::runtime_common_auctions::WeightInfo::<Runtime>::cancel_auction()
1978+
weights::polkadot_runtime_common_auctions::WeightInfo::<Runtime>::cancel_auction()
19791979
.saturating_add(weights::pallet_scheduler::WeightInfo::<Runtime>::cancel_named(
19801980
<Runtime as pallet_scheduler::Config>::MaxScheduledPerBlock::get(),
19811981
))
@@ -2033,8 +2033,6 @@ pub type SignedPayload = generic::SignedPayload<RuntimeCall, SignedExtra>;
20332033
mod benches {
20342034
frame_benchmarking::define_benchmarks!(
20352035
// Polkadot
2036-
// NOTE: Make sure to prefix these with `polkadot_runtime_common::` so
2037-
// that the path resolves correctly in the generated file.
20382036
[polkadot_runtime_common::auctions, Auctions]
20392037
[polkadot_runtime_common::crowdloan, Crowdloan]
20402038
[polkadot_runtime_common::claims, Claims]

relay/kusama/src/weights/mod.rs

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

relay/kusama/src/weights/runtime_common_auctions.rs renamed to relay/kusama/src/weights/polkadot_runtime_common_auctions.rs

Lines changed: 11 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

relay/kusama/src/weights/runtime_common_claims.rs renamed to relay/kusama/src/weights/polkadot_runtime_common_claims.rs

Lines changed: 13 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

relay/kusama/src/weights/runtime_common_crowdloan.rs renamed to relay/kusama/src/weights/polkadot_runtime_common_crowdloan.rs

Lines changed: 25 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)