referrerpolicy=no-referrer-when-downgrade

collectives_westend_runtime/weights/
frame_system.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 `frame_system`
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=frame_system
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 `frame_system`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
53	/// The range of component `b` is `[0, 3932160]`.
54	fn remark(b: u32, ) -> Weight {
55		// Proof Size summary in bytes:
56		//  Measured:  `0`
57		//  Estimated: `0`
58		// Minimum execution time: 2_073_000 picoseconds.
59		Weight::from_parts(2_155_000, 0)
60			.saturating_add(Weight::from_parts(0, 0))
61			// Standard Error: 157
62			.saturating_add(Weight::from_parts(14_103, 0).saturating_mul(b.into()))
63	}
64	/// The range of component `b` is `[0, 3932160]`.
65	fn remark_with_event(b: u32, ) -> Weight {
66		// Proof Size summary in bytes:
67		//  Measured:  `0`
68		//  Estimated: `0`
69		// Minimum execution time: 6_065_000 picoseconds.
70		Weight::from_parts(6_260_000, 0)
71			.saturating_add(Weight::from_parts(0, 0))
72			// Standard Error: 151
73			.saturating_add(Weight::from_parts(15_933, 0).saturating_mul(b.into()))
74	}
75	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
76	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
77	fn set_heap_pages() -> Weight {
78		// Proof Size summary in bytes:
79		//  Measured:  `0`
80		//  Estimated: `0`
81		// Minimum execution time: 3_388_000 picoseconds.
82		Weight::from_parts(3_669_000, 0)
83			.saturating_add(Weight::from_parts(0, 0))
84			.saturating_add(T::DbWeight::get().writes(1))
85	}
86	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
87	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
89	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
91	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
93	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
95	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
97	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98	fn set_code() -> Weight {
99		// Proof Size summary in bytes:
100		//  Measured:  `164`
101		//  Estimated: `1649`
102		// Minimum execution time: 181_369_683_000 picoseconds.
103		Weight::from_parts(183_602_069_000, 0)
104			.saturating_add(Weight::from_parts(0, 1649))
105			.saturating_add(T::DbWeight::get().reads(4))
106			.saturating_add(T::DbWeight::get().writes(3))
107	}
108	/// Storage: `Skipped::Metadata` (r:0 w:0)
109	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
110	/// The range of component `i` is `[0, 1000]`.
111	fn set_storage(i: u32, ) -> Weight {
112		// Proof Size summary in bytes:
113		//  Measured:  `0`
114		//  Estimated: `0`
115		// Minimum execution time: 2_058_000 picoseconds.
116		Weight::from_parts(2_195_000, 0)
117			.saturating_add(Weight::from_parts(0, 0))
118			// Standard Error: 2_092
119			.saturating_add(Weight::from_parts(717_860, 0).saturating_mul(i.into()))
120			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
121	}
122	/// Storage: `Skipped::Metadata` (r:0 w:0)
123	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
124	/// The range of component `i` is `[0, 1000]`.
125	fn kill_storage(i: u32, ) -> Weight {
126		// Proof Size summary in bytes:
127		//  Measured:  `0`
128		//  Estimated: `0`
129		// Minimum execution time: 1_952_000 picoseconds.
130		Weight::from_parts(2_044_000, 0)
131			.saturating_add(Weight::from_parts(0, 0))
132			// Standard Error: 946
133			.saturating_add(Weight::from_parts(556_402, 0).saturating_mul(i.into()))
134			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
135	}
136	/// Storage: `Skipped::Metadata` (r:0 w:0)
137	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
138	/// The range of component `p` is `[0, 1000]`.
139	fn kill_prefix(p: u32, ) -> Weight {
140		// Proof Size summary in bytes:
141		//  Measured:  `99 + p * (69 ±0)`
142		//  Estimated: `97 + p * (70 ±0)`
143		// Minimum execution time: 4_145_000 picoseconds.
144		Weight::from_parts(4_278_000, 0)
145			.saturating_add(Weight::from_parts(0, 97))
146			// Standard Error: 1_307
147			.saturating_add(Weight::from_parts(1_311_588, 0).saturating_mul(p.into()))
148			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
149			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
150			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
151	}
152	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
153	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
154	fn authorize_upgrade() -> Weight {
155		// Proof Size summary in bytes:
156		//  Measured:  `0`
157		//  Estimated: `0`
158		// Minimum execution time: 10_570_000 picoseconds.
159		Weight::from_parts(10_988_000, 0)
160			.saturating_add(Weight::from_parts(0, 0))
161			.saturating_add(T::DbWeight::get().writes(1))
162	}
163	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
164	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
165	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
166	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
167	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
168	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
169	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
170	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
172	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
174	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
175	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
176	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
177	fn apply_authorized_upgrade() -> Weight {
178		// Proof Size summary in bytes:
179		//  Measured:  `186`
180		//  Estimated: `1671`
181		// Minimum execution time: 184_883_922_000 picoseconds.
182		Weight::from_parts(187_106_209_000, 0)
183			.saturating_add(Weight::from_parts(0, 1671))
184			.saturating_add(T::DbWeight::get().reads(5))
185			.saturating_add(T::DbWeight::get().writes(4))
186	}
187}