referrerpolicy=no-referrer-when-downgrade

collectives_westend_runtime/weights/
pallet_preimage.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_preimage`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `e0f303704c84`, 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/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_preimage
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
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_preimage`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> {
53	/// Storage: `Preimage::StatusFor` (r:1 w:0)
54	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
55	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
56	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
57	/// Storage: `Balances::Holds` (r:1 w:1)
58	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(121), added: 2596, mode: `MaxEncodedLen`)
59	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
60	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
61	/// The range of component `s` is `[0, 4194304]`.
62	fn note_preimage(s: u32, ) -> Weight {
63		// Proof Size summary in bytes:
64		//  Measured:  `4`
65		//  Estimated: `3586`
66		// Minimum execution time: 49_388_000 picoseconds.
67		Weight::from_parts(50_164_000, 0)
68			.saturating_add(Weight::from_parts(0, 3586))
69			// Standard Error: 173
70			.saturating_add(Weight::from_parts(16_897, 0).saturating_mul(s.into()))
71			.saturating_add(T::DbWeight::get().reads(3))
72			.saturating_add(T::DbWeight::get().writes(3))
73	}
74	/// Storage: `Preimage::StatusFor` (r:1 w:0)
75	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
76	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
77	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
78	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
79	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
80	/// The range of component `s` is `[0, 4194304]`.
81	fn note_requested_preimage(s: u32, ) -> Weight {
82		// Proof Size summary in bytes:
83		//  Measured:  `68`
84		//  Estimated: `3556`
85		// Minimum execution time: 16_616_000 picoseconds.
86		Weight::from_parts(16_886_000, 0)
87			.saturating_add(Weight::from_parts(0, 3556))
88			// Standard Error: 172
89			.saturating_add(Weight::from_parts(16_881, 0).saturating_mul(s.into()))
90			.saturating_add(T::DbWeight::get().reads(2))
91			.saturating_add(T::DbWeight::get().writes(2))
92	}
93	/// Storage: `Preimage::StatusFor` (r:1 w:0)
94	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
95	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
96	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
97	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
98	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
99	/// The range of component `s` is `[0, 4194304]`.
100	fn note_no_deposit_preimage(s: u32, ) -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `68`
103		//  Estimated: `3556`
104		// Minimum execution time: 15_632_000 picoseconds.
105		Weight::from_parts(15_946_000, 0)
106			.saturating_add(Weight::from_parts(0, 3556))
107			// Standard Error: 172
108			.saturating_add(Weight::from_parts(16_902, 0).saturating_mul(s.into()))
109			.saturating_add(T::DbWeight::get().reads(2))
110			.saturating_add(T::DbWeight::get().writes(2))
111	}
112	/// Storage: `Preimage::StatusFor` (r:1 w:0)
113	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
114	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
115	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
116	/// Storage: `Balances::Holds` (r:1 w:1)
117	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(121), added: 2596, mode: `MaxEncodedLen`)
118	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
119	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
120	fn unnote_preimage() -> Weight {
121		// Proof Size summary in bytes:
122		//  Measured:  `205`
123		//  Estimated: `3586`
124		// Minimum execution time: 51_926_000 picoseconds.
125		Weight::from_parts(54_251_000, 0)
126			.saturating_add(Weight::from_parts(0, 3586))
127			.saturating_add(T::DbWeight::get().reads(3))
128			.saturating_add(T::DbWeight::get().writes(3))
129	}
130	/// Storage: `Preimage::StatusFor` (r:1 w:0)
131	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
132	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
133	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
134	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
135	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
136	fn unnote_no_deposit_preimage() -> Weight {
137		// Proof Size summary in bytes:
138		//  Measured:  `106`
139		//  Estimated: `3556`
140		// Minimum execution time: 23_075_000 picoseconds.
141		Weight::from_parts(24_053_000, 0)
142			.saturating_add(Weight::from_parts(0, 3556))
143			.saturating_add(T::DbWeight::get().reads(2))
144			.saturating_add(T::DbWeight::get().writes(2))
145	}
146	/// Storage: `Preimage::StatusFor` (r:1 w:0)
147	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
148	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
149	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
150	fn request_preimage() -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `150`
153		//  Estimated: `3556`
154		// Minimum execution time: 19_418_000 picoseconds.
155		Weight::from_parts(20_348_000, 0)
156			.saturating_add(Weight::from_parts(0, 3556))
157			.saturating_add(T::DbWeight::get().reads(2))
158			.saturating_add(T::DbWeight::get().writes(1))
159	}
160	/// Storage: `Preimage::StatusFor` (r:1 w:0)
161	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
162	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
163	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
164	fn request_no_deposit_preimage() -> Weight {
165		// Proof Size summary in bytes:
166		//  Measured:  `106`
167		//  Estimated: `3556`
168		// Minimum execution time: 14_183_000 picoseconds.
169		Weight::from_parts(14_713_000, 0)
170			.saturating_add(Weight::from_parts(0, 3556))
171			.saturating_add(T::DbWeight::get().reads(2))
172			.saturating_add(T::DbWeight::get().writes(1))
173	}
174	/// Storage: `Preimage::StatusFor` (r:1 w:0)
175	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
176	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
177	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
178	fn request_unnoted_preimage() -> Weight {
179		// Proof Size summary in bytes:
180		//  Measured:  `4`
181		//  Estimated: `3556`
182		// Minimum execution time: 15_521_000 picoseconds.
183		Weight::from_parts(15_847_000, 0)
184			.saturating_add(Weight::from_parts(0, 3556))
185			.saturating_add(T::DbWeight::get().reads(2))
186			.saturating_add(T::DbWeight::get().writes(1))
187	}
188	/// Storage: `Preimage::StatusFor` (r:1 w:0)
189	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
190	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
191	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
192	fn request_requested_preimage() -> Weight {
193		// Proof Size summary in bytes:
194		//  Measured:  `68`
195		//  Estimated: `3556`
196		// Minimum execution time: 10_520_000 picoseconds.
197		Weight::from_parts(10_868_000, 0)
198			.saturating_add(Weight::from_parts(0, 3556))
199			.saturating_add(T::DbWeight::get().reads(2))
200			.saturating_add(T::DbWeight::get().writes(1))
201	}
202	/// Storage: `Preimage::StatusFor` (r:1 w:0)
203	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
204	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
205	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
206	/// Storage: `Preimage::PreimageFor` (r:0 w:1)
207	/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `MaxEncodedLen`)
208	fn unrequest_preimage() -> Weight {
209		// Proof Size summary in bytes:
210		//  Measured:  `106`
211		//  Estimated: `3556`
212		// Minimum execution time: 20_938_000 picoseconds.
213		Weight::from_parts(22_474_000, 0)
214			.saturating_add(Weight::from_parts(0, 3556))
215			.saturating_add(T::DbWeight::get().reads(2))
216			.saturating_add(T::DbWeight::get().writes(2))
217	}
218	/// Storage: `Preimage::StatusFor` (r:1 w:0)
219	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
220	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
221	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
222	fn unrequest_unnoted_preimage() -> Weight {
223		// Proof Size summary in bytes:
224		//  Measured:  `68`
225		//  Estimated: `3556`
226		// Minimum execution time: 10_448_000 picoseconds.
227		Weight::from_parts(11_190_000, 0)
228			.saturating_add(Weight::from_parts(0, 3556))
229			.saturating_add(T::DbWeight::get().reads(2))
230			.saturating_add(T::DbWeight::get().writes(1))
231	}
232	/// Storage: `Preimage::StatusFor` (r:1 w:0)
233	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
234	/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
235	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
236	fn unrequest_multi_referenced_preimage() -> Weight {
237		// Proof Size summary in bytes:
238		//  Measured:  `68`
239		//  Estimated: `3556`
240		// Minimum execution time: 10_367_000 picoseconds.
241		Weight::from_parts(10_853_000, 0)
242			.saturating_add(Weight::from_parts(0, 3556))
243			.saturating_add(T::DbWeight::get().reads(2))
244			.saturating_add(T::DbWeight::get().writes(1))
245	}
246	/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
247	/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
248	/// Storage: `System::Account` (r:1023 w:1023)
249	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
250	/// Storage: `Balances::Holds` (r:1023 w:1023)
251	/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(121), added: 2596, mode: `MaxEncodedLen`)
252	/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
253	/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
254	/// The range of component `n` is `[1, 1024]`.
255	fn ensure_updated(n: u32, ) -> Weight {
256		// Proof Size summary in bytes:
257		//  Measured:  `0 + n * (227 ±0)`
258		//  Estimated: `990 + n * (2603 ±0)`
259		// Minimum execution time: 54_455_000 picoseconds.
260		Weight::from_parts(55_985_000, 0)
261			.saturating_add(Weight::from_parts(0, 990))
262			// Standard Error: 34_540
263			.saturating_add(Weight::from_parts(55_843_928, 0).saturating_mul(n.into()))
264			.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
265			.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
266			.saturating_add(Weight::from_parts(0, 2603).saturating_mul(n.into()))
267	}
268}