glutton_westend_runtime/weights/pallet_glutton.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 `pallet_glutton`
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: `5e986aeb5bce`, 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/glutton-westend-runtime/glutton_westend_runtime.wasm
31// --pallet=pallet_glutton
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/glutton/glutton-westend/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// --genesis-builder-policy=none
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 `pallet_glutton`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_glutton::WeightInfo for WeightInfo<T> {
54 /// Storage: `Glutton::TrashDataCount` (r:1 w:1)
55 /// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56 /// Storage: `Glutton::TrashData` (r:0 w:1000)
57 /// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
58 /// The range of component `n` is `[0, 1000]`.
59 fn initialize_pallet_grow(n: u32, ) -> Weight {
60 // Proof Size summary in bytes:
61 // Measured: `0`
62 // Estimated: `1489`
63 // Minimum execution time: 4_464_000 picoseconds.
64 Weight::from_parts(4_565_000, 0)
65 .saturating_add(Weight::from_parts(0, 1489))
66 // Standard Error: 2_042
67 .saturating_add(Weight::from_parts(10_243_184, 0).saturating_mul(n.into()))
68 .saturating_add(T::DbWeight::get().reads(1))
69 .saturating_add(T::DbWeight::get().writes(1))
70 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
71 }
72 /// Storage: `Glutton::TrashDataCount` (r:1 w:1)
73 /// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
74 /// Storage: `Glutton::TrashData` (r:0 w:1000)
75 /// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
76 /// The range of component `n` is `[0, 1000]`.
77 fn initialize_pallet_shrink(n: u32, ) -> Weight {
78 // Proof Size summary in bytes:
79 // Measured: `45`
80 // Estimated: `1489`
81 // Minimum execution time: 5_827_000 picoseconds.
82 Weight::from_parts(5_932_000, 0)
83 .saturating_add(Weight::from_parts(0, 1489))
84 // Standard Error: 968
85 .saturating_add(Weight::from_parts(1_160_173, 0).saturating_mul(n.into()))
86 .saturating_add(T::DbWeight::get().reads(1))
87 .saturating_add(T::DbWeight::get().writes(1))
88 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
89 }
90 /// The range of component `i` is `[0, 100000]`.
91 fn waste_ref_time_iter(i: u32, ) -> Weight {
92 // Proof Size summary in bytes:
93 // Measured: `0`
94 // Estimated: `0`
95 // Minimum execution time: 591_000 picoseconds.
96 Weight::from_parts(630_000, 0)
97 .saturating_add(Weight::from_parts(0, 0))
98 // Standard Error: 6
99 .saturating_add(Weight::from_parts(105_274, 0).saturating_mul(i.into()))
100 }
101 /// Storage: `Glutton::TrashData` (r:5000 w:0)
102 /// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
103 /// The range of component `i` is `[0, 5000]`.
104 fn waste_proof_size_some(i: u32, ) -> Weight {
105 // Proof Size summary in bytes:
106 // Measured: `119012 + i * (1022 ±0)`
107 // Estimated: `990 + i * (3016 ±0)`
108 // Minimum execution time: 400_000 picoseconds.
109 Weight::from_parts(379_675_847, 0)
110 .saturating_add(Weight::from_parts(0, 990))
111 // Standard Error: 6_646
112 .saturating_add(Weight::from_parts(6_613_400, 0).saturating_mul(i.into()))
113 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
114 .saturating_add(Weight::from_parts(0, 3016).saturating_mul(i.into()))
115 }
116 /// Storage: `Glutton::Storage` (r:1 w:0)
117 /// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
118 /// Storage: `Glutton::Compute` (r:1 w:0)
119 /// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
120 /// Storage: `Glutton::TrashData` (r:1737 w:0)
121 /// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
122 fn on_idle_high_proof_waste() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `1900454`
125 // Estimated: `5239782`
126 // Minimum execution time: 102_533_081_000 picoseconds.
127 Weight::from_parts(102_884_889_000, 0)
128 .saturating_add(Weight::from_parts(0, 5239782))
129 .saturating_add(T::DbWeight::get().reads(1739))
130 }
131 /// Storage: `Glutton::Storage` (r:1 w:0)
132 /// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
133 /// Storage: `Glutton::Compute` (r:1 w:0)
134 /// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
135 /// Storage: `Glutton::TrashData` (r:5 w:0)
136 /// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
137 fn on_idle_low_proof_waste() -> Weight {
138 // Proof Size summary in bytes:
139 // Measured: `9504`
140 // Estimated: `16070`
141 // Minimum execution time: 101_476_622_000 picoseconds.
142 Weight::from_parts(101_602_882_000, 0)
143 .saturating_add(Weight::from_parts(0, 16070))
144 .saturating_add(T::DbWeight::get().reads(7))
145 }
146 /// Storage: `Glutton::Storage` (r:1 w:0)
147 /// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
148 /// Storage: `Glutton::Compute` (r:1 w:0)
149 /// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
150 fn empty_on_idle() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `0`
153 // Estimated: `1493`
154 // Minimum execution time: 1_633_000 picoseconds.
155 Weight::from_parts(1_804_000, 0)
156 .saturating_add(Weight::from_parts(0, 1493))
157 .saturating_add(T::DbWeight::get().reads(2))
158 }
159 /// Storage: `Glutton::Compute` (r:0 w:1)
160 /// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
161 fn set_compute() -> Weight {
162 // Proof Size summary in bytes:
163 // Measured: `0`
164 // Estimated: `0`
165 // Minimum execution time: 4_212_000 picoseconds.
166 Weight::from_parts(4_339_000, 0)
167 .saturating_add(Weight::from_parts(0, 0))
168 .saturating_add(T::DbWeight::get().writes(1))
169 }
170 /// Storage: `Glutton::Storage` (r:0 w:1)
171 /// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
172 fn set_storage() -> Weight {
173 // Proof Size summary in bytes:
174 // Measured: `0`
175 // Estimated: `0`
176 // Minimum execution time: 4_156_000 picoseconds.
177 Weight::from_parts(4_367_000, 0)
178 .saturating_add(Weight::from_parts(0, 0))
179 .saturating_add(T::DbWeight::get().writes(1))
180 }
181}