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 4.0.0-dev6//! DATE: 2023-03-10, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/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: ParachainSystem HostConfiguration (r:1 w:0)39 /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)40 /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)41 /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)42 fn send() -> Weight {43 // Proof Size summary in bytes:44 // Measured: `142`45 // Estimated: `1274`46 // Minimum execution time: 11_382_000 picoseconds.47 Weight::from_parts(11_812_000, 1274)48 .saturating_add(T::DbWeight::get().reads(2_u64))49 .saturating_add(T::DbWeight::get().writes(1_u64))50 }51 /// Storage: ParachainInfo ParachainId (r:1 w:0)52 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)53 fn teleport_assets() -> Weight {54 // Proof Size summary in bytes:55 // Measured: `136`56 // Estimated: `499`57 // Minimum execution time: 13_195_000 picoseconds.58 Weight::from_parts(13_685_000, 499)59 .saturating_add(T::DbWeight::get().reads(1_u64))60 }61 /// Storage: ParachainInfo ParachainId (r:1 w:0)62 /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)63 fn reserve_transfer_assets() -> Weight {64 // Proof Size summary in bytes:65 // Measured: `136`66 // Estimated: `499`67 // Minimum execution time: 12_784_000 picoseconds.68 Weight::from_parts(13_155_000, 499)69 .saturating_add(T::DbWeight::get().reads(1_u64))70 }71 fn execute() -> Weight {72 // Proof Size summary in bytes:73 // Measured: `0`74 // Estimated: `0`75 // Minimum execution time: 4_569_000 picoseconds.76 Weight::from_parts(4_819_000, 0)77 }78 /// Storage: PolkadotXcm SupportedVersion (r:0 w:1)79 /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)80 fn force_xcm_version() -> Weight {81 // Proof Size summary in bytes:82 // Measured: `0`83 // Estimated: `0`84 // Minimum execution time: 4_919_000 picoseconds.85 Weight::from_parts(5_250_000, 0)86 .saturating_add(T::DbWeight::get().writes(1_u64))87 }88 /// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1)89 /// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)90 fn force_default_xcm_version() -> Weight {91 // Proof Size summary in bytes:92 // Measured: `0`93 // Estimated: `0`94 // Minimum execution time: 1_593_000 picoseconds.95 Weight::from_parts(1_723_000, 0)96 .saturating_add(T::DbWeight::get().writes(1_u64))97 }98 /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1)99 /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)100 /// Storage: PolkadotXcm QueryCounter (r:1 w:1)101 /// Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured)102 /// Storage: ParachainSystem HostConfiguration (r:1 w:0)103 /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)104 /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)105 /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)106 /// Storage: PolkadotXcm Queries (r:0 w:1)107 /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)108 fn force_subscribe_version_notify() -> Weight {109 // Proof Size summary in bytes:110 // Measured: `184`111 // Estimated: `4880`112 // Minimum execution time: 16_832_000 picoseconds.113 Weight::from_parts(17_984_000, 4880)114 .saturating_add(T::DbWeight::get().reads(4_u64))115 .saturating_add(T::DbWeight::get().writes(4_u64))116 }117 /// Storage: PolkadotXcm VersionNotifiers (r:1 w:1)118 /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)119 /// Storage: ParachainSystem HostConfiguration (r:1 w:0)120 /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)121 /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)122 /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)123 /// Storage: PolkadotXcm Queries (r:0 w:1)124 /// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)125 fn force_unsubscribe_version_notify() -> Weight {126 // Proof Size summary in bytes:127 // Measured: `341`128 // Estimated: `4829`129 // Minimum execution time: 19_256_000 picoseconds.130 Weight::from_parts(20_228_000, 4829)131 .saturating_add(T::DbWeight::get().reads(3_u64))132 .saturating_add(T::DbWeight::get().writes(3_u64))133 }134 /// Storage: PolkadotXcm SupportedVersion (r:4 w:2)135 /// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)136 fn migrate_supported_version() -> Weight {137 // Proof Size summary in bytes:138 // Measured: `108`139 // Estimated: `10008`140 // Minimum execution time: 14_437_000 picoseconds.141 Weight::from_parts(15_750_000, 10008)142 .saturating_add(T::DbWeight::get().reads(4_u64))143 .saturating_add(T::DbWeight::get().writes(2_u64))144 }145 /// Storage: PolkadotXcm VersionNotifiers (r:4 w:2)146 /// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)147 fn migrate_version_notifiers() -> Weight {148 // Proof Size summary in bytes:149 // Measured: `112`150 // Estimated: `10012`151 // Minimum execution time: 14_617_000 picoseconds.152 Weight::from_parts(16_000_000, 10012)153 .saturating_add(T::DbWeight::get().reads(4_u64))154 .saturating_add(T::DbWeight::get().writes(2_u64))155 }156 /// Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0)157 /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)158 fn already_notified_target() -> Weight {159 // Proof Size summary in bytes:160 // Measured: `119`161 // Estimated: `12494`162 // Minimum execution time: 18_395_000 picoseconds.163 Weight::from_parts(19_858_000, 12494)164 .saturating_add(T::DbWeight::get().reads(5_u64))165 }166 /// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1)167 /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)168 /// Storage: ParachainSystem HostConfiguration (r:1 w:0)169 /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)170 /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)171 /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)172 fn notify_current_targets() -> Weight {173 // Proof Size summary in bytes:174 // Measured: `255`175 // Estimated: `6705`176 // Minimum execution time: 17_443_000 picoseconds.177 Weight::from_parts(18_435_000, 6705)178 .saturating_add(T::DbWeight::get().reads(4_u64))179 .saturating_add(T::DbWeight::get().writes(2_u64))180 }181 /// Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0)182 /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)183 fn notify_target_migration_fail() -> Weight {184 // Proof Size summary in bytes:185 // Measured: `149`186 // Estimated: `7574`187 // Minimum execution time: 7_714_000 picoseconds.188 Weight::from_parts(8_526_000, 7574)189 .saturating_add(T::DbWeight::get().reads(3_u64))190 }191 /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2)192 /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)193 fn migrate_version_notify_targets() -> Weight {194 // Proof Size summary in bytes:195 // Measured: `119`196 // Estimated: `10019`197 // Minimum execution time: 15_008_000 picoseconds.198 Weight::from_parts(16_271_000, 10019)199 .saturating_add(T::DbWeight::get().reads(4_u64))200 .saturating_add(T::DbWeight::get().writes(2_u64))201 }202 /// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2)203 /// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)204 /// Storage: ParachainSystem HostConfiguration (r:1 w:0)205 /// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)206 /// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)207 /// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)208 fn migrate_and_notify_old_targets() -> Weight {209 // Proof Size summary in bytes:210 // Measured: `261`211 // Estimated: `11673`212 // Minimum execution time: 23_554_000 picoseconds.213 Weight::from_parts(25_158_000, 11673)214 .saturating_add(T::DbWeight::get().reads(6_u64))215 .saturating_add(T::DbWeight::get().writes(3_u64))216 }217}218difftreelog
source
runtime/common/weights/xcm.rs9.5 KiBsourcehistory