referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
frame_system.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 `frame_system`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
25
26// Executed Command:
27// ./target/production/polkadot-parachain
28// benchmark
29// pallet
30// --chain=asset-hub-next-westend-dev
31// --wasm-execution=compiled
32// --pallet=frame_system
33// --no-storage-info
34// --no-median-slopes
35// --no-min-squares
36// --extrinsic=*
37// --steps=50
38// --repeat=20
39// --json
40// --header=./file_header.txt
41// --output=./parachains/runtimes/assets/asset-hub-next-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 `frame_system`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
54	/// The range of component `b` is `[0, 3932160]`.
55	fn remark(b: u32, ) -> Weight {
56		// Proof Size summary in bytes:
57		//  Measured:  `0`
58		//  Estimated: `0`
59		// Minimum execution time: 2_105_000 picoseconds.
60		Weight::from_parts(2_139_000, 0)
61			.saturating_add(Weight::from_parts(0, 0))
62			// Standard Error: 0
63			.saturating_add(Weight::from_parts(388, 0).saturating_mul(b.into()))
64	}
65	/// The range of component `b` is `[0, 3932160]`.
66	fn remark_with_event(b: u32, ) -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `0`
69		//  Estimated: `0`
70		// Minimum execution time: 7_540_000 picoseconds.
71		Weight::from_parts(7_767_000, 0)
72			.saturating_add(Weight::from_parts(0, 0))
73			// Standard Error: 2
74			.saturating_add(Weight::from_parts(1_730, 0).saturating_mul(b.into()))
75	}
76	/// Storage: `System::Digest` (r:1 w:1)
77	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
78	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
79	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
80	fn set_heap_pages() -> Weight {
81		// Proof Size summary in bytes:
82		//  Measured:  `0`
83		//  Estimated: `1485`
84		// Minimum execution time: 3_980_000 picoseconds.
85		Weight::from_parts(4_120_000, 0)
86			.saturating_add(Weight::from_parts(0, 1485))
87			.saturating_add(T::DbWeight::get().reads(1))
88			.saturating_add(T::DbWeight::get().writes(2))
89	}
90	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
91	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
93	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
95	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
96	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
97	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
98	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
99	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
101	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
102	fn set_code() -> Weight {
103		// Proof Size summary in bytes:
104		//  Measured:  `156`
105		//  Estimated: `1641`
106		// Minimum execution time: 102_511_794_000 picoseconds.
107		Weight::from_parts(105_688_965_000, 0)
108			.saturating_add(Weight::from_parts(0, 1641))
109			.saturating_add(T::DbWeight::get().reads(4))
110			.saturating_add(T::DbWeight::get().writes(3))
111	}
112	/// Storage: `Skipped::Metadata` (r:0 w:0)
113	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
114	/// The range of component `i` is `[0, 1000]`.
115	fn set_storage(i: u32, ) -> Weight {
116		// Proof Size summary in bytes:
117		//  Measured:  `0`
118		//  Estimated: `0`
119		// Minimum execution time: 2_241_000 picoseconds.
120		Weight::from_parts(2_329_000, 0)
121			.saturating_add(Weight::from_parts(0, 0))
122			// Standard Error: 2_336
123			.saturating_add(Weight::from_parts(756_084, 0).saturating_mul(i.into()))
124			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
125	}
126	/// Storage: `Skipped::Metadata` (r:0 w:0)
127	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
128	/// The range of component `i` is `[0, 1000]`.
129	fn kill_storage(i: u32, ) -> Weight {
130		// Proof Size summary in bytes:
131		//  Measured:  `0`
132		//  Estimated: `0`
133		// Minimum execution time: 2_233_000 picoseconds.
134		Weight::from_parts(2_295_000, 0)
135			.saturating_add(Weight::from_parts(0, 0))
136			// Standard Error: 990
137			.saturating_add(Weight::from_parts(573_213, 0).saturating_mul(i.into()))
138			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
139	}
140	/// Storage: `Skipped::Metadata` (r:0 w:0)
141	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
142	/// The range of component `p` is `[0, 1000]`.
143	fn kill_prefix(p: u32, ) -> Weight {
144		// Proof Size summary in bytes:
145		//  Measured:  `83 + p * (69 ±0)`
146		//  Estimated: `86 + p * (70 ±0)`
147		// Minimum execution time: 3_990_000 picoseconds.
148		Weight::from_parts(4_110_000, 0)
149			.saturating_add(Weight::from_parts(0, 86))
150			// Standard Error: 1_782
151			.saturating_add(Weight::from_parts(1_220_573, 0).saturating_mul(p.into()))
152			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
153			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
154			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
155	}
156	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
157	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
158	fn authorize_upgrade() -> Weight {
159		// Proof Size summary in bytes:
160		//  Measured:  `0`
161		//  Estimated: `0`
162		// Minimum execution time: 33_027_000 picoseconds.
163		Weight::from_parts(33_027_000, 0)
164			.saturating_add(Weight::from_parts(0, 0))
165			.saturating_add(T::DbWeight::get().writes(1))
166	}
167	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
168	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
169	/// Storage: `System::Digest` (r:1 w:1)
170	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
171	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
172	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
173	fn apply_authorized_upgrade() -> Weight {
174		// Proof Size summary in bytes:
175		//  Measured:  `22`
176		//  Estimated: `1518`
177		// Minimum execution time: 118_101_992_000 picoseconds.
178		Weight::from_parts(118_101_992_000, 0)
179			.saturating_add(Weight::from_parts(0, 1518))
180			.saturating_add(T::DbWeight::get().reads(2))
181			.saturating_add(T::DbWeight::get().writes(3))
182	}
183}