asset_hub_westend_runtime/weights/pallet_vesting.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17//! Autogenerated weights for `pallet_vesting`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2023-06-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `runner--ss9ysm1-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
24
25// Executed Command:
26// ./target/production/polkadot
27// benchmark
28// pallet
29// --chain=westend-dev
30// --steps=50
31// --repeat=20
32// --no-storage-info
33// --no-median-slopes
34// --no-min-squares
35// --pallet=pallet_vesting
36// --extrinsic=*
37// --execution=wasm
38// --wasm-execution=compiled
39// --header=./file_header.txt
40// --output=./runtime/westend/src/weights/
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_vesting`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_vesting::WeightInfo for WeightInfo<T> {
53 /// Storage: Vesting Vesting (r:1 w:1)
54 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
55 /// Storage: Balances Locks (r:1 w:1)
56 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
57 /// Storage: Balances Freezes (r:1 w:0)
58 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
59 /// The range of component `l` is `[0, 49]`.
60 /// The range of component `s` is `[1, 28]`.
61 fn vest_locked(l: u32, s: u32, ) -> Weight {
62 // Proof Size summary in bytes:
63 // Measured: `348 + l * (25 ±0) + s * (36 ±0)`
64 // Estimated: `4764`
65 // Minimum execution time: 35_225_000 picoseconds.
66 Weight::from_parts(34_420_748, 0)
67 .saturating_add(Weight::from_parts(0, 4764))
68 // Standard Error: 2_341
69 .saturating_add(Weight::from_parts(41_794, 0).saturating_mul(l.into()))
70 // Standard Error: 4_166
71 .saturating_add(Weight::from_parts(114_507, 0).saturating_mul(s.into()))
72 .saturating_add(T::DbWeight::get().reads(3))
73 .saturating_add(T::DbWeight::get().writes(2))
74 }
75 /// Storage: Vesting Vesting (r:1 w:1)
76 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
77 /// Storage: Balances Locks (r:1 w:1)
78 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
79 /// Storage: Balances Freezes (r:1 w:0)
80 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
81 /// The range of component `l` is `[0, 49]`.
82 /// The range of component `s` is `[1, 28]`.
83 fn vest_unlocked(l: u32, s: u32, ) -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `348 + l * (25 ±0) + s * (36 ±0)`
86 // Estimated: `4764`
87 // Minimum execution time: 38_507_000 picoseconds.
88 Weight::from_parts(38_552_717, 0)
89 .saturating_add(Weight::from_parts(0, 4764))
90 // Standard Error: 2_406
91 .saturating_add(Weight::from_parts(42_332, 0).saturating_mul(l.into()))
92 // Standard Error: 4_282
93 .saturating_add(Weight::from_parts(67_638, 0).saturating_mul(s.into()))
94 .saturating_add(T::DbWeight::get().reads(3))
95 .saturating_add(T::DbWeight::get().writes(2))
96 }
97 /// Storage: Vesting Vesting (r:1 w:1)
98 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
99 /// Storage: Balances Locks (r:1 w:1)
100 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
101 /// Storage: Balances Freezes (r:1 w:0)
102 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
103 /// Storage: System Account (r:1 w:1)
104 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
105 /// The range of component `l` is `[0, 49]`.
106 /// The range of component `s` is `[1, 28]`.
107 fn vest_other_locked(l: u32, s: u32, ) -> Weight {
108 // Proof Size summary in bytes:
109 // Measured: `451 + l * (25 ±0) + s * (36 ±0)`
110 // Estimated: `4764`
111 // Minimum execution time: 36_919_000 picoseconds.
112 Weight::from_parts(35_087_984, 0)
113 .saturating_add(Weight::from_parts(0, 4764))
114 // Standard Error: 2_435
115 .saturating_add(Weight::from_parts(66_131, 0).saturating_mul(l.into()))
116 // Standard Error: 4_333
117 .saturating_add(Weight::from_parts(125_178, 0).saturating_mul(s.into()))
118 .saturating_add(T::DbWeight::get().reads(4))
119 .saturating_add(T::DbWeight::get().writes(3))
120 }
121 /// Storage: Vesting Vesting (r:1 w:1)
122 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
123 /// Storage: Balances Locks (r:1 w:1)
124 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
125 /// Storage: Balances Freezes (r:1 w:0)
126 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
127 /// Storage: System Account (r:1 w:1)
128 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
129 /// The range of component `l` is `[0, 49]`.
130 /// The range of component `s` is `[1, 28]`.
131 fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
132 // Proof Size summary in bytes:
133 // Measured: `451 + l * (25 ±0) + s * (36 ±0)`
134 // Estimated: `4764`
135 // Minimum execution time: 40_393_000 picoseconds.
136 Weight::from_parts(39_522_987, 0)
137 .saturating_add(Weight::from_parts(0, 4764))
138 // Standard Error: 1_958
139 .saturating_add(Weight::from_parts(46_626, 0).saturating_mul(l.into()))
140 // Standard Error: 3_484
141 .saturating_add(Weight::from_parts(94_547, 0).saturating_mul(s.into()))
142 .saturating_add(T::DbWeight::get().reads(4))
143 .saturating_add(T::DbWeight::get().writes(3))
144 }
145 /// Storage: Vesting Vesting (r:1 w:1)
146 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
147 /// Storage: System Account (r:1 w:1)
148 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
149 /// Storage: Balances Locks (r:1 w:1)
150 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
151 /// Storage: Balances Freezes (r:1 w:0)
152 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
153 /// The range of component `l` is `[0, 49]`.
154 /// The range of component `s` is `[0, 27]`.
155 fn vested_transfer(l: u32, s: u32, ) -> Weight {
156 // Proof Size summary in bytes:
157 // Measured: `522 + l * (25 ±0) + s * (36 ±0)`
158 // Estimated: `4764`
159 // Minimum execution time: 72_925_000 picoseconds.
160 Weight::from_parts(75_858_529, 0)
161 .saturating_add(Weight::from_parts(0, 4764))
162 // Standard Error: 3_995
163 .saturating_add(Weight::from_parts(70_032, 0).saturating_mul(l.into()))
164 // Standard Error: 7_108
165 .saturating_add(Weight::from_parts(160_507, 0).saturating_mul(s.into()))
166 .saturating_add(T::DbWeight::get().reads(4))
167 .saturating_add(T::DbWeight::get().writes(3))
168 }
169 /// Storage: Vesting Vesting (r:1 w:1)
170 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
171 /// Storage: System Account (r:2 w:2)
172 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
173 /// Storage: Balances Locks (r:1 w:1)
174 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
175 /// Storage: Balances Freezes (r:1 w:0)
176 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
177 /// The range of component `l` is `[0, 49]`.
178 /// The range of component `s` is `[0, 27]`.
179 fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
180 // Proof Size summary in bytes:
181 // Measured: `625 + l * (25 ±0) + s * (36 ±0)`
182 // Estimated: `6196`
183 // Minimum execution time: 74_405_000 picoseconds.
184 Weight::from_parts(78_253_087, 0)
185 .saturating_add(Weight::from_parts(0, 6196))
186 // Standard Error: 3_708
187 .saturating_add(Weight::from_parts(56_748, 0).saturating_mul(l.into()))
188 // Standard Error: 6_598
189 .saturating_add(Weight::from_parts(146_713, 0).saturating_mul(s.into()))
190 .saturating_add(T::DbWeight::get().reads(5))
191 .saturating_add(T::DbWeight::get().writes(4))
192 }
193 /// Storage: Vesting Vesting (r:1 w:1)
194 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
195 /// Storage: Balances Locks (r:1 w:1)
196 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
197 /// Storage: Balances Freezes (r:1 w:0)
198 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
199 /// Storage: System Account (r:1 w:1)
200 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
201 /// The range of component `l` is `[0, 49]`.
202 /// The range of component `s` is `[2, 28]`.
203 fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `449 + l * (25 ±0) + s * (36 ±0)`
206 // Estimated: `4764`
207 // Minimum execution time: 37_715_000 picoseconds.
208 Weight::from_parts(36_483_330, 0)
209 .saturating_add(Weight::from_parts(0, 4764))
210 // Standard Error: 2_146
211 .saturating_add(Weight::from_parts(55_976, 0).saturating_mul(l.into()))
212 // Standard Error: 3_964
213 .saturating_add(Weight::from_parts(116_455, 0).saturating_mul(s.into()))
214 .saturating_add(T::DbWeight::get().reads(4))
215 .saturating_add(T::DbWeight::get().writes(3))
216 }
217 /// Storage: Vesting Vesting (r:1 w:1)
218 /// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
219 /// Storage: Balances Locks (r:1 w:1)
220 /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
221 /// Storage: Balances Freezes (r:1 w:0)
222 /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
223 /// Storage: System Account (r:1 w:1)
224 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
225 /// The range of component `l` is `[0, 49]`.
226 /// The range of component `s` is `[2, 28]`.
227 fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
228 // Proof Size summary in bytes:
229 // Measured: `449 + l * (25 ±0) + s * (36 ±0)`
230 // Estimated: `4764`
231 // Minimum execution time: 42_102_000 picoseconds.
232 Weight::from_parts(41_671_515, 0)
233 .saturating_add(Weight::from_parts(0, 4764))
234 // Standard Error: 2_743
235 .saturating_add(Weight::from_parts(47_496, 0).saturating_mul(l.into()))
236 // Standard Error: 5_065
237 .saturating_add(Weight::from_parts(95_785, 0).saturating_mul(s.into()))
238 .saturating_add(T::DbWeight::get().reads(4))
239 .saturating_add(T::DbWeight::get().writes(3))
240 }
241
242 /// Storage: `Vesting::Vesting` (r:1 w:1)
243 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
244 /// Storage: `Balances::Locks` (r:1 w:1)
245 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
246 /// Storage: `Balances::Freezes` (r:1 w:0)
247 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
248 /// Storage: `System::Account` (r:1 w:1)
249 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
250 /// The range of component `l` is `[0, 49]`.
251 /// The range of component `s` is `[2, 28]`.
252 fn force_remove_vesting_schedule(l: u32, s: u32) -> Weight {
253 // Proof Size summary in bytes:
254 // Measured: `555 + l * (25 ±0) + s * (36 ±0)`
255 // Estimated: `4764`
256 // Minimum execution time: 41_497_000 picoseconds.
257 Weight::from_parts(38_763_834, 4764)
258 // Standard Error: 2_030
259 .saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
260 // Standard Error: 3_750
261 .saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
262 .saturating_add(T::DbWeight::get().reads(4_u64))
263 .saturating_add(T::DbWeight::get().writes(3_u64))
264 }
265}