referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
frame_system.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `frame_system`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=frame_system
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
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_046_000 picoseconds.
60		Weight::from_parts(2_092_000, 0)
61			.saturating_add(Weight::from_parts(0, 0))
62			// Standard Error: 160
63			.saturating_add(Weight::from_parts(14_296, 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: 6_343_000 picoseconds.
71		Weight::from_parts(6_529_000, 0)
72			.saturating_add(Weight::from_parts(0, 0))
73			// Standard Error: 158
74			.saturating_add(Weight::from_parts(15_724, 0).saturating_mul(b.into()))
75	}
76	/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
77	/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
78	fn set_heap_pages() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `0`
81		//  Estimated: `0`
82		// Minimum execution time: 3_611_000 picoseconds.
83		Weight::from_parts(3_856_000, 0)
84			.saturating_add(Weight::from_parts(0, 0))
85			.saturating_add(T::DbWeight::get().writes(1))
86	}
87	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
88	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
89	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
90	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
91	fn set_code() -> Weight {
92		// Proof Size summary in bytes:
93		//  Measured:  `4`
94		//  Estimated: `67035`
95		// Minimum execution time: 186_708_046_000 picoseconds.
96		Weight::from_parts(188_430_007_000, 0)
97			.saturating_add(Weight::from_parts(0, 67035))
98			.saturating_add(T::DbWeight::get().reads(1))
99			.saturating_add(T::DbWeight::get().writes(1))
100	}
101	/// Storage: `Skipped::Metadata` (r:0 w:0)
102	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
103	/// The range of component `i` is `[0, 1000]`.
104	fn set_storage(i: u32, ) -> Weight {
105		// Proof Size summary in bytes:
106		//  Measured:  `0`
107		//  Estimated: `0`
108		// Minimum execution time: 2_067_000 picoseconds.
109		Weight::from_parts(2_183_000, 0)
110			.saturating_add(Weight::from_parts(0, 0))
111			// Standard Error: 2_517
112			.saturating_add(Weight::from_parts(739_980, 0).saturating_mul(i.into()))
113			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
114	}
115	/// Storage: `Skipped::Metadata` (r:0 w:0)
116	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
117	/// The range of component `i` is `[0, 1000]`.
118	fn kill_storage(i: u32, ) -> Weight {
119		// Proof Size summary in bytes:
120		//  Measured:  `0`
121		//  Estimated: `0`
122		// Minimum execution time: 1_996_000 picoseconds.
123		Weight::from_parts(2_130_000, 0)
124			.saturating_add(Weight::from_parts(0, 0))
125			// Standard Error: 1_375
126			.saturating_add(Weight::from_parts(575_422, 0).saturating_mul(i.into()))
127			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
128	}
129	/// Storage: `Skipped::Metadata` (r:0 w:0)
130	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
131	/// The range of component `p` is `[0, 1000]`.
132	fn kill_prefix(p: u32, ) -> Weight {
133		// Proof Size summary in bytes:
134		//  Measured:  `69 + p * (69 ±0)`
135		//  Estimated: `81 + p * (70 ±0)`
136		// Minimum execution time: 3_947_000 picoseconds.
137		Weight::from_parts(4_152_000, 0)
138			.saturating_add(Weight::from_parts(0, 81))
139			// Standard Error: 2_193
140			.saturating_add(Weight::from_parts(1_392_480, 0).saturating_mul(p.into()))
141			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
142			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
143			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
144	}
145	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
146	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
147	fn authorize_upgrade() -> Weight {
148		// Proof Size summary in bytes:
149		//  Measured:  `0`
150		//  Estimated: `0`
151		// Minimum execution time: 17_968_000 picoseconds.
152		Weight::from_parts(19_353_000, 0)
153			.saturating_add(Weight::from_parts(0, 0))
154			.saturating_add(T::DbWeight::get().writes(1))
155	}
156	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
157	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
158	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
159	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
160	/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
161	/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
162	fn apply_authorized_upgrade() -> Weight {
163		// Proof Size summary in bytes:
164		//  Measured:  `26`
165		//  Estimated: `67035`
166		// Minimum execution time: 190_893_853_000 picoseconds.
167		Weight::from_parts(193_181_367_000, 0)
168			.saturating_add(Weight::from_parts(0, 67035))
169			.saturating_add(T::DbWeight::get().reads(2))
170			.saturating_add(T::DbWeight::get().writes(2))
171	}
172}