pallet_staking_async_rc_runtime/weights/xcm/pallet_xcm_benchmarks_fungible.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// You should have received a copy of the GNU General Public License
19// along with Substrate. If not, see <http://www.gnu.org/licenses/>.
20
21//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
22//!
23//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
24//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
25//! WORST CASE MAP SIZE: `1000000`
26//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
27//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
28
29// Executed Command:
30// frame-omni-bencher
31// v1
32// benchmark
33// pallet
34// --extrinsic=*
35// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
36// --pallet=pallet_xcm_benchmarks::fungible
37// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
38// --output=./polkadot/runtime/westend/src/weights/xcm
39// --wasm-execution=compiled
40// --steps=50
41// --repeat=20
42// --heap-pages=4096
43// --template=polkadot/xcm/pallet-xcm-benchmarks/template.hbs
44// --no-storage-info
45// --no-min-squares
46// --no-median-slopes
47
48#![cfg_attr(rustfmt, rustfmt_skip)]
49#![allow(unused_parens)]
50#![allow(unused_imports)]
51#![allow(missing_docs)]
52
53use frame_support::{traits::Get, weights::Weight};
54use core::marker::PhantomData;
55
56/// Weight functions for `pallet_xcm_benchmarks::fungible`.
57pub struct WeightInfo<T>(PhantomData<T>);
58impl<T: frame_system::Config> WeightInfo<T> {
59 /// Storage: `System::Account` (r:1 w:1)
60 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
61 pub(crate) fn withdraw_asset() -> Weight {
62 // Proof Size summary in bytes:
63 // Measured: `101`
64 // Estimated: `3593`
65 // Minimum execution time: 32_959_000 picoseconds.
66 Weight::from_parts(34_026_000, 3593)
67 .saturating_add(T::DbWeight::get().reads(1))
68 .saturating_add(T::DbWeight::get().writes(1))
69 }
70 /// Storage: `System::Account` (r:2 w:2)
71 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
72 pub(crate) fn transfer_asset() -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `101`
75 // Estimated: `6196`
76 // Minimum execution time: 45_561_000 picoseconds.
77 Weight::from_parts(47_174_000, 6196)
78 .saturating_add(T::DbWeight::get().reads(2))
79 .saturating_add(T::DbWeight::get().writes(2))
80 }
81 /// Storage: `System::Account` (r:3 w:3)
82 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
83 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
84 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
85 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
86 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
87 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
88 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
89 /// Storage: `Paras::Heads` (r:1 w:0)
90 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
91 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
92 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
93 pub(crate) fn transfer_reserve_asset() -> Weight {
94 // Proof Size summary in bytes:
95 // Measured: `416`
96 // Estimated: `8799`
97 // Minimum execution time: 122_629_000 picoseconds.
98 Weight::from_parts(128_496_000, 8799)
99 .saturating_add(T::DbWeight::get().reads(8))
100 .saturating_add(T::DbWeight::get().writes(5))
101 }
102 /// Storage: `Benchmark::Override` (r:0 w:0)
103 /// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
104 pub(crate) fn reserve_asset_deposited() -> Weight {
105 // Proof Size summary in bytes:
106 // Measured: `0`
107 // Estimated: `0`
108 // Minimum execution time: 18_446_744_073_709_551_000 picoseconds.
109 Weight::from_parts(18_446_744_073_709_551_000, 0)
110 }
111 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
112 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
113 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
114 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
115 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
116 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
117 /// Storage: `Paras::Heads` (r:1 w:0)
118 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
119 /// Storage: `System::Account` (r:2 w:2)
120 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
121 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
122 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
123 pub(crate) fn initiate_reserve_withdraw() -> Weight {
124 // Proof Size summary in bytes:
125 // Measured: `416`
126 // Estimated: `6196`
127 // Minimum execution time: 87_970_000 picoseconds.
128 Weight::from_parts(90_204_000, 6196)
129 .saturating_add(T::DbWeight::get().reads(7))
130 .saturating_add(T::DbWeight::get().writes(4))
131 }
132 /// Storage: `System::Account` (r:1 w:1)
133 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
134 pub(crate) fn receive_teleported_asset() -> Weight {
135 // Proof Size summary in bytes:
136 // Measured: `103`
137 // Estimated: `3593`
138 // Minimum execution time: 33_369_000 picoseconds.
139 Weight::from_parts(34_221_000, 3593)
140 .saturating_add(T::DbWeight::get().reads(1))
141 .saturating_add(T::DbWeight::get().writes(1))
142 }
143 /// Storage: `System::Account` (r:1 w:1)
144 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
145 pub(crate) fn deposit_asset() -> Weight {
146 // Proof Size summary in bytes:
147 // Measured: `0`
148 // Estimated: `3593`
149 // Minimum execution time: 25_481_000 picoseconds.
150 Weight::from_parts(26_034_000, 3593)
151 .saturating_add(T::DbWeight::get().reads(1))
152 .saturating_add(T::DbWeight::get().writes(1))
153 }
154 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
155 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
156 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
157 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
158 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
159 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
160 /// Storage: `Paras::Heads` (r:1 w:0)
161 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
162 /// Storage: `System::Account` (r:1 w:1)
163 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
164 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
165 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
166 pub(crate) fn deposit_reserve_asset() -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `212`
169 // Estimated: `3677`
170 // Minimum execution time: 78_649_000 picoseconds.
171 Weight::from_parts(81_856_000, 3677)
172 .saturating_add(T::DbWeight::get().reads(6))
173 .saturating_add(T::DbWeight::get().writes(3))
174 }
175 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
176 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
177 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
178 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
179 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
180 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
181 /// Storage: `Paras::Heads` (r:1 w:0)
182 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
183 /// Storage: `System::Account` (r:1 w:1)
184 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
185 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
186 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
187 pub(crate) fn initiate_teleport() -> Weight {
188 // Proof Size summary in bytes:
189 // Measured: `212`
190 // Estimated: `3677`
191 // Minimum execution time: 80_300_000 picoseconds.
192 Weight::from_parts(82_448_000, 3677)
193 .saturating_add(T::DbWeight::get().reads(6))
194 .saturating_add(T::DbWeight::get().writes(3))
195 }
196 /// Storage: `System::Account` (r:2 w:2)
197 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
198 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
199 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
200 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
201 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
202 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
203 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
204 /// Storage: `Paras::Heads` (r:1 w:0)
205 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
206 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
207 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
208 pub(crate) fn initiate_transfer() -> Weight {
209 // Proof Size summary in bytes:
210 // Measured: `315`
211 // Estimated: `6196`
212 // Minimum execution time: 100_996_000 picoseconds.
213 Weight::from_parts(103_473_000, 6196)
214 .saturating_add(T::DbWeight::get().reads(7))
215 .saturating_add(T::DbWeight::get().writes(4))
216 }
217}