referrerpolicy=no-referrer-when-downgrade

asset_hub_westend_runtime/weights/
pallet_preimage.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_preimage`
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_preimage
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_preimage`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> {
53	fn ensure_updated(n: u32, ) -> Weight {
54		// Proof Size summary in bytes:
55		//  Measured:  `193 + n * (91 ±0)`
56		//  Estimated: `3593 + n * (2566 ±0)`
57		// Minimum execution time: 2_000_000 picoseconds.
58		Weight::from_parts(2_000_000, 3593)
59			// Standard Error: 13_720
60			.saturating_add(Weight::from_parts(17_309_199, 0).saturating_mul(n.into()))
61			.saturating_add(T::DbWeight::get().reads(1_u64))
62			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
63			.saturating_add(T::DbWeight::get().writes(1_u64))
64			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
65			.saturating_add(Weight::from_parts(0, 2566).saturating_mul(n.into()))
66	}
67
68	/// Storage: Preimage StatusFor (r:1 w:1)
69	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
70	/// Storage: Preimage PreimageFor (r:0 w:1)
71	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
72	/// The range of component `s` is `[0, 4194304]`.
73	fn note_preimage(s: u32, ) -> Weight {
74		// Proof Size summary in bytes:
75		//  Measured:  `181`
76		//  Estimated: `3556`
77		// Minimum execution time: 30_248_000 picoseconds.
78		Weight::from_parts(30_746_000, 0)
79			.saturating_add(Weight::from_parts(0, 3556))
80			// Standard Error: 11
81			.saturating_add(Weight::from_parts(3_563, 0).saturating_mul(s.into()))
82			.saturating_add(T::DbWeight::get().reads(1))
83			.saturating_add(T::DbWeight::get().writes(2))
84	}
85	/// Storage: Preimage StatusFor (r:1 w:1)
86	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
87	/// Storage: Preimage PreimageFor (r:0 w:1)
88	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
89	/// The range of component `s` is `[0, 4194304]`.
90	fn note_requested_preimage(s: u32, ) -> Weight {
91		// Proof Size summary in bytes:
92		//  Measured:  `144`
93		//  Estimated: `3556`
94		// Minimum execution time: 16_748_000 picoseconds.
95		Weight::from_parts(17_025_000, 0)
96			.saturating_add(Weight::from_parts(0, 3556))
97			// Standard Error: 12
98			.saturating_add(Weight::from_parts(3_559, 0).saturating_mul(s.into()))
99			.saturating_add(T::DbWeight::get().reads(1))
100			.saturating_add(T::DbWeight::get().writes(2))
101	}
102	/// Storage: Preimage StatusFor (r:1 w:1)
103	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
104	/// Storage: Preimage PreimageFor (r:0 w:1)
105	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
106	/// The range of component `s` is `[0, 4194304]`.
107	fn note_no_deposit_preimage(s: u32, ) -> Weight {
108		// Proof Size summary in bytes:
109		//  Measured:  `144`
110		//  Estimated: `3556`
111		// Minimum execution time: 16_353_000 picoseconds.
112		Weight::from_parts(16_501_000, 0)
113			.saturating_add(Weight::from_parts(0, 3556))
114			// Standard Error: 11
115			.saturating_add(Weight::from_parts(3_615, 0).saturating_mul(s.into()))
116			.saturating_add(T::DbWeight::get().reads(1))
117			.saturating_add(T::DbWeight::get().writes(2))
118	}
119	/// Storage: Preimage StatusFor (r:1 w:1)
120	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
121	/// Storage: Preimage PreimageFor (r:0 w:1)
122	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
123	fn unnote_preimage() -> Weight {
124		// Proof Size summary in bytes:
125		//  Measured:  `327`
126		//  Estimated: `3556`
127		// Minimum execution time: 52_924_000 picoseconds.
128		Weight::from_parts(77_162_000, 0)
129			.saturating_add(Weight::from_parts(0, 3556))
130			.saturating_add(T::DbWeight::get().reads(1))
131			.saturating_add(T::DbWeight::get().writes(2))
132	}
133	/// Storage: Preimage StatusFor (r:1 w:1)
134	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
135	/// Storage: Preimage PreimageFor (r:0 w:1)
136	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
137	fn unnote_no_deposit_preimage() -> Weight {
138		// Proof Size summary in bytes:
139		//  Measured:  `182`
140		//  Estimated: `3556`
141		// Minimum execution time: 33_660_000 picoseconds.
142		Weight::from_parts(53_453_000, 0)
143			.saturating_add(Weight::from_parts(0, 3556))
144			.saturating_add(T::DbWeight::get().reads(1))
145			.saturating_add(T::DbWeight::get().writes(2))
146	}
147	/// Storage: Preimage StatusFor (r:1 w:1)
148	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
149	fn request_preimage() -> Weight {
150		// Proof Size summary in bytes:
151		//  Measured:  `226`
152		//  Estimated: `3556`
153		// Minimum execution time: 29_363_000 picoseconds.
154		Weight::from_parts(47_779_000, 0)
155			.saturating_add(Weight::from_parts(0, 3556))
156			.saturating_add(T::DbWeight::get().reads(1))
157			.saturating_add(T::DbWeight::get().writes(1))
158	}
159	/// Storage: Preimage StatusFor (r:1 w:1)
160	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
161	fn request_no_deposit_preimage() -> Weight {
162		// Proof Size summary in bytes:
163		//  Measured:  `182`
164		//  Estimated: `3556`
165		// Minimum execution time: 21_614_000 picoseconds.
166		Weight::from_parts(37_598_000, 0)
167			.saturating_add(Weight::from_parts(0, 3556))
168			.saturating_add(T::DbWeight::get().reads(1))
169			.saturating_add(T::DbWeight::get().writes(1))
170	}
171	/// Storage: Preimage StatusFor (r:1 w:1)
172	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
173	fn request_unnoted_preimage() -> Weight {
174		// Proof Size summary in bytes:
175		//  Measured:  `80`
176		//  Estimated: `3556`
177		// Minimum execution time: 28_867_000 picoseconds.
178		Weight::from_parts(41_737_000, 0)
179			.saturating_add(Weight::from_parts(0, 3556))
180			.saturating_add(T::DbWeight::get().reads(1))
181			.saturating_add(T::DbWeight::get().writes(1))
182	}
183	/// Storage: Preimage StatusFor (r:1 w:1)
184	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
185	fn request_requested_preimage() -> Weight {
186		// Proof Size summary in bytes:
187		//  Measured:  `144`
188		//  Estimated: `3556`
189		// Minimum execution time: 11_595_000 picoseconds.
190		Weight::from_parts(16_316_000, 0)
191			.saturating_add(Weight::from_parts(0, 3556))
192			.saturating_add(T::DbWeight::get().reads(1))
193			.saturating_add(T::DbWeight::get().writes(1))
194	}
195	/// Storage: Preimage StatusFor (r:1 w:1)
196	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
197	/// Storage: Preimage PreimageFor (r:0 w:1)
198	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
199	fn unrequest_preimage() -> Weight {
200		// Proof Size summary in bytes:
201		//  Measured:  `182`
202		//  Estimated: `3556`
203		// Minimum execution time: 33_521_000 picoseconds.
204		Weight::from_parts(50_094_000, 0)
205			.saturating_add(Weight::from_parts(0, 3556))
206			.saturating_add(T::DbWeight::get().reads(1))
207			.saturating_add(T::DbWeight::get().writes(2))
208	}
209	/// Storage: Preimage StatusFor (r:1 w:1)
210	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
211	fn unrequest_unnoted_preimage() -> Weight {
212		// Proof Size summary in bytes:
213		//  Measured:  `144`
214		//  Estimated: `3556`
215		// Minimum execution time: 11_048_000 picoseconds.
216		Weight::from_parts(15_393_000, 0)
217			.saturating_add(Weight::from_parts(0, 3556))
218			.saturating_add(T::DbWeight::get().reads(1))
219			.saturating_add(T::DbWeight::get().writes(1))
220	}
221	/// Storage: Preimage StatusFor (r:1 w:1)
222	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
223	fn unrequest_multi_referenced_preimage() -> Weight {
224		// Proof Size summary in bytes:
225		//  Measured:  `144`
226		//  Estimated: `3556`
227		// Minimum execution time: 11_983_000 picoseconds.
228		Weight::from_parts(14_983_000, 0)
229			.saturating_add(Weight::from_parts(0, 3556))
230			.saturating_add(T::DbWeight::get().reads(1))
231			.saturating_add(T::DbWeight::get().writes(1))
232	}
233}