common_runtime/weights/pallet_xcm_benchmarks_fungible.rs
1
2//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 48.0.0
5//! DATE: 2025-08-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `ip-10-173-5-194`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
8//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// ./scripts/../target/release/frequency
12// benchmark
13// pallet
14// --pallet=pallet_xcm_benchmarks::fungible
15// --extrinsic
16// *
17// --heap-pages=4096
18// --steps=50
19// --repeat=20
20// --output=./scripts/../runtime/common/src/weights
21// --template=./scripts/../.maintain/xcm-bench-template.hbs
22// --additional-trie-layers=3
23// --runtime=./scripts/../target/release/wbuild/frequency-runtime/frequency_runtime.wasm
24// --genesis-builder=runtime
25
26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]
28#![allow(unused_imports)]
29
30use frame_support::{traits::Get, weights::Weight};
31use core::marker::PhantomData;
32
33/// Weights for `pallet_xcm_benchmarks::fungible`.
34pub struct WeightInfo<T>(PhantomData<T>);
35impl<T: frame_system::Config> WeightInfo<T> {
36 // Storage: `ForeignAssets::Asset` (r:1 w:1)
37 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
38 // Storage: `ForeignAssets::Account` (r:1 w:1)
39 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
40 // Storage: `System::Account` (r:1 w:1)
41 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
42 pub fn withdraw_asset() -> Weight {
43 // Proof Size summary in bytes:
44 // Measured: `487`
45 // Estimated: `4768`
46 // Minimum execution time: 87_431_000 picoseconds.
47 Weight::from_parts(90_895_000, 4768)
48 .saturating_add(T::DbWeight::get().reads(3))
49 .saturating_add(T::DbWeight::get().writes(3))
50 }
51 // Storage: `ForeignAssets::Asset` (r:1 w:1)
52 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
53 // Storage: `ForeignAssets::Account` (r:2 w:2)
54 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
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 fn transfer_asset() -> Weight {
58 // Proof Size summary in bytes:
59 // Measured: `386`
60 // Estimated: `7899`
61 // Minimum execution time: 95_095_000 picoseconds.
62 Weight::from_parts(97_829_000, 7899)
63 .saturating_add(T::DbWeight::get().reads(4))
64 .saturating_add(T::DbWeight::get().writes(4))
65 }
66 // Storage: `ForeignAssets::Asset` (r:1 w:1)
67 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
68 // Storage: `ForeignAssets::Account` (r:3 w:3)
69 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
70 // Storage: `System::Account` (r:2 w:2)
71 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
72 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
73 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
74 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
75 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
76 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
77 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
79 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
80 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
81 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
82 pub fn transfer_reserve_asset() -> Weight {
83 // Proof Size summary in bytes:
84 // Measured: `695`
85 // Estimated: `11106`
86 // Minimum execution time: 245_086_000 picoseconds.
87 Weight::from_parts(255_132_000, 11106)
88 .saturating_add(T::DbWeight::get().reads(10))
89 .saturating_add(T::DbWeight::get().writes(8))
90 }
91 pub fn reserve_asset_deposited() -> Weight {
92 // Proof Size summary in bytes:
93 // Measured: `0`
94 // Estimated: `0`
95 // Minimum execution time: 18_000_000 picoseconds.
96 Weight::from_parts(18_540_000, 0)
97 }
98 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
99 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
100 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
101 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
102 // Storage: `ForeignAssets::Asset` (r:1 w:1)
103 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
104 // Storage: `ForeignAssets::Account` (r:2 w:2)
105 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
106 // Storage: `System::Account` (r:1 w:1)
107 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
108 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
109 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
110 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
111 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
112 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
113 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
114 pub fn initiate_reserve_withdraw() -> Weight {
115 // Proof Size summary in bytes:
116 // Measured: `695`
117 // Estimated: `7899`
118 // Minimum execution time: 185_689_000 picoseconds.
119 Weight::from_parts(194_206_000, 7899)
120 .saturating_add(T::DbWeight::get().reads(8))
121 .saturating_add(T::DbWeight::get().writes(6))
122 }
123 // Storage: `System::Account` (r:1 w:1)
124 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
125 pub fn receive_teleported_asset() -> Weight {
126 // Proof Size summary in bytes:
127 // Measured: `103`
128 // Estimated: `4088`
129 // Minimum execution time: 73_322_000 picoseconds.
130 Weight::from_parts(75_973_000, 4088)
131 .saturating_add(T::DbWeight::get().reads(1))
132 .saturating_add(T::DbWeight::get().writes(1))
133 }
134 // Storage: `ForeignAssets::Asset` (r:1 w:1)
135 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
136 // Storage: `ForeignAssets::Account` (r:1 w:1)
137 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
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: `346`
143 // Estimated: `4768`
144 // Minimum execution time: 67_100_000 picoseconds.
145 Weight::from_parts(70_065_000, 4768)
146 .saturating_add(T::DbWeight::get().reads(3))
147 .saturating_add(T::DbWeight::get().writes(3))
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: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
152 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
153 // Storage: `ForeignAssets::Asset` (r:1 w:1)
154 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
155 // Storage: `ForeignAssets::Account` (r:1 w:1)
156 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
157 // Storage: `System::Account` (r:1 w:1)
158 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
159 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
160 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
161 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
162 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
163 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
164 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
165 pub fn deposit_reserve_asset() -> Weight {
166 // Proof Size summary in bytes:
167 // Measured: `552`
168 // Estimated: `4768`
169 // Minimum execution time: 133_656_000 picoseconds.
170 Weight::from_parts(143_429_000, 4768)
171 .saturating_add(T::DbWeight::get().reads(7))
172 .saturating_add(T::DbWeight::get().writes(5))
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: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
177 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
178 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
179 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
180 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
181 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
182 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
183 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
184 pub fn initiate_teleport() -> Weight {
185 // Proof Size summary in bytes:
186 // Measured: `206`
187 // Estimated: `3988`
188 // Minimum execution time: 93_200_000 picoseconds.
189 Weight::from_parts(99_475_000, 3988)
190 .saturating_add(T::DbWeight::get().reads(4))
191 .saturating_add(T::DbWeight::get().writes(2))
192 }
193 // Storage: `ForeignAssets::Asset` (r:1 w:1)
194 // Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
195 // Storage: `ForeignAssets::Account` (r:2 w:2)
196 // Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
197 // Storage: `System::Account` (r:2 w:2)
198 // Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
199 // Storage: `ParachainInfo::ParachainId` (r:1 w:0)
200 // Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
201 // Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
202 // Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
203 // Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
204 // Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
205 // Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
206 // Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
207 // Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
208 // Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
209 pub fn initiate_transfer() -> Weight {
210 // Proof Size summary in bytes:
211 // Measured: `656`
212 // Estimated: `7899`
213 // Minimum execution time: 221_089_000 picoseconds.
214 Weight::from_parts(241_579_000, 7899)
215 .saturating_add(T::DbWeight::get().reads(9))
216 .saturating_add(T::DbWeight::get().writes(7))
217 }
218}