Skip to content
pallet_xcm.rs 12.4 KiB
Newer Older
Gavin Wood's avatar
Gavin Wood committed
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.

// Polkadot 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.

// Polkadot 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 Polkadot.  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
Mara Broda's avatar
Mara Broda committed
//! DATE: 2023-02-27, 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`
Gavin Wood's avatar
Gavin Wood committed
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
Gavin Wood's avatar
Gavin Wood committed
// benchmark
// pallet
// --chain=westend-dev
Gavin Wood's avatar
Gavin Wood committed
// --steps=50
// --repeat=20
// --pallet=pallet_xcm
Gavin Wood's avatar
Gavin Wood committed
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/westend/src/weights/

#![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> {
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet SupportedVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn send() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `169`
		//  Estimated: `9260`
		// Minimum execution time: 30_849 nanoseconds.
		Weight::from_ref_time(31_945_000)
			.saturating_add(Weight::from_proof_size(9260))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(5))
			.saturating_add(T::DbWeight::get().writes(3))
	}
	fn teleport_assets() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
		// Minimum execution time: 22_799 nanoseconds.
		Weight::from_ref_time(23_316_000)
			.saturating_add(Weight::from_proof_size(0))
Gavin Wood's avatar
Gavin Wood committed
	}
	fn reserve_transfer_assets() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
		// Minimum execution time: 21_833 nanoseconds.
		Weight::from_ref_time(22_121_000)
			.saturating_add(Weight::from_proof_size(0))
Gavin Wood's avatar
Gavin Wood committed
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: Benchmark Override (r:0 w:0)
	/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn execute() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Gavin Wood's avatar
Gavin Wood committed
		// Minimum execution time: 18_446_744_073_709_551 nanoseconds.
		Weight::from_ref_time(18_446_744_073_709_551_000)
Mara Broda's avatar
Mara Broda committed
			.saturating_add(Weight::from_proof_size(0))
Gavin Wood's avatar
Gavin Wood committed
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet SupportedVersion (r:0 w:1)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn force_xcm_version() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
		// Minimum execution time: 9_945 nanoseconds.
		Weight::from_ref_time(10_250_000)
			.saturating_add(Weight::from_proof_size(0))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(1))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet SafeXcmVersion (r:0 w:1)
	/// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn force_default_xcm_version() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
		// Minimum execution time: 2_700 nanoseconds.
		Weight::from_ref_time(2_815_000)
			.saturating_add(Weight::from_proof_size(0))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(1))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifiers (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionNotifiers (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet QueryCounter (r:1 w:1)
	/// Proof Skipped: XcmPallet QueryCounter (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: XcmPallet SupportedVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet Queries (r:0 w:1)
	/// Proof Skipped: XcmPallet Queries (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn force_subscribe_version_notify() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `169`
		//  Estimated: `12737`
		// Minimum execution time: 36_182 nanoseconds.
		Weight::from_ref_time(36_714_000)
			.saturating_add(Weight::from_proof_size(12737))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(7))
			.saturating_add(T::DbWeight::get().writes(6))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifiers (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionNotifiers (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet SupportedVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet Queries (r:0 w:1)
	/// Proof Skipped: XcmPallet Queries (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn force_unsubscribe_version_notify() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `326`
		//  Estimated: `13172`
		// Minimum execution time: 36_706 nanoseconds.
		Weight::from_ref_time(37_135_000)
			.saturating_add(Weight::from_proof_size(13172))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(6))
			.saturating_add(T::DbWeight::get().writes(5))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet SupportedVersion (r:4 w:2)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn migrate_supported_version() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `229`
		//  Estimated: `10129`
		// Minimum execution time: 15_818 nanoseconds.
		Weight::from_ref_time(16_246_000)
			.saturating_add(Weight::from_proof_size(10129))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(4))
			.saturating_add(T::DbWeight::get().writes(2))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifiers (r:4 w:2)
	/// Proof Skipped: XcmPallet VersionNotifiers (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn migrate_version_notifiers() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `233`
		//  Estimated: `10133`
		// Minimum execution time: 15_799 nanoseconds.
		Weight::from_ref_time(16_232_000)
			.saturating_add(Weight::from_proof_size(10133))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(4))
			.saturating_add(T::DbWeight::get().writes(2))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifyTargets (r:5 w:0)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn already_notified_target() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `243`
		//  Estimated: `12618`
		// Minimum execution time: 18_584 nanoseconds.
		Weight::from_ref_time(19_031_000)
			.saturating_add(Weight::from_proof_size(12618))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(5))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifyTargets (r:2 w:1)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet SupportedVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn notify_current_targets() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `239`
		//  Estimated: `14799`
		// Minimum execution time: 33_133 nanoseconds.
		Weight::from_ref_time(33_402_000)
			.saturating_add(Weight::from_proof_size(14799))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(7))
			.saturating_add(T::DbWeight::get().writes(4))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifyTargets (r:3 w:0)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn notify_target_migration_fail() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `272`
		//  Estimated: `7697`
		// Minimum execution time: 8_589 nanoseconds.
		Weight::from_ref_time(8_837_000)
			.saturating_add(Weight::from_proof_size(7697))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(3))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifyTargets (r:4 w:2)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn migrate_version_notify_targets() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `240`
		//  Estimated: `10140`
		// Minimum execution time: 16_573 nanoseconds.
		Weight::from_ref_time(17_162_000)
			.saturating_add(Weight::from_proof_size(10140))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(4))
			.saturating_add(T::DbWeight::get().writes(2))
	}
Mara Broda's avatar
Mara Broda committed
	/// Storage: XcmPallet VersionNotifyTargets (r:4 w:2)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet SupportedVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SupportedVersion (max_values: None, max_size: None, mode: Measured)
	/// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionDiscoveryQueue (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
	/// Proof Skipped: XcmPallet SafeXcmVersion (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
	/// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
	/// Proof Skipped: Dmp DownwardMessageQueueHeads (max_values: None, max_size: None, mode: Measured)
Gavin Wood's avatar
Gavin Wood committed
	fn migrate_and_notify_old_targets() -> Weight {
Mara Broda's avatar
Mara Broda committed
		// Proof Size summary in bytes:
		//  Measured:  `243`
		//  Estimated: `19773`
		// Minimum execution time: 39_648 nanoseconds.
		Weight::from_ref_time(40_257_000)
			.saturating_add(Weight::from_proof_size(19773))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(9))
			.saturating_add(T::DbWeight::get().writes(5))
	}
}