referrerpolicy=no-referrer-when-downgrade

people_rococo_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: `afc679a858d4`, 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/people-rococo-runtime/people_rococo_runtime.wasm
31// --pallet=frame_system
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/people/people-rococo/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_085_000 picoseconds.
59		Weight::from_parts(2_147_000, 0)
60			.saturating_add(Weight::from_parts(0, 0))
61			// Standard Error: 120
62			.saturating_add(Weight::from_parts(10_681, 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: 5_538_000 picoseconds.
70		Weight::from_parts(5_833_000, 0)
71			.saturating_add(Weight::from_parts(0, 0))
72			// Standard Error: 120
73			.saturating_add(Weight::from_parts(12_003, 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_260_000 picoseconds.
82		Weight::from_parts(3_516_000, 0)
83			.saturating_add(Weight::from_parts(0, 0))
84			.saturating_add(T::DbWeight::get().writes(1))
85	}
86	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
87	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
88	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
89	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
90	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
91	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
93	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
95	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
97	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
99	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100	fn set_code() -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `169`
103		//  Estimated: `67035`
104		// Minimum execution time: 160_743_369_000 picoseconds.
105		Weight::from_parts(164_022_588_000, 0)
106			.saturating_add(Weight::from_parts(0, 67035))
107			.saturating_add(T::DbWeight::get().reads(5))
108			.saturating_add(T::DbWeight::get().writes(3))
109	}
110	/// Storage: `Skipped::Metadata` (r:0 w:0)
111	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
112	/// The range of component `i` is `[0, 1000]`.
113	fn set_storage(i: u32, ) -> Weight {
114		// Proof Size summary in bytes:
115		//  Measured:  `0`
116		//  Estimated: `0`
117		// Minimum execution time: 2_082_000 picoseconds.
118		Weight::from_parts(2_202_000, 0)
119			.saturating_add(Weight::from_parts(0, 0))
120			// Standard Error: 2_221
121			.saturating_add(Weight::from_parts(715_536, 0).saturating_mul(i.into()))
122			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
123	}
124	/// Storage: `Skipped::Metadata` (r:0 w:0)
125	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
126	/// The range of component `i` is `[0, 1000]`.
127	fn kill_storage(i: u32, ) -> Weight {
128		// Proof Size summary in bytes:
129		//  Measured:  `0`
130		//  Estimated: `0`
131		// Minimum execution time: 2_076_000 picoseconds.
132		Weight::from_parts(2_148_000, 0)
133			.saturating_add(Weight::from_parts(0, 0))
134			// Standard Error: 880
135			.saturating_add(Weight::from_parts(554_607, 0).saturating_mul(i.into()))
136			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
137	}
138	/// Storage: `Skipped::Metadata` (r:0 w:0)
139	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
140	/// The range of component `p` is `[0, 1000]`.
141	fn kill_prefix(p: u32, ) -> Weight {
142		// Proof Size summary in bytes:
143		//  Measured:  `82 + p * (69 ±0)`
144		//  Estimated: `78 + p * (70 ±0)`
145		// Minimum execution time: 4_139_000 picoseconds.
146		Weight::from_parts(4_248_000, 0)
147			.saturating_add(Weight::from_parts(0, 78))
148			// Standard Error: 1_318
149			.saturating_add(Weight::from_parts(1_312_979, 0).saturating_mul(p.into()))
150			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
151			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
152			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
153	}
154	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
155	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
156	fn authorize_upgrade() -> Weight {
157		// Proof Size summary in bytes:
158		//  Measured:  `0`
159		//  Estimated: `0`
160		// Minimum execution time: 10_114_000 picoseconds.
161		Weight::from_parts(10_379_000, 0)
162			.saturating_add(Weight::from_parts(0, 0))
163			.saturating_add(T::DbWeight::get().writes(1))
164	}
165	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
166	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
167	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
168	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
169	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
170	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
172	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
173	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
174	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
175	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
176	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
177	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
178	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
179	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
180	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
181	fn apply_authorized_upgrade() -> Weight {
182		// Proof Size summary in bytes:
183		//  Measured:  `191`
184		//  Estimated: `67035`
185		// Minimum execution time: 163_855_657_000 picoseconds.
186		Weight::from_parts(166_326_130_000, 0)
187			.saturating_add(Weight::from_parts(0, 67035))
188			.saturating_add(T::DbWeight::get().reads(6))
189			.saturating_add(T::DbWeight::get().writes(4))
190	}
191}