referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/xcm/
pallet_xcm_benchmarks_fungible.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/rococo-runtime/rococo_runtime.wasm
32// --pallet=pallet_xcm_benchmarks::fungible
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/src/weights/xcm
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --template=polkadot/xcm/pallet-xcm-benchmarks/template.hbs
40// --no-storage-info
41// --no-min-squares
42// --no-median-slopes
43
44#![cfg_attr(rustfmt, rustfmt_skip)]
45#![allow(unused_parens)]
46#![allow(unused_imports)]
47#![allow(missing_docs)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `pallet_xcm_benchmarks::fungible`.
53pub struct WeightInfo<T>(PhantomData<T>);
54impl<T: frame_system::Config> WeightInfo<T> {
55	/// Storage: `System::Account` (r:1 w:1)
56	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
57	pub(crate) fn withdraw_asset() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `101`
60		//  Estimated: `3593`
61		// Minimum execution time: 32_224_000 picoseconds.
62		Weight::from_parts(33_669_000, 3593)
63			.saturating_add(T::DbWeight::get().reads(1))
64			.saturating_add(T::DbWeight::get().writes(1))
65	}
66	/// Storage: `System::Account` (r:2 w:2)
67	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
68	pub(crate) fn transfer_asset() -> Weight {
69		// Proof Size summary in bytes:
70		//  Measured:  `101`
71		//  Estimated: `6196`
72		// Minimum execution time: 44_831_000 picoseconds.
73		Weight::from_parts(45_859_000, 6196)
74			.saturating_add(T::DbWeight::get().reads(2))
75			.saturating_add(T::DbWeight::get().writes(2))
76	}
77	/// Storage: `System::Account` (r:2 w:2)
78	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
79	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
80	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
81	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
82	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
83	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
84	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
85	/// Storage: `Paras::Heads` (r:1 w:0)
86	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
87	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
88	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
89	pub(crate) fn transfer_reserve_asset() -> Weight {
90		// Proof Size summary in bytes:
91		//  Measured:  `346`
92		//  Estimated: `6196`
93		// Minimum execution time: 115_810_000 picoseconds.
94		Weight::from_parts(119_106_000, 6196)
95			.saturating_add(T::DbWeight::get().reads(7))
96			.saturating_add(T::DbWeight::get().writes(4))
97	}
98	/// Storage: `Benchmark::Override` (r:0 w:0)
99	/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
100	pub(crate) fn reserve_asset_deposited() -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `0`
103		//  Estimated: `0`
104		// Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
105		Weight::from_parts(18_446_744_073_709_551_000, 0)
106	}
107	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
108	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
109	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
110	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
111	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
112	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
113	/// Storage: `Paras::Heads` (r:1 w:0)
114	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
115	/// Storage: `System::Account` (r:1 w:1)
116	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
117	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
118	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
119	pub(crate) fn initiate_reserve_withdraw() -> Weight {
120		// Proof Size summary in bytes:
121		//  Measured:  `346`
122		//  Estimated: `3811`
123		// Minimum execution time: 80_024_000 picoseconds.
124		Weight::from_parts(82_067_000, 3811)
125			.saturating_add(T::DbWeight::get().reads(6))
126			.saturating_add(T::DbWeight::get().writes(3))
127	}
128	/// Storage: `System::Account` (r:1 w:1)
129	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
130	pub(crate) fn receive_teleported_asset() -> Weight {
131		// Proof Size summary in bytes:
132		//  Measured:  `103`
133		//  Estimated: `3593`
134		// Minimum execution time: 32_697_000 picoseconds.
135		Weight::from_parts(34_037_000, 3593)
136			.saturating_add(T::DbWeight::get().reads(1))
137			.saturating_add(T::DbWeight::get().writes(1))
138	}
139	/// Storage: `System::Account` (r:1 w:1)
140	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
141	pub(crate) fn deposit_asset() -> Weight {
142		// Proof Size summary in bytes:
143		//  Measured:  `0`
144		//  Estimated: `3593`
145		// Minimum execution time: 24_344_000 picoseconds.
146		Weight::from_parts(25_192_000, 3593)
147			.saturating_add(T::DbWeight::get().reads(1))
148			.saturating_add(T::DbWeight::get().writes(1))
149	}
150	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
151	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
152	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
153	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
154	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
155	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
156	/// Storage: `Paras::Heads` (r:1 w:0)
157	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
158	/// Storage: `System::Account` (r:1 w:1)
159	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
160	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
161	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
162	pub(crate) fn deposit_reserve_asset() -> Weight {
163		// Proof Size summary in bytes:
164		//  Measured:  `245`
165		//  Estimated: `3710`
166		// Minimum execution time: 74_722_000 picoseconds.
167		Weight::from_parts(76_317_000, 3710)
168			.saturating_add(T::DbWeight::get().reads(6))
169			.saturating_add(T::DbWeight::get().writes(3))
170	}
171	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
172	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
173	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
174	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
175	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
176	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
177	/// Storage: `Paras::Heads` (r:1 w:0)
178	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
179	/// Storage: `System::Account` (r:1 w:1)
180	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
181	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
182	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
183	pub(crate) fn initiate_teleport() -> Weight {
184		// Proof Size summary in bytes:
185		//  Measured:  `245`
186		//  Estimated: `3710`
187		// Minimum execution time: 74_808_000 picoseconds.
188		Weight::from_parts(77_773_000, 3710)
189			.saturating_add(T::DbWeight::get().reads(6))
190			.saturating_add(T::DbWeight::get().writes(3))
191	}
192	/// Storage: `System::Account` (r:1 w:1)
193	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
194	/// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
195	/// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
196	/// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
197	/// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
198	/// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
199	/// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
200	/// Storage: `Paras::Heads` (r:1 w:0)
201	/// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
202	/// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
203	/// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
204	pub(crate) fn initiate_transfer() -> Weight {
205		// Proof Size summary in bytes:
206		//  Measured:  `245`
207		//  Estimated: `3710`
208		// Minimum execution time: 92_309_000 picoseconds.
209		Weight::from_parts(94_230_000, 3710)
210			.saturating_add(T::DbWeight::get().reads(6))
211			.saturating_add(T::DbWeight::get().writes(3))
212	}
213}