topsoil_core/system/weights.rs
1// This file is part of Soil.
2
3// Copyright (C) Soil contributors.
4// Copyright (C) Parity Technologies (UK) Ltd.
5// SPDX-License-Identifier: Apache-2.0 OR GPL-3.0-or-later WITH Classpath-exception-2.0
6
7//! Autogenerated weights for `topsoil_system`
8//!
9//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
10//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
11//! WORST CASE MAP SIZE: `1000000`
12//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
13//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
14
15// Executed Command:
16// frame-omni-bencher
17// v1
18// benchmark
19// pallet
20// --extrinsic=*
21// --runtime=target/production/wbuild/soil-test-staging-node-runtime/soil_test_staging_node_runtime.wasm
22// --pallet=topsoil_system
23// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER
24// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/system/src/weights.rs
25// --wasm-execution=compiled
26// --steps=50
27// --repeat=20
28// --heap-pages=4096
29// --template=substrate/.maintain/frame-weight-template.hbs
30// --no-storage-info
31// --no-min-squares
32// --no-median-slopes
33// --genesis-builder-policy=none
34// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,plant_nomination_pools,plant_remark,plant_transaction_storage,plant_election_provider_multi_block,plant_election_provider_multi_block::signed,plant_election_provider_multi_block::unsigned,plant_election_provider_multi_block::verifier
35
36#![cfg_attr(rustfmt, rustfmt_skip)]
37#![allow(unused_parens)]
38#![allow(unused_imports)]
39#![allow(missing_docs)]
40#![allow(dead_code)]
41
42use topsoil_core::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
43use core::marker::PhantomData;
44
45/// Weight functions needed for `topsoil_system`.
46pub trait WeightInfo {
47 fn remark(b: u32, ) -> Weight;
48 fn remark_with_event(b: u32, ) -> Weight;
49 fn set_heap_pages() -> Weight;
50 fn set_code() -> Weight;
51 fn set_storage(i: u32, ) -> Weight;
52 fn kill_storage(i: u32, ) -> Weight;
53 fn kill_prefix(p: u32, ) -> Weight;
54 fn authorize_upgrade() -> Weight;
55 fn apply_authorized_upgrade() -> Weight;
56}
57
58/// Weights for `topsoil_system` using the Substrate node and recommended hardware.
59pub struct SubstrateWeight<T>(PhantomData<T>);
60impl<T: crate::system::Config> WeightInfo for SubstrateWeight<T> {
61 /// The range of component `b` is `[0, 3932160]`.
62 fn remark(b: u32, ) -> Weight {
63 // Proof Size summary in bytes:
64 // Measured: `0`
65 // Estimated: `0`
66 // Minimum execution time: 1_518_000 picoseconds.
67 Weight::from_parts(1_586_000, 0)
68 // Standard Error: 122
69 .saturating_add(Weight::from_parts(10_920, 0).saturating_mul(b.into()))
70 }
71 /// The range of component `b` is `[0, 3932160]`.
72 fn remark_with_event(b: u32, ) -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `0`
75 // Estimated: `0`
76 // Minimum execution time: 4_558_000 picoseconds.
77 Weight::from_parts(4_725_000, 0)
78 // Standard Error: 120
79 .saturating_add(Weight::from_parts(12_386, 0).saturating_mul(b.into()))
80 }
81 /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
82 /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
83 fn set_heap_pages() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `0`
86 // Estimated: `0`
87 // Minimum execution time: 2_639_000 picoseconds.
88 Weight::from_parts(2_836_000, 0)
89 .saturating_add(T::DbWeight::get().writes(1_u64))
90 }
91 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
92 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
93 /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
94 /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
95 fn set_code() -> Weight {
96 // Proof Size summary in bytes:
97 // Measured: `0`
98 // Estimated: `67035`
99 // Minimum execution time: 161_314_402_000 picoseconds.
100 Weight::from_parts(164_247_810_000, 67035)
101 .saturating_add(T::DbWeight::get().reads(1_u64))
102 .saturating_add(T::DbWeight::get().writes(1_u64))
103 }
104 /// Storage: `Skipped::Metadata` (r:0 w:0)
105 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
106 /// The range of component `i` is `[0, 1000]`.
107 fn set_storage(i: u32, ) -> Weight {
108 // Proof Size summary in bytes:
109 // Measured: `0`
110 // Estimated: `0`
111 // Minimum execution time: 1_518_000 picoseconds.
112 Weight::from_parts(1_565_000, 0)
113 // Standard Error: 2_255
114 .saturating_add(Weight::from_parts(733_648, 0).saturating_mul(i.into()))
115 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
116 }
117 /// Storage: `Skipped::Metadata` (r:0 w:0)
118 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
119 /// The range of component `i` is `[0, 1000]`.
120 fn kill_storage(i: u32, ) -> Weight {
121 // Proof Size summary in bytes:
122 // Measured: `0`
123 // Estimated: `0`
124 // Minimum execution time: 1_583_000 picoseconds.
125 Weight::from_parts(1_624_000, 0)
126 // Standard Error: 1_360
127 .saturating_add(Weight::from_parts(566_903, 0).saturating_mul(i.into()))
128 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
129 }
130 /// Storage: `Skipped::Metadata` (r:0 w:0)
131 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
132 /// The range of component `p` is `[0, 1000]`.
133 fn kill_prefix(p: u32, ) -> Weight {
134 // Proof Size summary in bytes:
135 // Measured: `12 + p * (69 ±0)`
136 // Estimated: `0 + p * (70 ±0)`
137 // Minimum execution time: 2_884_000 picoseconds.
138 Weight::from_parts(2_964_000, 0)
139 // Standard Error: 1_896
140 .saturating_add(Weight::from_parts(1_340_742, 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: 12_466_000 picoseconds.
152 Weight::from_parts(15_570_000, 0)
153 .saturating_add(T::DbWeight::get().writes(1_u64))
154 }
155 /// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
156 /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
157 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
158 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
159 /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
160 /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
161 fn apply_authorized_upgrade() -> Weight {
162 // Proof Size summary in bytes:
163 // Measured: `21`
164 // Estimated: `67035`
165 // Minimum execution time: 163_673_542_000 picoseconds.
166 Weight::from_parts(166_858_158_000, 67035)
167 .saturating_add(T::DbWeight::get().reads(2_u64))
168 .saturating_add(T::DbWeight::get().writes(2_u64))
169 }
170}
171
172// For backwards compatibility and tests.
173impl WeightInfo for () {
174 /// The range of component `b` is `[0, 3932160]`.
175 fn remark(b: u32, ) -> Weight {
176 // Proof Size summary in bytes:
177 // Measured: `0`
178 // Estimated: `0`
179 // Minimum execution time: 1_518_000 picoseconds.
180 Weight::from_parts(1_586_000, 0)
181 // Standard Error: 122
182 .saturating_add(Weight::from_parts(10_920, 0).saturating_mul(b.into()))
183 }
184 /// The range of component `b` is `[0, 3932160]`.
185 fn remark_with_event(b: u32, ) -> Weight {
186 // Proof Size summary in bytes:
187 // Measured: `0`
188 // Estimated: `0`
189 // Minimum execution time: 4_558_000 picoseconds.
190 Weight::from_parts(4_725_000, 0)
191 // Standard Error: 120
192 .saturating_add(Weight::from_parts(12_386, 0).saturating_mul(b.into()))
193 }
194 /// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
195 /// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
196 fn set_heap_pages() -> Weight {
197 // Proof Size summary in bytes:
198 // Measured: `0`
199 // Estimated: `0`
200 // Minimum execution time: 2_639_000 picoseconds.
201 Weight::from_parts(2_836_000, 0)
202 .saturating_add(RocksDbWeight::get().writes(1_u64))
203 }
204 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
205 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
206 /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
207 /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
208 fn set_code() -> Weight {
209 // Proof Size summary in bytes:
210 // Measured: `0`
211 // Estimated: `67035`
212 // Minimum execution time: 161_314_402_000 picoseconds.
213 Weight::from_parts(164_247_810_000, 67035)
214 .saturating_add(RocksDbWeight::get().reads(1_u64))
215 .saturating_add(RocksDbWeight::get().writes(1_u64))
216 }
217 /// Storage: `Skipped::Metadata` (r:0 w:0)
218 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
219 /// The range of component `i` is `[0, 1000]`.
220 fn set_storage(i: u32, ) -> Weight {
221 // Proof Size summary in bytes:
222 // Measured: `0`
223 // Estimated: `0`
224 // Minimum execution time: 1_518_000 picoseconds.
225 Weight::from_parts(1_565_000, 0)
226 // Standard Error: 2_255
227 .saturating_add(Weight::from_parts(733_648, 0).saturating_mul(i.into()))
228 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
229 }
230 /// Storage: `Skipped::Metadata` (r:0 w:0)
231 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
232 /// The range of component `i` is `[0, 1000]`.
233 fn kill_storage(i: u32, ) -> Weight {
234 // Proof Size summary in bytes:
235 // Measured: `0`
236 // Estimated: `0`
237 // Minimum execution time: 1_583_000 picoseconds.
238 Weight::from_parts(1_624_000, 0)
239 // Standard Error: 1_360
240 .saturating_add(Weight::from_parts(566_903, 0).saturating_mul(i.into()))
241 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
242 }
243 /// Storage: `Skipped::Metadata` (r:0 w:0)
244 /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
245 /// The range of component `p` is `[0, 1000]`.
246 fn kill_prefix(p: u32, ) -> Weight {
247 // Proof Size summary in bytes:
248 // Measured: `12 + p * (69 ±0)`
249 // Estimated: `0 + p * (70 ±0)`
250 // Minimum execution time: 2_884_000 picoseconds.
251 Weight::from_parts(2_964_000, 0)
252 // Standard Error: 1_896
253 .saturating_add(Weight::from_parts(1_340_742, 0).saturating_mul(p.into()))
254 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
255 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
256 .saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
257 }
258 /// Storage: `System::AuthorizedUpgrade` (r:0 w:1)
259 /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
260 fn authorize_upgrade() -> Weight {
261 // Proof Size summary in bytes:
262 // Measured: `0`
263 // Estimated: `0`
264 // Minimum execution time: 12_466_000 picoseconds.
265 Weight::from_parts(15_570_000, 0)
266 .saturating_add(RocksDbWeight::get().writes(1_u64))
267 }
268 /// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
269 /// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
270 /// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
271 /// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
272 /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
273 /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
274 fn apply_authorized_upgrade() -> Weight {
275 // Proof Size summary in bytes:
276 // Measured: `21`
277 // Estimated: `67035`
278 // Minimum execution time: 163_673_542_000 picoseconds.
279 Weight::from_parts(166_858_158_000, 67035)
280 .saturating_add(RocksDbWeight::get().reads(2_u64))
281 .saturating_add(RocksDbWeight::get().writes(2_u64))
282 }
283}