pallet_staking_async_parachain_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//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2024-10-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-wmcgzesc-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! WASM-EXECUTION: Compiled, CHAIN: Some("asset-hub-next-westend-dev"), DB CACHE: 1024
25
26// Executed Command:
27// target/production/polkadot-parachain
28// benchmark
29// pallet
30// --steps=50
31// --repeat=20
32// --extrinsic=*
33// --wasm-execution=compiled
34// --heap-pages=4096
35// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
36// --pallet=pallet_xcm_benchmarks::fungible
37// --chain=asset-hub-next-westend-dev
38// --header=./cumulus/file_header.txt
39// --template=./cumulus/templates/xcm-bench-template.hbs
40// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/xcm/
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45
46use frame_support::{traits::Get, weights::Weight};
47use core::marker::PhantomData;
48
49/// Weights for `pallet_xcm_benchmarks::fungible`.
50pub struct WeightInfo<T>(PhantomData<T>);
51impl<T: frame_system::Config> WeightInfo<T> {
52 // Storage: `System::Account` (r:1 w:1)
53 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
54 pub fn withdraw_asset() -> Weight {
55 // Proof Size summary in bytes:
56 // Measured: `101`
57 // Estimated: `3593`
58 // Minimum execution time: 32_698_000 picoseconds.
59 Weight::from_parts(33_530_000, 3593)
60 .saturating_add(T::DbWeight::get().reads(1))
61 .saturating_add(T::DbWeight::get().writes(1))
62 }
63 // Storage: `System::Account` (r:2 w:2)
64 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
65 pub fn transfer_asset() -> Weight {
66 // Proof Size summary in bytes:
67 // Measured: `101`
68 // Estimated: `6196`
69 // Minimum execution time: 41_485_000 picoseconds.
70 Weight::from_parts(41_963_000, 6196)
71 .saturating_add(T::DbWeight::get().reads(2))
72 .saturating_add(T::DbWeight::get().writes(2))
73 }
74 // Storage: `System::Account` (r:3 w:3)
75 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
76 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
77 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
78 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
79 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
80 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
81 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
82 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
83 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
85 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
86 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
87 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
89 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90 pub fn transfer_reserve_asset() -> Weight {
91 // Proof Size summary in bytes:
92 // Measured: `246`
93 // Estimated: `8799`
94 // Minimum execution time: 104_952_000 picoseconds.
95 Weight::from_parts(108_211_000, 8799)
96 .saturating_add(T::DbWeight::get().reads(10))
97 .saturating_add(T::DbWeight::get().writes(5))
98 }
99 pub fn reserve_asset_deposited() -> Weight {
100 // Proof Size summary in bytes:
101 // Measured: `0`
102 // Estimated: `0`
103 // Minimum execution time: 1_154_000 picoseconds.
104 Weight::from_parts(1_238_000, 0)
105 }
106 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
107 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
108 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
109 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
111 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
112 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
113 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
114 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
115 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
116 // Storage: `System::Account` (r:2 w:2)
117 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
118 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
119 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
120 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
121 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
122 pub fn initiate_reserve_withdraw() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `246`
125 // Estimated: `6196`
126 // Minimum execution time: 111_509_000 picoseconds.
127 Weight::from_parts(114_476_000, 6196)
128 .saturating_add(T::DbWeight::get().reads(9))
129 .saturating_add(T::DbWeight::get().writes(4))
130 }
131 pub fn receive_teleported_asset() -> Weight {
132 // Proof Size summary in bytes:
133 // Measured: `0`
134 // Estimated: `0`
135 // Minimum execution time: 2_572_000 picoseconds.
136 Weight::from_parts(2_809_000, 0)
137 }
138 // Storage: `System::Account` (r:1 w:1)
139 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
140 pub fn deposit_asset() -> Weight {
141 // Proof Size summary in bytes:
142 // Measured: `0`
143 // Estimated: `3593`
144 // Minimum execution time: 25_570_000 picoseconds.
145 Weight::from_parts(25_933_000, 3593)
146 .saturating_add(T::DbWeight::get().reads(1))
147 .saturating_add(T::DbWeight::get().writes(1))
148 }
149 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
150 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
151 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
152 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
153 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
154 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
155 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
156 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
157 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
158 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
159 // Storage: `System::Account` (r:2 w:2)
160 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
161 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
162 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
163 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
164 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
165 pub fn deposit_reserve_asset() -> Weight {
166 // Proof Size summary in bytes:
167 // Measured: `145`
168 // Estimated: `6196`
169 // Minimum execution time: 86_148_000 picoseconds.
170 Weight::from_parts(88_170_000, 6196)
171 .saturating_add(T::DbWeight::get().reads(9))
172 .saturating_add(T::DbWeight::get().writes(4))
173 }
174 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
175 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
176 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
177 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
178 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
179 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
180 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
181 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
182 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
183 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
184 // Storage: `System::Account` (r:1 w:1)
185 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
186 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
187 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
188 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
189 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
190 pub fn initiate_teleport() -> Weight {
191 // Proof Size summary in bytes:
192 // Measured: `145`
193 // Estimated: `3610`
194 // Minimum execution time: 55_051_000 picoseconds.
195 Weight::from_parts(56_324_000, 3610)
196 .saturating_add(T::DbWeight::get().reads(8))
197 .saturating_add(T::DbWeight::get().writes(3))
198 }
199 // Storage: `System::Account` (r:2 w:2)
200 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
201 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
202 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
203 // Storage: `ParachainSystem::UpwardDeliveryFeeFactor` (r:1 w:0)
204 // Proof: `ParachainSystem::UpwardDeliveryFeeFactor` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
205 // Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
206 // Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
207 // Storage: `PolkadotXcm::VersionDiscoveryQueue` (r:1 w:1)
208 // Proof: `PolkadotXcm::VersionDiscoveryQueue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
209 // Storage: `PolkadotXcm::SafeXcmVersion` (r:1 w:0)
210 // Proof: `PolkadotXcm::SafeXcmVersion` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
211 // Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
212 // Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
213 // Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
214 // Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
215 pub fn initiate_transfer() -> Weight {
216 // Proof Size summary in bytes:
217 // Measured: `145`
218 // Estimated: `6196`
219 // Minimum execution time: 90_155_000 picoseconds.
220 Weight::from_parts(91_699_000, 6196)
221 .saturating_add(T::DbWeight::get().reads(9))
222 .saturating_add(T::DbWeight::get().writes(4))
223 }
224}