mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
b441d05dac
* Companion for paritytech/polkadot#7098 * Fixes * Add missing benchmarked function * Fix typo * update lockfile for {"polkadot", "substrate"} --------- Co-authored-by: parity-processbot <>
286 lines
13 KiB
Rust
286 lines
13 KiB
Rust
// Copyright Parity Technologies (UK) Ltd.
|
|
// This file is part of Cumulus.
|
|
|
|
// Cumulus is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Cumulus is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_xcm`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-03-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./artifacts/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=statemine-dev
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_xcm
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/statemine/src/weights/pallet_xcm.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_xcm`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
|
|
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem HostConfiguration (r:1 w:0)
|
|
/// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
|
|
/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
|
|
fn send() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `75`
|
|
// Estimated: `9780`
|
|
// Minimum execution time: 28_004_000 picoseconds.
|
|
Weight::from_parts(28_341_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 9780))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: ParachainInfo ParachainId (r:1 w:0)
|
|
/// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn teleport_assets() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `1489`
|
|
// Minimum execution time: 23_734_000 picoseconds.
|
|
Weight::from_parts(24_091_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1489))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
}
|
|
/// Storage: ParachainInfo ParachainId (r:1 w:0)
|
|
/// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
fn reserve_transfer_assets() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `1489`
|
|
// Minimum execution time: 19_172_000 picoseconds.
|
|
Weight::from_parts(19_439_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1489))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
}
|
|
/// Storage: Benchmark Override (r:0 w:0)
|
|
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
|
|
fn execute() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
|
|
Weight::from_parts(18_446_744_073_709_551_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
/// Storage: PolkadotXcm SupportedVersion (r:0 w:1)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
fn force_xcm_version() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 10_181_000 picoseconds.
|
|
Weight::from_parts(10_441_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: PolkadotXcm SafeXcmVersion (r:0 w:1)
|
|
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
|
|
fn force_default_xcm_version() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_092_000 picoseconds.
|
|
Weight::from_parts(3_217_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifiers (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm QueryCounter (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm QueryCounter (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem HostConfiguration (r:1 w:0)
|
|
/// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
|
|
/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm Queries (r:0 w:1)
|
|
/// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)
|
|
fn force_subscribe_version_notify() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `75`
|
|
// Estimated: `14955`
|
|
// Minimum execution time: 36_167_000 picoseconds.
|
|
Weight::from_parts(37_036_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 14955))
|
|
.saturating_add(T::DbWeight::get().reads(7))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifiers (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem HostConfiguration (r:1 w:0)
|
|
/// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
|
|
/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm Queries (r:0 w:1)
|
|
/// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)
|
|
fn force_unsubscribe_version_notify() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `257`
|
|
// Estimated: `14669`
|
|
// Minimum execution time: 39_341_000 picoseconds.
|
|
Weight::from_parts(40_254_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 14669))
|
|
.saturating_add(T::DbWeight::get().reads(6))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
fn force_suspension() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_092_000 picoseconds.
|
|
Weight::from_parts(3_217_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: PolkadotXcm SupportedVersion (r:4 w:2)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
fn migrate_supported_version() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `129`
|
|
// Estimated: `11019`
|
|
// Minimum execution time: 20_159_000 picoseconds.
|
|
Weight::from_parts(20_621_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11019))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifiers (r:4 w:2)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifiers (max_values: None, max_size: None, mode: Measured)
|
|
fn migrate_version_notifiers() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `133`
|
|
// Estimated: `11023`
|
|
// Minimum execution time: 20_095_000 picoseconds.
|
|
Weight::from_parts(20_335_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11023))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifyTargets (r:5 w:0)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
|
|
fn already_notified_target() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `140`
|
|
// Estimated: `13505`
|
|
// Minimum execution time: 20_826_000 picoseconds.
|
|
Weight::from_parts(21_160_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 13505))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifyTargets (r:2 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem HostConfiguration (r:1 w:0)
|
|
/// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
|
|
/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
|
|
fn notify_current_targets() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `142`
|
|
// Estimated: `16197`
|
|
// Minimum execution time: 38_595_000 picoseconds.
|
|
Weight::from_parts(39_178_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 16197))
|
|
.saturating_add(T::DbWeight::get().reads(7))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifyTargets (r:3 w:0)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
|
|
fn notify_target_migration_fail() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `172`
|
|
// Estimated: `8587`
|
|
// Minimum execution time: 11_391_000 picoseconds.
|
|
Weight::from_parts(11_704_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 8587))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
|
|
fn migrate_version_notify_targets() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `140`
|
|
// Estimated: `11030`
|
|
// Minimum execution time: 22_506_000 picoseconds.
|
|
Weight::from_parts(23_076_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 11030))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: PolkadotXcm VersionNotifyTargets (r:4 w:2)
|
|
/// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SupportedVersion (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
|
|
/// Proof Skipped: PolkadotXcm VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: PolkadotXcm SafeXcmVersion (r:1 w:0)
|
|
/// Proof Skipped: PolkadotXcm SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem HostConfiguration (r:1 w:0)
|
|
/// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
|
|
/// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
|
|
fn migrate_and_notify_old_targets() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `146`
|
|
// Estimated: `21171`
|
|
// Minimum execution time: 47_662_000 picoseconds.
|
|
Weight::from_parts(48_167_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 21171))
|
|
.saturating_add(T::DbWeight::get().reads(9))
|
|
.saturating_add(T::DbWeight::get().writes(4))
|
|
}
|
|
}
|