rococo_runtime/weights/pallet_vesting.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_vesting`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/rococo-runtime/rococo_runtime.wasm
32// --pallet=pallet_vesting
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
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#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_vesting`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_vesting::WeightInfo for WeightInfo<T> {
54 /// Storage: `Vesting::Vesting` (r:1 w:1)
55 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
56 /// Storage: `Balances::Locks` (r:1 w:1)
57 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
58 /// Storage: `Balances::Freezes` (r:1 w:0)
59 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
60 /// The range of component `l` is `[0, 49]`.
61 /// The range of component `s` is `[1, 28]`.
62 fn vest_locked(l: u32, s: u32, ) -> Weight {
63 // Proof Size summary in bytes:
64 // Measured: `277 + l * (25 ±0) + s * (36 ±0)`
65 // Estimated: `4764`
66 // Minimum execution time: 34_644_000 picoseconds.
67 Weight::from_parts(34_294_075, 0)
68 .saturating_add(Weight::from_parts(0, 4764))
69 // Standard Error: 2_502
70 .saturating_add(Weight::from_parts(33_997, 0).saturating_mul(l.into()))
71 // Standard Error: 4_451
72 .saturating_add(Weight::from_parts(82_158, 0).saturating_mul(s.into()))
73 .saturating_add(T::DbWeight::get().reads(3))
74 .saturating_add(T::DbWeight::get().writes(2))
75 }
76 /// Storage: `Vesting::Vesting` (r:1 w:1)
77 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
78 /// Storage: `Balances::Locks` (r:1 w:1)
79 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
80 /// Storage: `Balances::Freezes` (r:1 w:0)
81 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
82 /// The range of component `l` is `[0, 49]`.
83 /// The range of component `s` is `[1, 28]`.
84 fn vest_unlocked(l: u32, s: u32, ) -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `277 + l * (25 ±0) + s * (36 ±0)`
87 // Estimated: `4764`
88 // Minimum execution time: 37_051_000 picoseconds.
89 Weight::from_parts(37_406_778, 0)
90 .saturating_add(Weight::from_parts(0, 4764))
91 // Standard Error: 2_143
92 .saturating_add(Weight::from_parts(25_479, 0).saturating_mul(l.into()))
93 // Standard Error: 3_813
94 .saturating_add(Weight::from_parts(59_478, 0).saturating_mul(s.into()))
95 .saturating_add(T::DbWeight::get().reads(3))
96 .saturating_add(T::DbWeight::get().writes(2))
97 }
98 /// Storage: `Vesting::Vesting` (r:1 w:1)
99 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
100 /// Storage: `Balances::Locks` (r:1 w:1)
101 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
102 /// Storage: `Balances::Freezes` (r:1 w:0)
103 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
104 /// Storage: `System::Account` (r:1 w:1)
105 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
106 /// The range of component `l` is `[0, 49]`.
107 /// The range of component `s` is `[1, 28]`.
108 fn vest_other_locked(l: u32, s: u32, ) -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `380 + l * (25 ±0) + s * (36 ±0)`
111 // Estimated: `4764`
112 // Minimum execution time: 36_942_000 picoseconds.
113 Weight::from_parts(36_397_510, 0)
114 .saturating_add(Weight::from_parts(0, 4764))
115 // Standard Error: 2_194
116 .saturating_add(Weight::from_parts(43_154, 0).saturating_mul(l.into()))
117 // Standard Error: 3_904
118 .saturating_add(Weight::from_parts(78_209, 0).saturating_mul(s.into()))
119 .saturating_add(T::DbWeight::get().reads(4))
120 .saturating_add(T::DbWeight::get().writes(3))
121 }
122 /// Storage: `Vesting::Vesting` (r:1 w:1)
123 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
124 /// Storage: `Balances::Locks` (r:1 w:1)
125 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
126 /// Storage: `Balances::Freezes` (r:1 w:0)
127 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
128 /// Storage: `System::Account` (r:1 w:1)
129 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
130 /// The range of component `l` is `[0, 49]`.
131 /// The range of component `s` is `[1, 28]`.
132 fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
133 // Proof Size summary in bytes:
134 // Measured: `380 + l * (25 ±0) + s * (36 ±0)`
135 // Estimated: `4764`
136 // Minimum execution time: 39_129_000 picoseconds.
137 Weight::from_parts(39_172_044, 0)
138 .saturating_add(Weight::from_parts(0, 4764))
139 // Standard Error: 2_803
140 .saturating_add(Weight::from_parts(33_251, 0).saturating_mul(l.into()))
141 // Standard Error: 4_988
142 .saturating_add(Weight::from_parts(83_808, 0).saturating_mul(s.into()))
143 .saturating_add(T::DbWeight::get().reads(4))
144 .saturating_add(T::DbWeight::get().writes(3))
145 }
146 /// Storage: `Vesting::Vesting` (r:1 w:1)
147 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
148 /// Storage: `System::Account` (r:1 w:1)
149 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
150 /// Storage: `Balances::Locks` (r:1 w:1)
151 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
152 /// Storage: `Balances::Freezes` (r:1 w:0)
153 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
154 /// The range of component `l` is `[0, 49]`.
155 /// The range of component `s` is `[0, 27]`.
156 fn vested_transfer(l: u32, s: u32, ) -> Weight {
157 // Proof Size summary in bytes:
158 // Measured: `451 + l * (25 ±0) + s * (36 ±0)`
159 // Estimated: `4764`
160 // Minimum execution time: 75_395_000 picoseconds.
161 Weight::from_parts(77_352_873, 0)
162 .saturating_add(Weight::from_parts(0, 4764))
163 // Standard Error: 4_000
164 .saturating_add(Weight::from_parts(33_084, 0).saturating_mul(l.into()))
165 // Standard Error: 7_117
166 .saturating_add(Weight::from_parts(78_022, 0).saturating_mul(s.into()))
167 .saturating_add(T::DbWeight::get().reads(4))
168 .saturating_add(T::DbWeight::get().writes(3))
169 }
170 /// Storage: `Vesting::Vesting` (r:1 w:1)
171 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
172 /// Storage: `System::Account` (r:2 w:2)
173 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
174 /// Storage: `Balances::Locks` (r:1 w:1)
175 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
176 /// Storage: `Balances::Freezes` (r:1 w:0)
177 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
178 /// The range of component `l` is `[0, 49]`.
179 /// The range of component `s` is `[0, 27]`.
180 fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
181 // Proof Size summary in bytes:
182 // Measured: `554 + l * (25 ±0) + s * (36 ±0)`
183 // Estimated: `6196`
184 // Minimum execution time: 76_648_000 picoseconds.
185 Weight::from_parts(77_970_331, 0)
186 .saturating_add(Weight::from_parts(0, 6196))
187 // Standard Error: 3_437
188 .saturating_add(Weight::from_parts(45_910, 0).saturating_mul(l.into()))
189 // Standard Error: 6_116
190 .saturating_add(Weight::from_parts(105_157, 0).saturating_mul(s.into()))
191 .saturating_add(T::DbWeight::get().reads(5))
192 .saturating_add(T::DbWeight::get().writes(4))
193 }
194 /// Storage: `Vesting::Vesting` (r:1 w:1)
195 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
196 /// Storage: `Balances::Locks` (r:1 w:1)
197 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
198 /// Storage: `Balances::Freezes` (r:1 w:0)
199 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
200 /// The range of component `l` is `[0, 49]`.
201 /// The range of component `s` is `[2, 28]`.
202 fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
203 // Proof Size summary in bytes:
204 // Measured: `277 + l * (25 ±0) + s * (36 ±0)`
205 // Estimated: `4764`
206 // Minimum execution time: 34_725_000 picoseconds.
207 Weight::from_parts(35_867_784, 0)
208 .saturating_add(Weight::from_parts(0, 4764))
209 // Standard Error: 2_233
210 .saturating_add(Weight::from_parts(30_025, 0).saturating_mul(l.into()))
211 // Standard Error: 4_125
212 .saturating_add(Weight::from_parts(56_964, 0).saturating_mul(s.into()))
213 .saturating_add(T::DbWeight::get().reads(3))
214 .saturating_add(T::DbWeight::get().writes(2))
215 }
216 /// Storage: `Vesting::Vesting` (r:1 w:1)
217 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
218 /// Storage: `Balances::Locks` (r:1 w:1)
219 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
220 /// Storage: `Balances::Freezes` (r:1 w:0)
221 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
222 /// The range of component `l` is `[0, 49]`.
223 /// The range of component `s` is `[2, 28]`.
224 fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
225 // Proof Size summary in bytes:
226 // Measured: `277 + l * (25 ±0) + s * (36 ±0)`
227 // Estimated: `4764`
228 // Minimum execution time: 37_897_000 picoseconds.
229 Weight::from_parts(37_679_187, 0)
230 .saturating_add(Weight::from_parts(0, 4764))
231 // Standard Error: 2_178
232 .saturating_add(Weight::from_parts(37_935, 0).saturating_mul(l.into()))
233 // Standard Error: 4_022
234 .saturating_add(Weight::from_parts(89_640, 0).saturating_mul(s.into()))
235 .saturating_add(T::DbWeight::get().reads(3))
236 .saturating_add(T::DbWeight::get().writes(2))
237 }
238 /// Storage: `Vesting::Vesting` (r:1 w:1)
239 /// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
240 /// Storage: `Balances::Locks` (r:1 w:1)
241 /// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
242 /// Storage: `Balances::Freezes` (r:1 w:0)
243 /// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(65), added: 2540, mode: `MaxEncodedLen`)
244 /// Storage: `System::Account` (r:1 w:1)
245 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
246 /// The range of component `l` is `[0, 49]`.
247 /// The range of component `s` is `[2, 28]`.
248 fn force_remove_vesting_schedule(l: u32, s: u32, ) -> Weight {
249 // Proof Size summary in bytes:
250 // Measured: `451 + l * (25 ±0) + s * (36 ±0)`
251 // Estimated: `4764`
252 // Minimum execution time: 42_163_000 picoseconds.
253 Weight::from_parts(42_827_949, 0)
254 .saturating_add(Weight::from_parts(0, 4764))
255 // Standard Error: 2_205
256 .saturating_add(Weight::from_parts(28_809, 0).saturating_mul(l.into()))
257 // Standard Error: 4_073
258 .saturating_add(Weight::from_parts(67_463, 0).saturating_mul(s.into()))
259 .saturating_add(T::DbWeight::get().reads(4))
260 .saturating_add(T::DbWeight::get().writes(3))
261 }
262}