referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_preimage.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_preimage`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-06-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner--ss9ysm1-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
25
26// Executed Command:
27// ./target/production/polkadot
28// benchmark
29// pallet
30// --chain=westend-dev
31// --steps=50
32// --repeat=20
33// --no-storage-info
34// --no-median-slopes
35// --no-min-squares
36// --pallet=pallet_preimage
37// --extrinsic=*
38// --execution=wasm
39// --wasm-execution=compiled
40// --header=./file_header.txt
41// --output=./runtime/westend/src/weights/
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_preimage`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> {
54	fn ensure_updated(n: u32, ) -> Weight {
55		// Proof Size summary in bytes:
56		//  Measured:  `193 + n * (91 ±0)`
57		//  Estimated: `3593 + n * (2566 ±0)`
58		// Minimum execution time: 2_000_000 picoseconds.
59		Weight::from_parts(2_000_000, 3593)
60			// Standard Error: 13_720
61			.saturating_add(Weight::from_parts(17_309_199, 0).saturating_mul(n.into()))
62			.saturating_add(T::DbWeight::get().reads(1_u64))
63			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
64			.saturating_add(T::DbWeight::get().writes(1_u64))
65			.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
66			.saturating_add(Weight::from_parts(0, 2566).saturating_mul(n.into()))
67	}
68
69	/// Storage: Preimage StatusFor (r:1 w:1)
70	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
71	/// Storage: Preimage PreimageFor (r:0 w:1)
72	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
73	/// The range of component `s` is `[0, 4194304]`.
74	fn note_preimage(s: u32, ) -> Weight {
75		// Proof Size summary in bytes:
76		//  Measured:  `181`
77		//  Estimated: `3556`
78		// Minimum execution time: 30_248_000 picoseconds.
79		Weight::from_parts(30_746_000, 0)
80			.saturating_add(Weight::from_parts(0, 3556))
81			// Standard Error: 11
82			.saturating_add(Weight::from_parts(3_563, 0).saturating_mul(s.into()))
83			.saturating_add(T::DbWeight::get().reads(1))
84			.saturating_add(T::DbWeight::get().writes(2))
85	}
86	/// Storage: Preimage StatusFor (r:1 w:1)
87	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
88	/// Storage: Preimage PreimageFor (r:0 w:1)
89	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
90	/// The range of component `s` is `[0, 4194304]`.
91	fn note_requested_preimage(s: u32, ) -> Weight {
92		// Proof Size summary in bytes:
93		//  Measured:  `144`
94		//  Estimated: `3556`
95		// Minimum execution time: 16_748_000 picoseconds.
96		Weight::from_parts(17_025_000, 0)
97			.saturating_add(Weight::from_parts(0, 3556))
98			// Standard Error: 12
99			.saturating_add(Weight::from_parts(3_559, 0).saturating_mul(s.into()))
100			.saturating_add(T::DbWeight::get().reads(1))
101			.saturating_add(T::DbWeight::get().writes(2))
102	}
103	/// Storage: Preimage StatusFor (r:1 w:1)
104	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
105	/// Storage: Preimage PreimageFor (r:0 w:1)
106	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
107	/// The range of component `s` is `[0, 4194304]`.
108	fn note_no_deposit_preimage(s: u32, ) -> Weight {
109		// Proof Size summary in bytes:
110		//  Measured:  `144`
111		//  Estimated: `3556`
112		// Minimum execution time: 16_353_000 picoseconds.
113		Weight::from_parts(16_501_000, 0)
114			.saturating_add(Weight::from_parts(0, 3556))
115			// Standard Error: 11
116			.saturating_add(Weight::from_parts(3_615, 0).saturating_mul(s.into()))
117			.saturating_add(T::DbWeight::get().reads(1))
118			.saturating_add(T::DbWeight::get().writes(2))
119	}
120	/// Storage: Preimage StatusFor (r:1 w:1)
121	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
122	/// Storage: Preimage PreimageFor (r:0 w:1)
123	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
124	fn unnote_preimage() -> Weight {
125		// Proof Size summary in bytes:
126		//  Measured:  `327`
127		//  Estimated: `3556`
128		// Minimum execution time: 52_924_000 picoseconds.
129		Weight::from_parts(77_162_000, 0)
130			.saturating_add(Weight::from_parts(0, 3556))
131			.saturating_add(T::DbWeight::get().reads(1))
132			.saturating_add(T::DbWeight::get().writes(2))
133	}
134	/// Storage: Preimage StatusFor (r:1 w:1)
135	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
136	/// Storage: Preimage PreimageFor (r:0 w:1)
137	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
138	fn unnote_no_deposit_preimage() -> Weight {
139		// Proof Size summary in bytes:
140		//  Measured:  `182`
141		//  Estimated: `3556`
142		// Minimum execution time: 33_660_000 picoseconds.
143		Weight::from_parts(53_453_000, 0)
144			.saturating_add(Weight::from_parts(0, 3556))
145			.saturating_add(T::DbWeight::get().reads(1))
146			.saturating_add(T::DbWeight::get().writes(2))
147	}
148	/// Storage: Preimage StatusFor (r:1 w:1)
149	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
150	fn request_preimage() -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `226`
153		//  Estimated: `3556`
154		// Minimum execution time: 29_363_000 picoseconds.
155		Weight::from_parts(47_779_000, 0)
156			.saturating_add(Weight::from_parts(0, 3556))
157			.saturating_add(T::DbWeight::get().reads(1))
158			.saturating_add(T::DbWeight::get().writes(1))
159	}
160	/// Storage: Preimage StatusFor (r:1 w:1)
161	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
162	fn request_no_deposit_preimage() -> Weight {
163		// Proof Size summary in bytes:
164		//  Measured:  `182`
165		//  Estimated: `3556`
166		// Minimum execution time: 21_614_000 picoseconds.
167		Weight::from_parts(37_598_000, 0)
168			.saturating_add(Weight::from_parts(0, 3556))
169			.saturating_add(T::DbWeight::get().reads(1))
170			.saturating_add(T::DbWeight::get().writes(1))
171	}
172	/// Storage: Preimage StatusFor (r:1 w:1)
173	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
174	fn request_unnoted_preimage() -> Weight {
175		// Proof Size summary in bytes:
176		//  Measured:  `80`
177		//  Estimated: `3556`
178		// Minimum execution time: 28_867_000 picoseconds.
179		Weight::from_parts(41_737_000, 0)
180			.saturating_add(Weight::from_parts(0, 3556))
181			.saturating_add(T::DbWeight::get().reads(1))
182			.saturating_add(T::DbWeight::get().writes(1))
183	}
184	/// Storage: Preimage StatusFor (r:1 w:1)
185	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
186	fn request_requested_preimage() -> Weight {
187		// Proof Size summary in bytes:
188		//  Measured:  `144`
189		//  Estimated: `3556`
190		// Minimum execution time: 11_595_000 picoseconds.
191		Weight::from_parts(16_316_000, 0)
192			.saturating_add(Weight::from_parts(0, 3556))
193			.saturating_add(T::DbWeight::get().reads(1))
194			.saturating_add(T::DbWeight::get().writes(1))
195	}
196	/// Storage: Preimage StatusFor (r:1 w:1)
197	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
198	/// Storage: Preimage PreimageFor (r:0 w:1)
199	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
200	fn unrequest_preimage() -> Weight {
201		// Proof Size summary in bytes:
202		//  Measured:  `182`
203		//  Estimated: `3556`
204		// Minimum execution time: 33_521_000 picoseconds.
205		Weight::from_parts(50_094_000, 0)
206			.saturating_add(Weight::from_parts(0, 3556))
207			.saturating_add(T::DbWeight::get().reads(1))
208			.saturating_add(T::DbWeight::get().writes(2))
209	}
210	/// Storage: Preimage StatusFor (r:1 w:1)
211	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
212	fn unrequest_unnoted_preimage() -> Weight {
213		// Proof Size summary in bytes:
214		//  Measured:  `144`
215		//  Estimated: `3556`
216		// Minimum execution time: 11_048_000 picoseconds.
217		Weight::from_parts(15_393_000, 0)
218			.saturating_add(Weight::from_parts(0, 3556))
219			.saturating_add(T::DbWeight::get().reads(1))
220			.saturating_add(T::DbWeight::get().writes(1))
221	}
222	/// Storage: Preimage StatusFor (r:1 w:1)
223	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
224	fn unrequest_multi_referenced_preimage() -> Weight {
225		// Proof Size summary in bytes:
226		//  Measured:  `144`
227		//  Estimated: `3556`
228		// Minimum execution time: 11_983_000 picoseconds.
229		Weight::from_parts(14_983_000, 0)
230			.saturating_add(Weight::from_parts(0, 3556))
231			.saturating_add(T::DbWeight::get().reads(1))
232			.saturating_add(T::DbWeight::get().writes(1))
233	}
234}