pallet_xcm.rs 12.5 KiB
Newer Older
// Copyright (C) Parity Technologies (UK) Ltd.
Gavin Wood's avatar
Gavin Wood committed
// 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/>.
Gavin Wood's avatar
Gavin Wood committed
//! 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-05-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
Mara Broda's avatar
Mara Broda committed
//! HOSTNAME: `bm5`, 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("rococo-dev"), DB CACHE: 1024

// Executed Command:
// target/production/polkadot
Gavin Wood's avatar
Gavin Wood committed
// benchmark
// pallet
// --steps=50
// --repeat=20
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=pallet_xcm
// --chain=rococo-dev
Gavin Wood's avatar
Gavin Wood committed
// --header=./file_header.txt
// --output=./runtime/rococo/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
Gavin Wood's avatar
Gavin Wood committed

use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
Gavin Wood's avatar
Gavin Wood committed

/// Weight functions for `pallet_xcm`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_xcm::WeightInfo for WeightInfo<T> {
	/// Storage: Configuration ActiveConfig (r:1 w:0)
	/// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DeliveryFeeFactor (r:1 w:0)
	/// Proof Skipped: Dmp DeliveryFeeFactor (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: 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 {
		// Proof Size summary in bytes:
Mara Broda's avatar
Mara Broda committed
		//  Measured:  `565`
		//  Estimated: `4030`
		// Minimum execution time: 37_039_000 picoseconds.
		Weight::from_parts(37_605_000, 0)
			.saturating_add(Weight::from_parts(0, 4030))
			.saturating_add(T::DbWeight::get().reads(7))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(3))
	}
	fn teleport_assets() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 21_646_000 picoseconds.
		Weight::from_parts(22_119_000, 0)
			.saturating_add(Weight::from_parts(0, 0))
Gavin Wood's avatar
Gavin Wood committed
	}
	fn reserve_transfer_assets() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 21_353_000 picoseconds.
		Weight::from_parts(21_768_000, 0)
			.saturating_add(Weight::from_parts(0, 0))
Gavin Wood's avatar
Gavin Wood committed
	}
	fn execute() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 9_942_000 picoseconds.
		Weight::from_parts(10_110_000, 0)
			.saturating_add(Weight::from_parts(0, 0))
Gavin Wood's avatar
Gavin Wood 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 {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 9_951_000 picoseconds.
		Weight::from_parts(10_182_000, 0)
			.saturating_add(Weight::from_parts(0, 0))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(1))
	}
	fn force_default_xcm_version() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 3_163_000 picoseconds.
		Weight::from_parts(3_298_000, 0)
			.saturating_add(Weight::from_parts(0, 0))
Gavin Wood's avatar
Gavin Wood 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: Configuration ActiveConfig (r:1 w:0)
	/// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DeliveryFeeFactor (r:1 w:0)
	/// Proof Skipped: Dmp DeliveryFeeFactor (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: 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 {
		// Proof Size summary in bytes:
Mara Broda's avatar
Mara Broda committed
		//  Measured:  `565`
		//  Estimated: `4030`
		// Minimum execution time: 41_207_000 picoseconds.
		Weight::from_parts(41_879_000, 0)
			.saturating_add(Weight::from_parts(0, 4030))
			.saturating_add(T::DbWeight::get().reads(9))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(6))
	}
	/// Storage: XcmPallet VersionNotifiers (r:1 w:1)
	/// Proof Skipped: XcmPallet VersionNotifiers (max_values: None, max_size: None, mode: Measured)
	/// Storage: Configuration ActiveConfig (r:1 w:0)
	/// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DeliveryFeeFactor (r:1 w:0)
	/// Proof Skipped: Dmp DeliveryFeeFactor (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: 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 {
		// Proof Size summary in bytes:
Mara Broda's avatar
Mara Broda committed
		//  Measured:  `837`
		//  Estimated: `4302`
		// Minimum execution time: 44_763_000 picoseconds.
		Weight::from_parts(45_368_000, 0)
			.saturating_add(Weight::from_parts(0, 4302))
			.saturating_add(T::DbWeight::get().reads(8))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(5))
	}
	/// Storage: XcmPallet XcmExecutionSuspended (r:0 w:1)
	/// Proof Skipped: XcmPallet XcmExecutionSuspended (max_values: Some(1), max_size: None, mode: Measured)
	fn force_suspension() -> Weight {
		// Proof Size summary in bytes:
		//  Measured:  `0`
		//  Estimated: `0`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 3_089_000 picoseconds.
		Weight::from_parts(3_246_000, 0)
			.saturating_add(Weight::from_parts(0, 0))
			.saturating_add(T::DbWeight::get().writes(1))
	}
	/// 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 {
		// Proof Size summary in bytes:
		//  Measured:  `229`
Mara Broda's avatar
Mara Broda committed
		//  Estimated: `11119`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 16_733_000 picoseconds.
		Weight::from_parts(17_354_000, 0)
Mara Broda's avatar
Mara Broda committed
			.saturating_add(Weight::from_parts(0, 11119))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(4))
			.saturating_add(T::DbWeight::get().writes(2))
	}
	/// 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 {
		// Proof Size summary in bytes:
		//  Measured:  `233`
Mara Broda's avatar
Mara Broda committed
		//  Estimated: `11123`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 16_959_000 picoseconds.
		Weight::from_parts(17_306_000, 0)
Mara Broda's avatar
Mara Broda committed
			.saturating_add(Weight::from_parts(0, 11123))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(4))
			.saturating_add(T::DbWeight::get().writes(2))
	}
	/// 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 {
		// Proof Size summary in bytes:
		//  Measured:  `243`
Mara Broda's avatar
Mara Broda committed
		//  Estimated: `13608`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 17_964_000 picoseconds.
		Weight::from_parts(18_548_000, 0)
Mara Broda's avatar
Mara Broda committed
			.saturating_add(Weight::from_parts(0, 13608))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(5))
	}
	/// Storage: XcmPallet VersionNotifyTargets (r:2 w:1)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
	/// Storage: Configuration ActiveConfig (r:1 w:0)
	/// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DeliveryFeeFactor (r:1 w:0)
	/// Proof Skipped: Dmp DeliveryFeeFactor (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: 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 {
		// Proof Size summary in bytes:
Mara Broda's avatar
Mara Broda committed
		//  Measured:  `635`
		//  Estimated: `6575`
		// Minimum execution time: 39_436_000 picoseconds.
		Weight::from_parts(39_669_000, 0)
			.saturating_add(Weight::from_parts(0, 6575))
			.saturating_add(T::DbWeight::get().reads(9))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(4))
	}
	/// 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 {
		// Proof Size summary in bytes:
		//  Measured:  `272`
Mara Broda's avatar
Mara Broda committed
		//  Estimated: `8687`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 8_991_000 picoseconds.
		Weight::from_parts(9_248_000, 0)
Mara Broda's avatar
Mara Broda committed
			.saturating_add(Weight::from_parts(0, 8687))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(3))
	}
	/// 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 {
		// Proof Size summary in bytes:
		//  Measured:  `240`
Mara Broda's avatar
Mara Broda committed
		//  Estimated: `11130`
Mara Broda's avatar
Mara Broda committed
		// Minimum execution time: 17_614_000 picoseconds.
		Weight::from_parts(17_948_000, 0)
Mara Broda's avatar
Mara Broda committed
			.saturating_add(Weight::from_parts(0, 11130))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().reads(4))
			.saturating_add(T::DbWeight::get().writes(2))
	}
	/// Storage: XcmPallet VersionNotifyTargets (r:4 w:2)
	/// Proof Skipped: XcmPallet VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
	/// Storage: Configuration ActiveConfig (r:1 w:0)
	/// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
	/// Storage: Dmp DeliveryFeeFactor (r:1 w:0)
	/// Proof Skipped: Dmp DeliveryFeeFactor (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: 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 {
		// Proof Size summary in bytes:
Mara Broda's avatar
Mara Broda committed
		//  Measured:  `639`
		//  Estimated: `11529`
		// Minimum execution time: 45_531_000 picoseconds.
		Weight::from_parts(46_533_000, 0)
			.saturating_add(Weight::from_parts(0, 11529))
			.saturating_add(T::DbWeight::get().reads(11))
Gavin Wood's avatar
Gavin Wood committed
			.saturating_add(T::DbWeight::get().writes(5))
	}
}