moonbase_runtime/weights/
frame_system.rs

1// Copyright 2025 Moonbeam foundation
2// This file is part of Moonbeam.
3
4// Moonbeam 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// Moonbeam 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 Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16
17
18//! Autogenerated weights for `frame_system`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.0.0
21//! DATE: 2025-12-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `ip-10-0-0-198`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
24//! WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
25
26// Executed Command:
27// ./frame-omni-bencher
28// v1
29// benchmark
30// pallet
31// --runtime=./target/production/wbuild/moonbase-runtime/moonbase_runtime.wasm
32// --genesis-builder=runtime
33// --genesis-builder-preset=development
34// --steps=50
35// --repeat=20
36// --pallet=frame_system
37// --extrinsic=*
38// --wasm-execution=compiled
39// --header=./file_header.txt
40// --template=./benchmarking/frame-weight-template.hbs
41// --output=./runtime/moonbase/src/weights
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46
47use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
48use sp_std::marker::PhantomData;
49
50/// Weights 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: 1_923_000 picoseconds.
59		Weight::from_parts(19_523_583, 0)
60			// Standard Error: 2
61			.saturating_add(Weight::from_parts(514, 0).saturating_mul(b.into()))
62	}
63	/// The range of component `b` is `[0, 3932160]`.
64	fn remark_with_event(b: u32, ) -> Weight {
65		// Proof Size summary in bytes:
66		//  Measured:  `0`
67		//  Estimated: `0`
68		// Minimum execution time: 5_587_000 picoseconds.
69		Weight::from_parts(5_753_000, 0)
70			// Standard Error: 2
71			.saturating_add(Weight::from_parts(1_879, 0).saturating_mul(b.into()))
72	}
73	/// Storage: `System::Digest` (r:1 w:1)
74	/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
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: `1485`
81		// Minimum execution time: 3_271_000 picoseconds.
82		Weight::from_parts(3_573_000, 1485)
83			.saturating_add(T::DbWeight::get().reads(1_u64))
84			.saturating_add(T::DbWeight::get().writes(2_u64))
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:  `168`
103		//  Estimated: `67035`
104		// Minimum execution time: 104_533_115_000 picoseconds.
105		Weight::from_parts(107_134_774_000, 67035)
106			.saturating_add(T::DbWeight::get().reads(5_u64))
107			.saturating_add(T::DbWeight::get().writes(3_u64))
108	}
109	/// Storage: `Skipped::Metadata` (r:0 w:0)
110	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
111	/// The range of component `i` is `[0, 1000]`.
112	fn set_storage(i: u32, ) -> Weight {
113		// Proof Size summary in bytes:
114		//  Measured:  `0`
115		//  Estimated: `0`
116		// Minimum execution time: 1_893_000 picoseconds.
117		Weight::from_parts(1_982_000, 0)
118			// Standard Error: 2_295
119			.saturating_add(Weight::from_parts(749_265, 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_978_000 picoseconds.
130		Weight::from_parts(2_087_000, 0)
131			// Standard Error: 1_027
132			.saturating_add(Weight::from_parts(563_496, 0).saturating_mul(i.into()))
133			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
134	}
135	/// Storage: `Skipped::Metadata` (r:0 w:0)
136	/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
137	/// The range of component `p` is `[0, 1000]`.
138	fn kill_prefix(p: u32, ) -> Weight {
139		// Proof Size summary in bytes:
140		//  Measured:  `100 + p * (69 ±0)`
141		//  Estimated: `94 + p * (70 ±0)`
142		// Minimum execution time: 3_912_000 picoseconds.
143		Weight::from_parts(4_141_000, 94)
144			// Standard Error: 1_259
145			.saturating_add(Weight::from_parts(1_273_659, 0).saturating_mul(p.into()))
146			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
147			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
148			.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
149	}
150	/// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
151	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
152	fn authorize_upgrade() -> Weight {
153		// Proof Size summary in bytes:
154		//  Measured:  `0`
155		//  Estimated: `0`
156		// Minimum execution time: 9_598_000 picoseconds.
157		Weight::from_parts(10_407_000, 0)
158			.saturating_add(T::DbWeight::get().writes(1_u64))
159	}
160	/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
161	/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
162	/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
163	/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
164	/// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
165	/// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
166	/// Storage: `ParachainSystem::UpgradeRestrictionSignal` (r:1 w:0)
167	/// Proof: `ParachainSystem::UpgradeRestrictionSignal` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
168	/// Storage: `ParachainSystem::PendingValidationCode` (r:1 w:1)
169	/// Proof: `ParachainSystem::PendingValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
170	/// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
171	/// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
172	/// Storage: `ParachainSystem::NewValidationCode` (r:0 w:1)
173	/// Proof: `ParachainSystem::NewValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
174	/// Storage: `ParachainSystem::DidSetValidationCode` (r:0 w:1)
175	/// Proof: `ParachainSystem::DidSetValidationCode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
176	fn apply_authorized_upgrade() -> Weight {
177		// Proof Size summary in bytes:
178		//  Measured:  `190`
179		//  Estimated: `67035`
180		// Minimum execution time: 107_457_930_000 picoseconds.
181		Weight::from_parts(109_942_925_000, 67035)
182			.saturating_add(T::DbWeight::get().reads(6_u64))
183			.saturating_add(T::DbWeight::get().writes(4_u64))
184	}
185}