referrerpolicy=no-referrer-when-downgrade

westend_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: `3a2e9ae8a8f5`, 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/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_vesting
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/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(67), added: 2542, 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:  `345 + l * (25 ±0) + s * (36 ±0)`
65		//  Estimated: `4764`
66		// Minimum execution time: 38_225_000 picoseconds.
67		Weight::from_parts(37_860_470, 0)
68			.saturating_add(Weight::from_parts(0, 4764))
69			// Standard Error: 1_479
70			.saturating_add(Weight::from_parts(41_149, 0).saturating_mul(l.into()))
71			// Standard Error: 2_631
72			.saturating_add(Weight::from_parts(76_064, 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(67), added: 2542, 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:  `345 + l * (25 ±0) + s * (36 ±0)`
87		//  Estimated: `4764`
88		// Minimum execution time: 40_682_000 picoseconds.
89		Weight::from_parts(40_558_815, 0)
90			.saturating_add(Weight::from_parts(0, 4764))
91			// Standard Error: 1_473
92			.saturating_add(Weight::from_parts(35_138, 0).saturating_mul(l.into()))
93			// Standard Error: 2_620
94			.saturating_add(Weight::from_parts(72_425, 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(67), added: 2542, 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:  `448 + l * (25 ±0) + s * (36 ±0)`
111		//  Estimated: `4764`
112		// Minimum execution time: 40_813_000 picoseconds.
113		Weight::from_parts(40_248_990, 0)
114			.saturating_add(Weight::from_parts(0, 4764))
115			// Standard Error: 1_925
116			.saturating_add(Weight::from_parts(47_778, 0).saturating_mul(l.into()))
117			// Standard Error: 3_425
118			.saturating_add(Weight::from_parts(88_421, 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(67), added: 2542, 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:  `448 + l * (25 ±0) + s * (36 ±0)`
135		//  Estimated: `4764`
136		// Minimum execution time: 43_330_000 picoseconds.
137		Weight::from_parts(43_588_745, 0)
138			.saturating_add(Weight::from_parts(0, 4764))
139			// Standard Error: 2_075
140			.saturating_add(Weight::from_parts(35_838, 0).saturating_mul(l.into()))
141			// Standard Error: 3_693
142			.saturating_add(Weight::from_parts(73_951, 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(67), added: 2542, 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:  `519 + l * (25 ±0) + s * (36 ±0)`
159		//  Estimated: `4764`
160		// Minimum execution time: 80_026_000 picoseconds.
161		Weight::from_parts(82_148_674, 0)
162			.saturating_add(Weight::from_parts(0, 4764))
163			// Standard Error: 3_243
164			.saturating_add(Weight::from_parts(30_866, 0).saturating_mul(l.into()))
165			// Standard Error: 5_770
166			.saturating_add(Weight::from_parts(99_755, 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(67), added: 2542, 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:  `622 + l * (25 ±0) + s * (36 ±0)`
183		//  Estimated: `6196`
184		// Minimum execution time: 81_979_000 picoseconds.
185		Weight::from_parts(83_373_383, 0)
186			.saturating_add(Weight::from_parts(0, 6196))
187			// Standard Error: 3_069
188			.saturating_add(Weight::from_parts(49_002, 0).saturating_mul(l.into()))
189			// Standard Error: 5_460
190			.saturating_add(Weight::from_parts(105_265, 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(67), added: 2542, 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:  `345 + l * (25 ±0) + s * (36 ±0)`
205		//  Estimated: `4764`
206		// Minimum execution time: 39_190_000 picoseconds.
207		Weight::from_parts(38_673_517, 0)
208			.saturating_add(Weight::from_parts(0, 4764))
209			// Standard Error: 1_789
210			.saturating_add(Weight::from_parts(38_146, 0).saturating_mul(l.into()))
211			// Standard Error: 3_305
212			.saturating_add(Weight::from_parts(97_870, 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(67), added: 2542, 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:  `345 + l * (25 ±0) + s * (36 ±0)`
227		//  Estimated: `4764`
228		// Minimum execution time: 42_229_000 picoseconds.
229		Weight::from_parts(42_040_081, 0)
230			.saturating_add(Weight::from_parts(0, 4764))
231			// Standard Error: 1_659
232			.saturating_add(Weight::from_parts(38_531, 0).saturating_mul(l.into()))
233			// Standard Error: 3_065
234			.saturating_add(Weight::from_parts(76_527, 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(67), added: 2542, 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:  `519 + l * (25 ±0) + s * (36 ±0)`
251		//  Estimated: `4764`
252		// Minimum execution time: 46_474_000 picoseconds.
253		Weight::from_parts(46_105_020, 0)
254			.saturating_add(Weight::from_parts(0, 4764))
255			// Standard Error: 1_706
256			.saturating_add(Weight::from_parts(39_879, 0).saturating_mul(l.into()))
257			// Standard Error: 3_151
258			.saturating_add(Weight::from_parts(87_824, 0).saturating_mul(s.into()))
259			.saturating_add(T::DbWeight::get().reads(4))
260			.saturating_add(T::DbWeight::get().writes(3))
261	}
262}