difftreelog
fix benchmarks+try-runtime
in: master
6 files changed
node/cli/src/command.rsdiffbeforeafterboth352 use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};352 use frame_benchmarking_cli::{BenchmarkCmd, SUBSTRATE_REFERENCE_HARDWARE};353 use polkadot_cli::Block;353 use polkadot_cli::Block;354355 type Header = <Block as sp_runtime::traits::Block>::Header;356 type Hasher = <Header as sp_runtime::traits::Header>::Hashing;354357355 let runner = cli.create_runner(cmd)?;358 let runner = cli.create_runner(cmd)?;356 // Switch on the concrete benchmark sub-command-359 // Switch on the concrete benchmark sub-command-357 match cmd {360 match cmd {358 BenchmarkCmd::Pallet(cmd) => {361 BenchmarkCmd::Pallet(cmd) => {359 runner.sync_run(|config| cmd.run::<Block, ParachainHostFunctions>(config))362 runner.sync_run(|config| cmd.run::<Hasher, ParachainHostFunctions>(config))360 }363 }361 BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {364 BenchmarkCmd::Block(cmd) => runner.sync_run(|config| {362 let partials = new_partial::<365 let partials = new_partial::<pallets/foreign-assets/src/benchmarking.rsdiffbeforeafterboth323233 #[benchmark]33 #[benchmark]34 fn force_register_foreign_asset() -> Result<(), BenchmarkError> {34 fn force_register_foreign_asset() -> Result<(), BenchmarkError> {35 let location =35 let asset_id: AssetId = (Parachain(1000), PalletInstance(42), GeneralIndex(1)).into();36 Location::from((Parachain(1000), PalletInstance(42), GeneralIndex(1)).into());37 let name = create_u16_data::<MAX_COLLECTION_NAME_LENGTH>();36 let name = create_u16_data::<MAX_COLLECTION_NAME_LENGTH>();38 let token_prefix = create_data::<MAX_TOKEN_PREFIX_LENGTH>();37 let token_prefix = create_data::<MAX_TOKEN_PREFIX_LENGTH>();39 let mode = ForeignCollectionMode::NFT;38 let mode = ForeignCollectionMode::NFT;403941 #[extrinsic_call]40 #[extrinsic_call]42 _(41 _(43 RawOrigin::Root,42 RawOrigin::Root,44 Box::new(location.into()),43 Box::new(asset_id.into()),45 name,44 name,46 token_prefix,45 token_prefix,47 mode,46 mode,runtime/common/config/governance/fellowship.rsdiffbeforeafterboth74 type MinRankOfClass = ClassToRankMapper<Self, ()>;74 type MinRankOfClass = ClassToRankMapper<Self, ()>;75 type VoteWeight = pallet_ranked_collective::Geometric;75 type VoteWeight = pallet_ranked_collective::Geometric;7677 #[cfg(feature = "runtime-benchmarks")]78 type BenchmarkSetup = ();76}79}778078pub struct EnsureFellowshipProposition;81pub struct EnsureFellowshipProposition;runtime/common/config/xcm.rsdiffbeforeafterboth194 type TransactionalProcessor = FrameTransactionalProcessor;194 type TransactionalProcessor = FrameTransactionalProcessor;195}195}196197#[cfg(feature = "runtime-benchmarks")]198parameter_types! {199 pub ReachableDest: Option<Location> = Some(Parent.into());200}201196202impl pallet_xcm::Config for Runtime {197impl pallet_xcm::Config for Runtime {203 type RuntimeEvent = RuntimeEvent;198 type RuntimeEvent = RuntimeEvent;204 type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>;199 type SendXcmOrigin = EnsureXcmOrigin<RuntimeOrigin, ()>;205 type XcmRouter = XcmRouter;200 type XcmRouter = XcmRouter;223 type AdminOrigin = EnsureRoot<AccountId>;218 type AdminOrigin = EnsureRoot<AccountId>;224 type MaxRemoteLockConsumers = ConstU32<0>;219 type MaxRemoteLockConsumers = ConstU32<0>;225 type RemoteLockConsumerIdentifier = ();220 type RemoteLockConsumerIdentifier = ();221}222226 #[cfg(feature = "runtime-benchmarks")]223#[cfg(feature = "runtime-benchmarks")]224impl pallet_xcm::benchmarking::Config for Runtime {227 type ReachableDest = ReachableDest;225 type DeliveryHelper = ();228}226227 fn reachable_dest() -> Option<Location> {228 Some(Parent.into())229 }230231 fn get_asset() -> Asset {232 (Location::here(), 1_000_000_000_000_000_000u128).into()233 }234}229235230impl cumulus_pallet_xcm::Config for Runtime {236impl cumulus_pallet_xcm::Config for Runtime {231 type RuntimeEvent = RuntimeEvent;237 type RuntimeEvent = RuntimeEvent;runtime/common/runtime_apis.rsdiffbeforeafterboth535 ) {535 ) {536 use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};536 use frame_benchmarking::{list_benchmark, Benchmarking, BenchmarkList};537 use frame_support::traits::StorageInfoTrait;537 use frame_support::traits::StorageInfoTrait;538 use pallet_xcm::benchmarking::Pallet as PalletXcmBenchmarks;538539539 let mut list = Vec::<BenchmarkList>::new();540 let mut list = Vec::<BenchmarkList>::new();540 list_benchmark!(list, extra, pallet_xcm, PolkadotXcm);541 list_benchmark!(list, extra, pallet_xcm, PalletXcmBenchmarks::<Runtime>);541542542 list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);543 list_benchmark!(list, extra, pallet_evm_migration, EvmMigration);543 list_benchmark!(list, extra, pallet_common, Common);544 list_benchmark!(list, extra, pallet_common, Common);578 ) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {579 ) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {579 use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark};580 use frame_benchmarking::{Benchmarking, BenchmarkBatch, add_benchmark};580 use sp_storage::TrackedStorageKey;581 use sp_storage::TrackedStorageKey;582 use pallet_xcm::benchmarking::Pallet as PalletXcmBenchmarks;581583582 let allowlist: Vec<TrackedStorageKey> = vec![584 let allowlist: Vec<TrackedStorageKey> = vec![583 // Total Issuance585 // Total Issuance602 let mut batches = Vec::<BenchmarkBatch>::new();604 let mut batches = Vec::<BenchmarkBatch>::new();603 let params = (&config, &allowlist);605 let params = (&config, &allowlist);606604 add_benchmark!(params, batches, pallet_xcm, PolkadotXcm);607 add_benchmark!(params, batches, pallet_xcm, PalletXcmBenchmarks::<Runtime>);605608606 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);609 add_benchmark!(params, batches, pallet_evm_migration, EvmMigration);607 add_benchmark!(params, batches, pallet_common, Common);610 add_benchmark!(params, batches, pallet_common, Common);runtime/common/weights/xcm.rsdiffbeforeafterboth223//! Autogenerated weights for pallet_xcm3//! Autogenerated weights for pallet_xcm4//!4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 29.0.05//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.16//! DATE: 2023-11-29, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2024-05-24, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10248//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10249935/// Weights for pallet_xcm using the Substrate node and recommended hardware.35/// Weights for pallet_xcm using the Substrate node and recommended hardware.36pub struct SubstrateWeight<T>(PhantomData<T>);36pub struct SubstrateWeight<T>(PhantomData<T>);37impl<T: frame_system::Config> pallet_xcm::WeightInfo for SubstrateWeight<T> {37impl<T: frame_system::Config> pallet_xcm::WeightInfo for SubstrateWeight<T> {38 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)38 /// Storage: `Benchmark::Override` (r:0 w:0)39 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)39 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)40 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)41 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)42 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)43 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)44 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)45 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)46 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)47 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)48 fn send() -> Weight {40 fn send() -> Weight {49 // Proof Size summary in bytes:41 // Proof Size summary in bytes:50 // Measured: `278`42 // Measured: `0`51 // Estimated: `3743`43 // Estimated: `0`52 // Minimum execution time: 22_693_000 picoseconds.44 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.53 Weight::from_parts(23_155_000, 3743)45 Weight::from_parts(18_446_744_073_709_551_000, 0)54 .saturating_add(T::DbWeight::get().reads(5_u64))55 .saturating_add(T::DbWeight::get().writes(2_u64))56 }46 }57 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)47 /// Storage: `Benchmark::Override` (r:0 w:0)58 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)48 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)59 fn teleport_assets() -> Weight {49 fn teleport_assets() -> Weight {60 // Proof Size summary in bytes:50 // Proof Size summary in bytes:61 // Measured: `169`51 // Measured: `0`62 // Estimated: `1489`52 // Estimated: `0`63 // Minimum execution time: 21_165_000 picoseconds.53 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.64 Weight::from_parts(21_568_000, 1489)54 Weight::from_parts(18_446_744_073_709_551_000, 0)65 .saturating_add(T::DbWeight::get().reads(1_u64))66 }55 }67 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)56 /// Storage: `Benchmark::Override` (r:0 w:0)68 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)57 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)69 fn reserve_transfer_assets() -> Weight {58 fn reserve_transfer_assets() -> Weight {70 // Proof Size summary in bytes:59 // Proof Size summary in bytes:71 // Measured: `169`60 // Measured: `0`72 // Estimated: `1489`61 // Estimated: `0`73 // Minimum execution time: 20_929_000 picoseconds.62 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.74 Weight::from_parts(21_295_000, 1489)63 Weight::from_parts(18_446_744_073_709_551_000, 0)75 .saturating_add(T::DbWeight::get().reads(1_u64))76 }64 }65 /// Storage: `Benchmark::Override` (r:0 w:0)66 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)67 fn transfer_assets() -> Weight {68 // Proof Size summary in bytes:69 // Measured: `0`70 // Estimated: `0`71 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.72 Weight::from_parts(18_446_744_073_709_551_000, 0)73 }77 fn execute() -> Weight {74 fn execute() -> Weight {78 // Proof Size summary in bytes:75 // Proof Size summary in bytes:79 // Measured: `0`76 // Measured: `0`80 // Estimated: `0`77 // Estimated: `0`81 // Minimum execution time: 7_580_000 picoseconds.78 // Minimum execution time: 3_230_000 picoseconds.82 Weight::from_parts(7_829_000, 0)79 Weight::from_parts(3_390_000, 0)83 }80 }84 /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1)81 /// Storage: `Benchmark::Override` (r:0 w:0)85 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)82 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)86 fn force_xcm_version() -> Weight {83 fn force_xcm_version() -> Weight {87 // Proof Size summary in bytes:84 // Proof Size summary in bytes:88 // Measured: `0`85 // Measured: `0`89 // Estimated: `0`86 // Estimated: `0`90 // Minimum execution time: 7_503_000 picoseconds.87 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.91 Weight::from_parts(7_703_000, 0)88 Weight::from_parts(18_446_744_073_709_551_000, 0)92 .saturating_add(T::DbWeight::get().writes(1_u64))93 }89 }94 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1)90 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1)95 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)91 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)96 fn force_default_xcm_version() -> Weight {92 fn force_default_xcm_version() -> Weight {97 // Proof Size summary in bytes:93 // Proof Size summary in bytes:98 // Measured: `0`94 // Measured: `0`99 // Estimated: `0`95 // Estimated: `0`100 // Minimum execution time: 2_505_000 picoseconds.96 // Minimum execution time: 1_020_000 picoseconds.101 Weight::from_parts(2_619_000, 0)97 Weight::from_parts(1_120_000, 0)102 .saturating_add(T::DbWeight::get().writes(1_u64))98 .saturating_add(T::DbWeight::get().writes(1_u64))103 }99 }104 /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)105 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)106 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)107 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)108 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)109 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)110 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)111 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)112 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)113 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)114 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)115 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)116 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)117 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)118 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)100 /// Storage: `Benchmark::Override` (r:0 w:0)119 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)101 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)120 fn force_subscribe_version_notify() -> Weight {102 fn force_subscribe_version_notify() -> Weight {121 // Proof Size summary in bytes:103 // Proof Size summary in bytes:122 // Measured: `278`104 // Measured: `0`123 // Estimated: `3743`105 // Estimated: `0`124 // Minimum execution time: 26_213_000 picoseconds.106 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.125 Weight::from_parts(26_652_000, 3743)107 Weight::from_parts(18_446_744_073_709_551_000, 0)126 .saturating_add(T::DbWeight::get().reads(7_u64))127 .saturating_add(T::DbWeight::get().writes(5_u64))128 }108 }129 /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)130 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)131 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)132 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)133 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)134 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)135 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)136 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)137 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)138 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)139 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)140 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)141 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)109 /// Storage: `Benchmark::Override` (r:0 w:0)142 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)110 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)143 fn force_unsubscribe_version_notify() -> Weight {111 fn force_unsubscribe_version_notify() -> Weight {144 // Proof Size summary in bytes:112 // Proof Size summary in bytes:145 // Measured: `461`113 // Measured: `0`146 // Estimated: `3926`114 // Estimated: `0`147 // Minimum execution time: 27_648_000 picoseconds.115 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.148 Weight::from_parts(28_084_000, 3926)116 Weight::from_parts(18_446_744_073_709_551_000, 0)149 .saturating_add(T::DbWeight::get().reads(6_u64))150 .saturating_add(T::DbWeight::get().writes(4_u64))151 }117 }152 /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1)118 /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1)153 /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)119 /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)154 fn force_suspension() -> Weight {120 fn force_suspension() -> Weight {155 // Proof Size summary in bytes:121 // Proof Size summary in bytes:156 // Measured: `0`122 // Measured: `0`157 // Estimated: `0`123 // Estimated: `0`158 // Minimum execution time: 2_529_000 picoseconds.124 // Minimum execution time: 1_050_000 picoseconds.159 Weight::from_parts(2_650_000, 0)125 Weight::from_parts(1_150_000, 0)160 .saturating_add(T::DbWeight::get().writes(1_u64))126 .saturating_add(T::DbWeight::get().writes(1_u64))161 }127 }162 /// Storage: `PolkadotXcm::SupportedVersion` (r:4 w:2)128 /// Storage: `PolkadotXcm::SupportedVersion` (r:5 w:2)163 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)129 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)164 fn migrate_supported_version() -> Weight {130 fn migrate_supported_version() -> Weight {165 // Proof Size summary in bytes:131 // Proof Size summary in bytes:166 // Measured: `196`132 // Measured: `192`167 // Estimated: `11086`133 // Estimated: `13557`168 // Minimum execution time: 15_973_000 picoseconds.134 // Minimum execution time: 13_400_000 picoseconds.169 Weight::from_parts(16_358_000, 11086)135 Weight::from_parts(13_670_000, 13557)170 .saturating_add(T::DbWeight::get().reads(4_u64))136 .saturating_add(T::DbWeight::get().reads(5_u64))171 .saturating_add(T::DbWeight::get().writes(2_u64))137 .saturating_add(T::DbWeight::get().writes(2_u64))172 }138 }173 /// Storage: `PolkadotXcm::VersionNotifiers` (r:4 w:2)139 /// Storage: `PolkadotXcm::VersionNotifiers` (r:5 w:2)174 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)140 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)175 fn migrate_version_notifiers() -> Weight {141 fn migrate_version_notifiers() -> Weight {176 // Proof Size summary in bytes:142 // Proof Size summary in bytes:177 // Measured: `200`143 // Measured: `196`178 // Estimated: `11090`144 // Estimated: `13561`179 // Minimum execution time: 16_027_000 picoseconds.145 // Minimum execution time: 13_160_000 picoseconds.180 Weight::from_parts(16_585_000, 11090)146 Weight::from_parts(13_650_000, 13561)181 .saturating_add(T::DbWeight::get().reads(4_u64))147 .saturating_add(T::DbWeight::get().reads(5_u64))182 .saturating_add(T::DbWeight::get().writes(2_u64))148 .saturating_add(T::DbWeight::get().writes(2_u64))183 }149 }150 /// Storage: `Benchmark::Override` (r:0 w:0)151 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)152 fn already_notified_target() -> Weight {153 // Proof Size summary in bytes:154 // Measured: `0`155 // Estimated: `0`156 // Minimum execution time: 25_000_000 picoseconds.157 Weight::from_parts(25_000_000, 0)158 }159 /// Storage: `Benchmark::Override` (r:0 w:0)160 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)161 fn notify_current_targets() -> Weight {162 // Proof Size summary in bytes:163 // Measured: `0`164 // Estimated: `0`165 // Minimum execution time: 325_000_000 picoseconds.166 Weight::from_parts(325_000_000, 0)167 }184 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:0)168 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0)185 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)169 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)186 fn already_notified_target() -> Weight {170 fn notify_target_migration_fail() -> Weight {187 // Proof Size summary in bytes:171 // Proof Size summary in bytes:188 // Measured: `207`172 // Measured: `239`189 // Estimated: `13572`173 // Estimated: `11129`190 // Minimum execution time: 16_817_000 picoseconds.174 // Minimum execution time: 8_250_000 picoseconds.191 Weight::from_parts(17_137_000, 13572)175 Weight::from_parts(8_780_000, 11129)192 .saturating_add(T::DbWeight::get().reads(5_u64))176 .saturating_add(T::DbWeight::get().reads(4_u64))193 }177 }194 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1)178 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)195 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)179 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)196 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)197 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)198 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)199 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)200 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)201 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)202 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)203 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)204 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)205 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)206 fn notify_current_targets() -> Weight {180 fn migrate_version_notify_targets() -> Weight {207 // Proof Size summary in bytes:181 // Proof Size summary in bytes:208 // Measured: `345`182 // Measured: `203`209 // Estimated: `6285`183 // Estimated: `13568`210 // Minimum execution time: 24_551_000 picoseconds.184 // Minimum execution time: 13_240_000 picoseconds.211 Weight::from_parts(24_975_000, 6285)185 Weight::from_parts(13_650_000, 13568)212 .saturating_add(T::DbWeight::get().reads(7_u64))186 .saturating_add(T::DbWeight::get().reads(5_u64))213 .saturating_add(T::DbWeight::get().writes(3_u64))187 .saturating_add(T::DbWeight::get().writes(2_u64))214 }188 }189 /// Storage: `Benchmark::Override` (r:0 w:0)190 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)191 fn migrate_and_notify_old_targets() -> Weight {192 // Proof Size summary in bytes:193 // Measured: `0`194 // Estimated: `0`195 // Minimum execution time: 325_000_000 picoseconds.196 Weight::from_parts(325_000_000, 0)197 }198 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)199 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)215 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:3 w:0)200 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)216 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)201 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)217 fn notify_target_migration_fail() -> Weight {202 fn new_query() -> Weight {218 // Proof Size summary in bytes:203 // Proof Size summary in bytes:219 // Measured: `239`204 // Measured: `136`220 // Estimated: `8654`205 // Estimated: `1621`221 // Minimum execution time: 8_412_000 picoseconds.206 // Minimum execution time: 3_440_000 picoseconds.222 Weight::from_parts(8_710_000, 8654)207 Weight::from_parts(3_560_000, 1621)208 .saturating_add(T::DbWeight::get().reads(1_u64))223 .saturating_add(T::DbWeight::get().reads(3_u64))209 .saturating_add(T::DbWeight::get().writes(2_u64))224 }210 }225 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2)211 /// Storage: `PolkadotXcm::Queries` (r:1 w:1)226 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)212 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)227 fn migrate_version_notify_targets() -> Weight {213 fn take_response() -> Weight {228 // Proof Size summary in bytes:214 // Proof Size summary in bytes:229 // Measured: `207`215 // Measured: `7773`230 // Estimated: `11097`216 // Estimated: `11238`231 // Minimum execution time: 16_427_000 picoseconds.217 // Minimum execution time: 19_230_000 picoseconds.232 Weight::from_parts(16_774_000, 11097)218 Weight::from_parts(19_550_000, 11238)233 .saturating_add(T::DbWeight::get().reads(4_u64))219 .saturating_add(T::DbWeight::get().reads(1_u64))234 .saturating_add(T::DbWeight::get().writes(2_u64))220 .saturating_add(T::DbWeight::get().writes(1_u64))235 }221 }236 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:2)222 /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)237 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)223 /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)238 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)224 /// Storage: `ForeignAssets::ForeignAssetToCollection` (r:1 w:0)239 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)225 /// Proof: `ForeignAssets::ForeignAssetToCollection` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)240 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)241 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)242 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)243 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)244 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)226 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)245 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)227 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)246 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)247 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)248 fn migrate_and_notify_old_targets() -> Weight {228 fn claim_assets() -> Weight {249 // Proof Size summary in bytes:229 // Proof Size summary in bytes:250 // Measured: `349`230 // Measured: `366`251 // Estimated: `11239`231 // Estimated: `4079`252 // Minimum execution time: 30_394_000 picoseconds.232 // Minimum execution time: 25_540_000 picoseconds.253 Weight::from_parts(30_868_000, 11239)233 Weight::from_parts(26_250_000, 4079)254 .saturating_add(T::DbWeight::get().reads(9_u64))234 .saturating_add(T::DbWeight::get().reads(3_u64))255 .saturating_add(T::DbWeight::get().writes(4_u64))235 .saturating_add(T::DbWeight::get().writes(1_u64))256 }236 }257258 fn transfer_assets() -> Weight {259 // TODO!260 Self::send()261 }262263 fn new_query() -> Weight {264 // TODO!265 Self::send()266 }267268 fn take_response() -> Weight {269 // TODO!270 Self::send()271 }272273 fn claim_assets() -> Weight {274 // TODO!275 Self::send()276 }277}237}278238279239