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