Skip to content

Commit f7a0d12

Browse files
authored
📦️ First batch of weights (#228)
* chore: first batch of weights * feat: add weights to Polimec * feat: optimize the justfile * chore: update justfile * rustdoc does not generate documentation for macro invocations * feat: add more weights * feat: update pallet's weights * feat: WeightInfo is now pub * chore: fix imports * chore: add remark about membership weights * chore: fix typo * feat: disable faulty benchmarks * chore: fmt
1 parent 841bec1 commit f7a0d12

29 files changed

+5911
-1138
lines changed

justfile

+7-8
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ build-politest-srtool:
1414
srtool build --root -p politest-runtime --profile production --runtime-dir runtimes/politest --build-opts="--features=on-chain-release-build,fast-mode,async-backing" --no-wasm-std
1515

1616
# Test the runtimes features
17-
test-runtime-features:
18-
cargo test --features runtime-benchmarks -p politest-runtime
17+
test-runtime-features runtime="polimec-runtime":
18+
cargo test --features runtime-benchmarks -p {{ runtime }}
1919

2020
# Run the integration tests
2121
test-integration:
@@ -41,9 +41,9 @@ dry-run-benchmarks pallet="*":
4141

4242
# src: https://github.com/polkadot-fellows/runtimes/blob/48ccfae6141d2924f579d81e8b1877efd208693f/system-parachains/asset-hubs/asset-hub-polkadot/src/weights/cumulus_pallet_xcmp_queue.rs
4343
# Benchmark a specific pallet on the "Polimec" Runtime
44-
# TODO: Adjust the `--chain` flag to match the chain you are benchmarking
45-
benchmark-runtime chain="polimec-local" pallet="pallet-elections-phragmen" features="runtime-benchmarks":
46-
cargo run --features {{ features }} --profile production -p polimec-node benchmark pallet \
44+
# Use mode="production" to generate production weights.
45+
benchmark-runtime chain="polimec-local" pallet="pallet-elections-phragmen" mode="release":
46+
cargo run --features runtime-benchmarks --profile {{mode}} -p polimec-node benchmark pallet \
4747
--chain={{ chain }} \
4848
--steps=50 \
4949
--repeat=20 \
@@ -55,9 +55,8 @@ benchmark-runtime chain="polimec-local" pallet="pallet-elections-phragmen" featu
5555

5656
# src: https://github.com/paritytech/polkadot-sdk/blob/bc2e5e1fe26e2c2c8ee766ff9fe7be7e212a0c62/substrate/frame/nfts/src/weights.rs
5757
# Run the Runtime benchmarks for a specific pallet
58-
# TODO: Adjust the `--chain` flag to match the chain you are benchmarking
59-
benchmark-pallet chain="politest-local" pallet="pallet-dispenser" features="runtime-benchmarks":
60-
cargo run --features {{ features }} --release -p polimec-node benchmark pallet \
58+
benchmark-pallet chain="politest-local" pallet="pallet-dispenser":
59+
cargo run --features runtime-benchmarks --release -p polimec-node benchmark pallet \
6160
--chain={{ chain }} \
6261
--steps=50 \
6362
--repeat=20 \

nodes/parachain/src/chain_spec/polimec.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ fn base_testnet_genesis(
187187
const ENDOWMENT: Balance = 10_000_000 * PLMC;
188188
const STASH: Balance = ENDOWMENT / 1000;
189189

190+
#[cfg(not(feature = "runtime-benchmarks"))]
191+
let staking_candidates = stakers.iter().map(|(accunt, _, balance)| (accunt.clone(), *balance)).collect::<Vec<_>>();
192+
#[cfg(feature = "runtime-benchmarks")]
193+
let staking_candidates: Vec<(AccountId, Balance)> = vec![];
194+
190195
serde_json::json!({
191196
"balances": {
192197
"balances": endowed_accounts.clone()
@@ -195,7 +200,7 @@ fn base_testnet_genesis(
195200
"parachainId": id
196201
},
197202
"parachainStaking": {
198-
"candidates": stakers.iter().map(|(accunt, _, balance)| (accunt.clone(), *balance)).collect::<Vec<_>>(),
203+
"candidates": staking_candidates,
199204
"inflationConfig": inflation_config,
200205
"delegations": [],
201206
"collatorCommission": COLLATOR_COMMISSION,

pallets/parachain-staking/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ mod tests;
6868

6969
use frame_support::pallet;
7070
pub use inflation::{InflationInfo, Range};
71-
use weights::WeightInfo;
71+
pub use weights::WeightInfo;
7272

7373
pub use auto_compound::{AutoCompoundConfig, AutoCompoundDelegations};
7474
pub use delegation_requests::{CancelledScheduledRequest, DelegationAction, ScheduledRequest};

pallets/parachain-staking/src/weights.rs

+1,040-999
Large diffs are not rendered by default.

runtimes/polimec/src/lib.rs

+24-23
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ impl frame_system::Config for Runtime {
323323
/// This is used as an identifier of the chain. 42 is the generic substrate prefix.
324324
type SS58Prefix = SS58Prefix;
325325
/// Weight information for the extrinsics of this pallet.
326-
type SystemWeightInfo = frame_system::weights::SubstrateWeight<Runtime>;
326+
type SystemWeightInfo = weights::frame_system::WeightInfo<Runtime>;
327327
/// Runtime version.
328328
type Version = Version;
329329
}
@@ -333,7 +333,7 @@ impl pallet_timestamp::Config for Runtime {
333333
/// A timestamp: milliseconds since the unix epoch.
334334
type Moment = u64;
335335
type OnTimestampSet = Aura;
336-
type WeightInfo = pallet_timestamp::weights::SubstrateWeight<Runtime>;
336+
type WeightInfo = weights::pallet_timestamp::WeightInfo<Runtime>;
337337
}
338338

339339
impl pallet_authorship::Config for Runtime {
@@ -364,7 +364,7 @@ impl pallet_balances::Config for Runtime {
364364
type RuntimeEvent = RuntimeEvent;
365365
type RuntimeFreezeReason = RuntimeFreezeReason;
366366
type RuntimeHoldReason = RuntimeHoldReason;
367-
type WeightInfo = pallet_balances::weights::SubstrateWeight<Runtime>;
367+
type WeightInfo = weights::pallet_balances::WeightInfo<Runtime>;
368368
}
369369

370370
impl pallet_transaction_payment::Config for Runtime {
@@ -399,7 +399,7 @@ impl pallet_assets::Config<ForeignAssetsInstance> for Runtime {
399399
type RemoveItemsLimit = frame_support::traits::ConstU32<1000>;
400400
type RuntimeEvent = RuntimeEvent;
401401
type StringLimit = AssetsStringLimit;
402-
type WeightInfo = pallet_assets::weights::SubstrateWeight<Runtime>;
402+
type WeightInfo = weights::pallet_assets::WeightInfo<Runtime>;
403403
}
404404

405405
type ConsensusHook = cumulus_pallet_aura_ext::FixedVelocityConsensusHook<
@@ -418,7 +418,7 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
418418
type ReservedXcmpWeight = ReservedXcmpWeight;
419419
type RuntimeEvent = RuntimeEvent;
420420
type SelfParaId = parachain_info::Pallet<Runtime>;
421-
type WeightInfo = cumulus_pallet_parachain_system::weights::SubstrateWeight<Runtime>;
421+
type WeightInfo = weights::cumulus_pallet_parachain_system::WeightInfo<Runtime>;
422422
type XcmpMessageHandler = XcmpQueue;
423423
}
424424

@@ -438,14 +438,14 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
438438
type PriceForSiblingDelivery = NoPriceForMessageDelivery<ParaId>;
439439
type RuntimeEvent = RuntimeEvent;
440440
type VersionWrapper = PolkadotXcm;
441-
type WeightInfo = cumulus_pallet_xcmp_queue::weights::SubstrateWeight<Self>;
441+
type WeightInfo = weights::cumulus_pallet_xcmp_queue::WeightInfo<Runtime>;
442442
type XcmpQueue = TransformOrigin<MessageQueue, AggregateMessageOrigin, ParaId, ParaIdToSibling>;
443443
}
444444

445445
impl cumulus_pallet_dmp_queue::Config for Runtime {
446446
type DmpSink = frame_support::traits::EnqueueWithOrigin<MessageQueue, RelayOrigin>;
447447
type RuntimeEvent = RuntimeEvent;
448-
type WeightInfo = cumulus_pallet_dmp_queue::weights::SubstrateWeight<Self>;
448+
type WeightInfo = weights::cumulus_pallet_dmp_queue::WeightInfo<Runtime>;
449449
}
450450

451451
parameter_types! {
@@ -469,7 +469,7 @@ impl pallet_message_queue::Config for Runtime {
469469
type RuntimeEvent = RuntimeEvent;
470470
type ServiceWeight = MessageQueueServiceWeight;
471471
type Size = u32;
472-
type WeightInfo = pallet_message_queue::weights::SubstrateWeight<Self>;
472+
type WeightInfo = weights::pallet_message_queue::WeightInfo<Runtime>;
473473
}
474474

475475
impl pallet_session::Config for Runtime {
@@ -481,7 +481,7 @@ impl pallet_session::Config for Runtime {
481481
type ShouldEndSession = ParachainStaking;
482482
type ValidatorId = AccountId;
483483
type ValidatorIdOf = ConvertInto;
484-
type WeightInfo = pallet_session::weights::SubstrateWeight<Runtime>;
484+
type WeightInfo = weights::pallet_session::WeightInfo<Runtime>;
485485
}
486486

487487
impl pallet_aura::Config for Runtime {
@@ -534,7 +534,7 @@ impl pallet_treasury::Config for Runtime {
534534
type SpendFunds = ();
535535
type SpendOrigin = SpendOrigin;
536536
type SpendPeriod = SpendPeriod;
537-
type WeightInfo = pallet_treasury::weights::SubstrateWeight<Runtime>;
537+
type WeightInfo = weights::pallet_treasury::WeightInfo<Runtime>;
538538
}
539539

540540
type CouncilCollective = pallet_collective::Instance1;
@@ -548,7 +548,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
548548
type RuntimeEvent = RuntimeEvent;
549549
type RuntimeOrigin = RuntimeOrigin;
550550
type SetMembersOrigin = EnsureRoot<AccountId>;
551-
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
551+
type WeightInfo = weights::pallet_collective::WeightInfo<Runtime>;
552552
}
553553

554554
type TechnicalCollective = pallet_collective::Instance2;
@@ -562,7 +562,7 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
562562
type RuntimeEvent = RuntimeEvent;
563563
type RuntimeOrigin = RuntimeOrigin;
564564
type SetMembersOrigin = EnsureRoot<AccountId>;
565-
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
565+
type WeightInfo = weights::pallet_collective::WeightInfo<Runtime>;
566566
}
567567

568568
impl pallet_elections_phragmen::Config for Runtime {
@@ -649,7 +649,7 @@ impl pallet_democracy::Config for Runtime {
649649
type VetoOrigin = pallet_collective::EnsureMember<AccountId, TechnicalCollective>;
650650
type VoteLockingPeriod = EnactmentPeriod;
651651
type VotingPeriod = VotingPeriod;
652-
type WeightInfo = pallet_democracy::weights::SubstrateWeight<Runtime>;
652+
type WeightInfo = weights::pallet_democracy::WeightInfo<Runtime>;
653653
}
654654

655655
pub struct EqualOrGreatestRootCmp;
@@ -677,7 +677,7 @@ impl pallet_scheduler::Config for Runtime {
677677
type RuntimeEvent = RuntimeEvent;
678678
type RuntimeOrigin = RuntimeOrigin;
679679
type ScheduleOrigin = EnsureRoot<AccountId>;
680-
type WeightInfo = ();
680+
type WeightInfo = weights::pallet_scheduler::WeightInfo<Runtime>;
681681
}
682682

683683
parameter_types! {
@@ -695,7 +695,7 @@ impl pallet_preimage::Config for Runtime {
695695
type Currency = Balances;
696696
type ManagerOrigin = EnsureRoot<AccountId>;
697697
type RuntimeEvent = RuntimeEvent;
698-
type WeightInfo = ();
698+
type WeightInfo = weights::pallet_preimage::WeightInfo<Runtime>;
699699
}
700700

701701
impl pallet_parachain_staking::Config for Runtime {
@@ -723,7 +723,7 @@ impl pallet_parachain_staking::Config for Runtime {
723723
type RewardPaymentDelay = RewardPaymentDelay;
724724
type RuntimeEvent = RuntimeEvent;
725725
type RuntimeHoldReason = RuntimeHoldReason;
726-
type WeightInfo = pallet_parachain_staking::weights::SubstrateWeight<Runtime>;
726+
type WeightInfo = weights::pallet_parachain_staking::WeightInfo<Runtime>;
727727
}
728728

729729
impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
@@ -736,6 +736,7 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
736736
type ResetOrigin = EnsureRoot<AccountId>;
737737
type RuntimeEvent = RuntimeEvent;
738738
type SwapOrigin = EnsureRoot<AccountId>;
739+
// TODO: Fix the pallet_membership benchmarks and add the WeightInfo.
739740
type WeightInfo = ();
740741
}
741742

@@ -838,7 +839,7 @@ impl pallet_vesting::Config for Runtime {
838839
type MinVestedTransfer = shared_configuration::vesting::MinVestedTransfer;
839840
type RuntimeEvent = RuntimeEvent;
840841
type UnvestedFundsAllowedWithdrawReasons = shared_configuration::vesting::UnvestedFundsAllowedWithdrawReasons;
841-
type WeightInfo = pallet_vesting::weights::SubstrateWeight<Runtime>;
842+
type WeightInfo = weights::pallet_vesting::WeightInfo<Runtime>;
842843

843844
const MAX_VESTING_SCHEDULES: u32 = 12;
844845
}
@@ -847,7 +848,7 @@ impl pallet_utility::Config for Runtime {
847848
type PalletsOrigin = OriginCaller;
848849
type RuntimeCall = RuntimeCall;
849850
type RuntimeEvent = RuntimeEvent;
850-
type WeightInfo = pallet_utility::weights::SubstrateWeight<Runtime>;
851+
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
851852
}
852853

853854
impl pallet_multisig::Config for Runtime {
@@ -857,7 +858,7 @@ impl pallet_multisig::Config for Runtime {
857858
type MaxSignatories = MaxSignatories;
858859
type RuntimeCall = RuntimeCall;
859860
type RuntimeEvent = RuntimeEvent;
860-
type WeightInfo = pallet_multisig::weights::SubstrateWeight<Runtime>;
861+
type WeightInfo = weights::pallet_multisig::WeightInfo<Runtime>;
861862
}
862863

863864
impl pallet_proxy::Config for Runtime {
@@ -872,7 +873,7 @@ impl pallet_proxy::Config for Runtime {
872873
type ProxyType = ProxyType;
873874
type RuntimeCall = RuntimeCall;
874875
type RuntimeEvent = RuntimeEvent;
875-
type WeightInfo = pallet_proxy::weights::SubstrateWeight<Runtime>;
876+
type WeightInfo = weights::pallet_proxy::WeightInfo<Runtime>;
876877
}
877878

878879
impl pallet_identity::Config for Runtime {
@@ -893,7 +894,7 @@ impl pallet_identity::Config for Runtime {
893894
type Slashed = Treasury;
894895
type SubAccountDeposit = SubAccountDeposit;
895896
type UsernameAuthorityOrigin = UsernameAuthorityOrigin;
896-
type WeightInfo = pallet_identity::weights::SubstrateWeight<Runtime>;
897+
type WeightInfo = weights::pallet_identity::WeightInfo<Runtime>;
897898
}
898899

899900
// Create the runtime by composing the FRAME pallets that were previously configured.
@@ -971,7 +972,7 @@ mod benches {
971972

972973
// XCM helpers.
973974
[cumulus_pallet_xcmp_queue, XcmpQueue]
974-
[pallet_xcm, PalletXcmExtrinsiscsBenchmark::<Runtime>]
975+
// [pallet_xcm, PalletXcmExtrinsiscsBenchmark::<Runtime>]
975976
[cumulus_pallet_dmp_queue, DmpQueue]
976977
[pallet_message_queue, MessageQueue]
977978

@@ -985,7 +986,7 @@ mod benches {
985986
[pallet_scheduler, Scheduler]
986987

987988
// Oracle
988-
[pallet_membership, OracleProvidersMembership]
989+
// [pallet_membership, OracleProvidersMembership]
989990
// [orml_oracle, Oracle]
990991
);
991992
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
2+
//! Autogenerated weights for `cumulus_pallet_dmp_queue`
3+
//!
4+
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5+
//! DATE: 2024-04-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6+
//! WORST CASE MAP SIZE: `1000000`
7+
//! HOSTNAME: `ip-172-31-23-147`, CPU: `AMD EPYC 9R14`
8+
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("polimec-local")`, DB CACHE: 1024
9+
10+
// Executed Command:
11+
// ./target/production/polimec-node
12+
// benchmark
13+
// pallet
14+
// --chain=polimec-local
15+
// --steps=50
16+
// --repeat=20
17+
// --pallet=cumulus_pallet_dmp_queue
18+
// --extrinsic=*
19+
// --wasm-execution=compiled
20+
// --heap-pages=4096
21+
// --output=runtimes/polimec/src/weights/cumulus_pallet_dmp_queue.rs
22+
23+
#![cfg_attr(rustfmt, rustfmt_skip)]
24+
#![allow(unused_parens)]
25+
#![allow(unused_imports)]
26+
#![allow(missing_docs)]
27+
28+
use frame_support::{traits::Get, weights::Weight};
29+
use core::marker::PhantomData;
30+
31+
/// Weight functions for `cumulus_pallet_dmp_queue`.
32+
pub struct WeightInfo<T>(PhantomData<T>);
33+
impl<T: frame_system::Config> cumulus_pallet_dmp_queue::WeightInfo for WeightInfo<T> {
34+
/// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
35+
/// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
36+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
37+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
38+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
39+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
40+
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
41+
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
42+
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
43+
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
44+
/// Storage: `MessageQueue::Pages` (r:0 w:1)
45+
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
46+
fn on_idle_good_msg() -> Weight {
47+
// Proof Size summary in bytes:
48+
// Measured: `65660`
49+
// Estimated: `69125`
50+
// Minimum execution time: 103_530_000 picoseconds.
51+
Weight::from_parts(105_480_000, 0)
52+
.saturating_add(Weight::from_parts(0, 69125))
53+
.saturating_add(T::DbWeight::get().reads(5))
54+
.saturating_add(T::DbWeight::get().writes(5))
55+
}
56+
/// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
57+
/// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
58+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
59+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
60+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
61+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
62+
fn on_idle_large_msg() -> Weight {
63+
// Proof Size summary in bytes:
64+
// Measured: `65659`
65+
// Estimated: `69124`
66+
// Minimum execution time: 55_760_000 picoseconds.
67+
Weight::from_parts(59_240_000, 0)
68+
.saturating_add(Weight::from_parts(0, 69124))
69+
.saturating_add(T::DbWeight::get().reads(3))
70+
.saturating_add(T::DbWeight::get().writes(2))
71+
}
72+
/// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
73+
/// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
74+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
75+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
76+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
77+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
78+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
79+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
80+
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
81+
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
82+
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
83+
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
84+
/// Storage: `MessageQueue::Pages` (r:0 w:1)
85+
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
86+
fn on_idle_overweight_good_msg() -> Weight {
87+
// Proof Size summary in bytes:
88+
// Measured: `65690`
89+
// Estimated: `69155`
90+
// Minimum execution time: 94_720_000 picoseconds.
91+
Weight::from_parts(96_481_000, 0)
92+
.saturating_add(Weight::from_parts(0, 69155))
93+
.saturating_add(T::DbWeight::get().reads(6))
94+
.saturating_add(T::DbWeight::get().writes(6))
95+
}
96+
/// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
97+
/// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
98+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
99+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
100+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
101+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
102+
/// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
103+
/// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
104+
fn on_idle_overweight_large_msg() -> Weight {
105+
// Proof Size summary in bytes:
106+
// Measured: `65689`
107+
// Estimated: `69154`
108+
// Minimum execution time: 48_020_000 picoseconds.
109+
Weight::from_parts(50_840_000, 0)
110+
.saturating_add(Weight::from_parts(0, 69154))
111+
.saturating_add(T::DbWeight::get().reads(4))
112+
.saturating_add(T::DbWeight::get().writes(3))
113+
}
114+
}

0 commit comments

Comments
 (0)