1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_xcm4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 35.0.16//! DATE: 2024-05-27, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// ./target/production/unique-collator12// benchmark13// pallet14// --pallet15// pallet-xcm16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/external-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./runtime/common/weights/xcm.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weights for pallet_xcm using the Substrate node and recommended hardware.36pub struct SubstrateWeight<T>(PhantomData<T>);37impl<T: frame_system::Config> pallet_xcm::WeightInfo for SubstrateWeight<T> {38 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)39 /// Proof: `PolkadotXcm::SupportedVersion` (`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 {49 // Proof Size summary in bytes:50 // Measured: `278`51 // Estimated: `3743`52 // Minimum execution time: 18_977_000 picoseconds.53 Weight::from_parts(19_535_000, 3743)54 .saturating_add(T::DbWeight::get().reads(5_u64))55 .saturating_add(T::DbWeight::get().writes(2_u64))56 }57 /// Storage: `Benchmark::Override` (r:0 w:0)58 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)59 fn teleport_assets() -> Weight {60 // Proof Size summary in bytes:61 // Measured: `0`62 // Estimated: `0`63 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.64 Weight::from_parts(18_446_744_073_709_551_000, 0)65 }66 /// Storage: `Benchmark::Override` (r:0 w:0)67 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)68 fn reserve_transfer_assets() -> Weight {69 // Proof Size summary in bytes:70 // Measured: `0`71 // Estimated: `0`72 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.73 Weight::from_parts(18_446_744_073_709_551_000, 0)74 }75 /// Storage: `Benchmark::Override` (r:0 w:0)76 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)77 fn transfer_assets() -> Weight {78 // Proof Size summary in bytes:79 // Measured: `0`80 // Estimated: `0`81 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.82 Weight::from_parts(18_446_744_073_709_551_000, 0)83 }84 fn execute() -> Weight {85 // Proof Size summary in bytes:86 // Measured: `0`87 // Estimated: `0`88 // Minimum execution time: 6_781_000 picoseconds.89 Weight::from_parts(7_006_000, 0)90 }91 /// Storage: `PolkadotXcm::SupportedVersion` (r:0 w:1)92 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)93 fn force_xcm_version() -> Weight {94 // Proof Size summary in bytes:95 // Measured: `0`96 // Estimated: `0`97 // Minimum execution time: 6_489_000 picoseconds.98 Weight::from_parts(6_849_000, 0)99 .saturating_add(T::DbWeight::get().writes(1_u64))100 }101 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:0 w:1)102 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)103 fn force_default_xcm_version() -> Weight {104 // Proof Size summary in bytes:105 // Measured: `0`106 // Estimated: `0`107 // Minimum execution time: 2_216_000 picoseconds.108 Weight::from_parts(2_347_000, 0)109 .saturating_add(T::DbWeight::get().writes(1_u64))110 }111 /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)112 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)113 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)114 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)115 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)116 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)117 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)118 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)119 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)120 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)121 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)122 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)123 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)124 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)125 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)126 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)127 fn force_subscribe_version_notify() -> Weight {128 // Proof Size summary in bytes:129 // Measured: `278`130 // Estimated: `3743`131 // Minimum execution time: 24_128_000 picoseconds.132 Weight::from_parts(24_629_000, 3743)133 .saturating_add(T::DbWeight::get().reads(7_u64))134 .saturating_add(T::DbWeight::get().writes(5_u64))135 }136 /// Storage: `PolkadotXcm::VersionNotifiers` (r:1 w:1)137 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)138 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)139 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)140 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)141 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)142 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)143 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)144 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)145 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)146 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)147 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)148 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)149 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)150 fn force_unsubscribe_version_notify() -> Weight {151 // Proof Size summary in bytes:152 // Measured: `461`153 // Estimated: `3926`154 // Minimum execution time: 25_408_000 picoseconds.155 Weight::from_parts(25_912_000, 3926)156 .saturating_add(T::DbWeight::get().reads(6_u64))157 .saturating_add(T::DbWeight::get().writes(4_u64))158 }159 /// Storage: `PolkadotXcm::XcmExecutionSuspended` (r:0 w:1)160 /// Proof: `PolkadotXcm::XcmExecutionSuspended` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)161 fn force_suspension() -> Weight {162 // Proof Size summary in bytes:163 // Measured: `0`164 // Estimated: `0`165 // Minimum execution time: 2_270_000 picoseconds.166 Weight::from_parts(2_379_000, 0)167 .saturating_add(T::DbWeight::get().writes(1_u64))168 }169 /// Storage: `PolkadotXcm::SupportedVersion` (r:5 w:2)170 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)171 fn migrate_supported_version() -> Weight {172 // Proof Size summary in bytes:173 // Measured: `192`174 // Estimated: `13557`175 // Minimum execution time: 17_924_000 picoseconds.176 Weight::from_parts(18_191_000, 13557)177 .saturating_add(T::DbWeight::get().reads(5_u64))178 .saturating_add(T::DbWeight::get().writes(2_u64))179 }180 /// Storage: `PolkadotXcm::VersionNotifiers` (r:5 w:2)181 /// Proof: `PolkadotXcm::VersionNotifiers` (`max_values`: None, `max_size`: None, mode: `Measured`)182 fn migrate_version_notifiers() -> Weight {183 // Proof Size summary in bytes:184 // Measured: `196`185 // Estimated: `13561`186 // Minimum execution time: 17_998_000 picoseconds.187 Weight::from_parts(18_412_000, 13561)188 .saturating_add(T::DbWeight::get().reads(5_u64))189 .saturating_add(T::DbWeight::get().writes(2_u64))190 }191 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:6 w:0)192 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)193 fn already_notified_target() -> Weight {194 // Proof Size summary in bytes:195 // Measured: `207`196 // Estimated: `16047`197 // Minimum execution time: 19_437_000 picoseconds.198 Weight::from_parts(19_891_000, 16047)199 .saturating_add(T::DbWeight::get().reads(6_u64))200 }201 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:2 w:1)202 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)203 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)204 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)205 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)206 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)207 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)208 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)209 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)210 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)211 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)212 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)213 fn notify_current_targets() -> Weight {214 // Proof Size summary in bytes:215 // Measured: `345`216 // Estimated: `6285`217 // Minimum execution time: 24_038_000 picoseconds.218 Weight::from_parts(24_400_000, 6285)219 .saturating_add(T::DbWeight::get().reads(7_u64))220 .saturating_add(T::DbWeight::get().writes(3_u64))221 }222 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:4 w:0)223 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)224 fn notify_target_migration_fail() -> Weight {225 // Proof Size summary in bytes:226 // Measured: `239`227 // Estimated: `11129`228 // Minimum execution time: 10_817_000 picoseconds.229 Weight::from_parts(11_066_000, 11129)230 .saturating_add(T::DbWeight::get().reads(4_u64))231 }232 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)233 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)234 fn migrate_version_notify_targets() -> Weight {235 // Proof Size summary in bytes:236 // Measured: `203`237 // Estimated: `13568`238 // Minimum execution time: 18_143_000 picoseconds.239 Weight::from_parts(18_592_000, 13568)240 .saturating_add(T::DbWeight::get().reads(5_u64))241 .saturating_add(T::DbWeight::get().writes(2_u64))242 }243 /// Storage: `PolkadotXcm::VersionNotifyTargets` (r:5 w:2)244 /// Proof: `PolkadotXcm::VersionNotifyTargets` (`max_values`: None, `max_size`: None, mode: `Measured`)245 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)246 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)247 /// Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)248 /// Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)249 /// Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)250 /// Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)251 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)252 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)253 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)254 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)255 fn migrate_and_notify_old_targets() -> Weight {256 // Proof Size summary in bytes:257 // Measured: `345`258 // Estimated: `13710`259 // Minimum execution time: 31_871_000 picoseconds.260 Weight::from_parts(32_364_000, 13710)261 .saturating_add(T::DbWeight::get().reads(10_u64))262 .saturating_add(T::DbWeight::get().writes(4_u64))263 }264 /// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)265 /// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)266 /// Storage: `PolkadotXcm::Queries` (r:0 w:1)267 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)268 fn new_query() -> Weight {269 // Proof Size summary in bytes:270 // Measured: `136`271 // Estimated: `1621`272 // Minimum execution time: 4_750_000 picoseconds.273 Weight::from_parts(5_014_000, 1621)274 .saturating_add(T::DbWeight::get().reads(1_u64))275 .saturating_add(T::DbWeight::get().writes(2_u64))276 }277 /// Storage: `PolkadotXcm::Queries` (r:1 w:1)278 /// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)279 fn take_response() -> Weight {280 // Proof Size summary in bytes:281 // Measured: `7773`282 // Estimated: `11238`283 // Minimum execution time: 25_672_000 picoseconds.284 Weight::from_parts(25_937_000, 11238)285 .saturating_add(T::DbWeight::get().reads(1_u64))286 .saturating_add(T::DbWeight::get().writes(1_u64))287 }288 /// Storage: `PolkadotXcm::AssetTraps` (r:1 w:1)289 /// Proof: `PolkadotXcm::AssetTraps` (`max_values`: None, `max_size`: None, mode: `Measured`)290 /// Storage: `ForeignAssets::ForeignAssetToCollection` (r:1 w:0)291 /// Proof: `ForeignAssets::ForeignAssetToCollection` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)292 /// Storage: `ParachainInfo::ParachainId` (r:1 w:0)293 /// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)294 fn claim_assets() -> Weight {295 // Proof Size summary in bytes:296 // Measured: `366`297 // Estimated: `4079`298 // Minimum execution time: 44_409_000 picoseconds.299 Weight::from_parts(45_102_000, 4079)300 .saturating_add(T::DbWeight::get().reads(3_u64))301 .saturating_add(T::DbWeight::get().writes(1_u64))302 }303}304difftreelog
source
runtime/common/weights/xcm.rs14.5 KiBsourcehistory