pallet_auto_id/weights.rs
1
2//! Autogenerated weights for pallet_auto_id
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5//! DATE: 2024-07-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `mac-mini.local`, CPU: `<UNKNOWN>`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// ./target/release/subspace-node
12// domain
13// benchmark
14// pallet
15// --runtime=./target/release/wbuild/auto-id-domain-runtime/auto_id_domain_runtime.compact.compressed.wasm
16// --steps=50
17// --repeat=20
18// --pallet=pallet_auto_id
19// --extrinsic=*
20// --wasm-execution=compiled
21// --heap-pages=4096
22// --output=./domains/pallets/auto-id/src/weights.rs
23// --template
24// ./frame-weight-template.hbs
25
26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]
28#![allow(unused_imports)]
29
30use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
31use core::marker::PhantomData;
32
33/// Weight functions needed for pallet_auto_id.
34pub trait WeightInfo {
35 fn register_issuer_auto_id() -> Weight;
36 fn register_leaf_auto_id() -> Weight;
37 fn revoke_issuer_auto_id() -> Weight;
38 fn revoke_leaf_auto_id() -> Weight;
39 fn deactivate_auto_id() -> Weight;
40 fn renew_issuer_auto_id() -> Weight;
41 fn renew_leaf_auto_id() -> Weight;
42}
43
44/// Weights for pallet_auto_id using the Substrate node and recommended hardware.
45pub struct SubstrateWeight<T>(PhantomData<T>);
46impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
47 /// Storage: `Timestamp::Now` (r:1 w:0)
48 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
49 /// Storage: `AutoId::AutoIds` (r:1 w:1)
50 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
51 fn register_issuer_auto_id() -> Weight {
52 // Proof Size summary in bytes:
53 // Measured: `36`
54 // Estimated: `3501`
55 // Minimum execution time: 34_000_000 picoseconds.
56 Weight::from_parts(34_000_000, 3501)
57 .saturating_add(T::DbWeight::get().reads(2_u64))
58 .saturating_add(T::DbWeight::get().writes(1_u64))
59 }
60 /// Storage: `Timestamp::Now` (r:1 w:0)
61 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
62 /// Storage: `AutoId::AutoIds` (r:2 w:2)
63 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
64 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:0)
65 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
66 fn register_leaf_auto_id() -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `1284`
69 // Estimated: `7224`
70 // Minimum execution time: 41_000_000 picoseconds.
71 Weight::from_parts(41_000_000, 7224)
72 .saturating_add(T::DbWeight::get().reads(4_u64))
73 .saturating_add(T::DbWeight::get().writes(2_u64))
74 }
75 /// Storage: `AutoId::AutoIds` (r:1 w:1)
76 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
77 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
78 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
79 fn revoke_issuer_auto_id() -> Weight {
80 // Proof Size summary in bytes:
81 // Measured: `1248`
82 // Estimated: `4713`
83 // Minimum execution time: 33_000_000 picoseconds.
84 Weight::from_parts(34_000_000, 4713)
85 .saturating_add(T::DbWeight::get().reads(2_u64))
86 .saturating_add(T::DbWeight::get().writes(2_u64))
87 }
88 /// Storage: `AutoId::AutoIds` (r:2 w:1)
89 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
90 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
91 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
92 fn revoke_leaf_auto_id() -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `2559`
95 // Estimated: `8499`
96 // Minimum execution time: 36_000_000 picoseconds.
97 Weight::from_parts(37_000_000, 8499)
98 .saturating_add(T::DbWeight::get().reads(3_u64))
99 .saturating_add(T::DbWeight::get().writes(2_u64))
100 }
101 /// Storage: `AutoId::AutoIds` (r:1 w:1)
102 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
103 fn deactivate_auto_id() -> Weight {
104 // Proof Size summary in bytes:
105 // Measured: `1248`
106 // Estimated: `4713`
107 // Minimum execution time: 28_000_000 picoseconds.
108 Weight::from_parts(29_000_000, 4713)
109 .saturating_add(T::DbWeight::get().reads(1_u64))
110 .saturating_add(T::DbWeight::get().writes(1_u64))
111 }
112 /// Storage: `Timestamp::Now` (r:1 w:0)
113 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
114 /// Storage: `AutoId::AutoIds` (r:1 w:1)
115 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
116 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
117 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
118 fn renew_issuer_auto_id() -> Weight {
119 // Proof Size summary in bytes:
120 // Measured: `1284`
121 // Estimated: `4749`
122 // Minimum execution time: 39_000_000 picoseconds.
123 Weight::from_parts(40_000_000, 4749)
124 .saturating_add(T::DbWeight::get().reads(3_u64))
125 .saturating_add(T::DbWeight::get().writes(2_u64))
126 }
127 /// Storage: `Timestamp::Now` (r:1 w:0)
128 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
129 /// Storage: `AutoId::AutoIds` (r:2 w:2)
130 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
131 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
132 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
133 fn renew_leaf_auto_id() -> Weight {
134 // Proof Size summary in bytes:
135 // Measured: `2595`
136 // Estimated: `8535`
137 // Minimum execution time: 47_000_000 picoseconds.
138 Weight::from_parts(47_000_000, 8535)
139 .saturating_add(T::DbWeight::get().reads(4_u64))
140 .saturating_add(T::DbWeight::get().writes(3_u64))
141 }
142}
143
144// For backwards compatibility and tests
145impl WeightInfo for () {
146 /// Storage: `Timestamp::Now` (r:1 w:0)
147 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
148 /// Storage: `AutoId::AutoIds` (r:1 w:1)
149 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
150 fn register_issuer_auto_id() -> Weight {
151 // Proof Size summary in bytes:
152 // Measured: `36`
153 // Estimated: `3501`
154 // Minimum execution time: 34_000_000 picoseconds.
155 Weight::from_parts(34_000_000, 3501)
156 .saturating_add(ParityDbWeight::get().reads(2_u64))
157 .saturating_add(ParityDbWeight::get().writes(1_u64))
158 }
159 /// Storage: `Timestamp::Now` (r:1 w:0)
160 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
161 /// Storage: `AutoId::AutoIds` (r:2 w:2)
162 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
163 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:0)
164 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
165 fn register_leaf_auto_id() -> Weight {
166 // Proof Size summary in bytes:
167 // Measured: `1284`
168 // Estimated: `7224`
169 // Minimum execution time: 41_000_000 picoseconds.
170 Weight::from_parts(41_000_000, 7224)
171 .saturating_add(ParityDbWeight::get().reads(4_u64))
172 .saturating_add(ParityDbWeight::get().writes(2_u64))
173 }
174 /// Storage: `AutoId::AutoIds` (r:1 w:1)
175 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
176 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
177 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
178 fn revoke_issuer_auto_id() -> Weight {
179 // Proof Size summary in bytes:
180 // Measured: `1248`
181 // Estimated: `4713`
182 // Minimum execution time: 33_000_000 picoseconds.
183 Weight::from_parts(34_000_000, 4713)
184 .saturating_add(ParityDbWeight::get().reads(2_u64))
185 .saturating_add(ParityDbWeight::get().writes(2_u64))
186 }
187 /// Storage: `AutoId::AutoIds` (r:2 w:1)
188 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
189 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
190 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
191 fn revoke_leaf_auto_id() -> Weight {
192 // Proof Size summary in bytes:
193 // Measured: `2559`
194 // Estimated: `8499`
195 // Minimum execution time: 36_000_000 picoseconds.
196 Weight::from_parts(37_000_000, 8499)
197 .saturating_add(ParityDbWeight::get().reads(3_u64))
198 .saturating_add(ParityDbWeight::get().writes(2_u64))
199 }
200 /// Storage: `AutoId::AutoIds` (r:1 w:1)
201 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
202 fn deactivate_auto_id() -> Weight {
203 // Proof Size summary in bytes:
204 // Measured: `1248`
205 // Estimated: `4713`
206 // Minimum execution time: 28_000_000 picoseconds.
207 Weight::from_parts(29_000_000, 4713)
208 .saturating_add(ParityDbWeight::get().reads(1_u64))
209 .saturating_add(ParityDbWeight::get().writes(1_u64))
210 }
211 /// Storage: `Timestamp::Now` (r:1 w:0)
212 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
213 /// Storage: `AutoId::AutoIds` (r:1 w:1)
214 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
215 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
216 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
217 fn renew_issuer_auto_id() -> Weight {
218 // Proof Size summary in bytes:
219 // Measured: `1284`
220 // Estimated: `4749`
221 // Minimum execution time: 39_000_000 picoseconds.
222 Weight::from_parts(40_000_000, 4749)
223 .saturating_add(ParityDbWeight::get().reads(3_u64))
224 .saturating_add(ParityDbWeight::get().writes(2_u64))
225 }
226 /// Storage: `Timestamp::Now` (r:1 w:0)
227 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
228 /// Storage: `AutoId::AutoIds` (r:2 w:2)
229 /// Proof: `AutoId::AutoIds` (`max_values`: None, `max_size`: None, mode: `Measured`)
230 /// Storage: `AutoId::CertificateRevocationList` (r:1 w:1)
231 /// Proof: `AutoId::CertificateRevocationList` (`max_values`: None, `max_size`: None, mode: `Measured`)
232 fn renew_leaf_auto_id() -> Weight {
233 // Proof Size summary in bytes:
234 // Measured: `2595`
235 // Estimated: `8535`
236 // Minimum execution time: 47_000_000 picoseconds.
237 Weight::from_parts(47_000_000, 8535)
238 .saturating_add(ParityDbWeight::get().reads(4_u64))
239 .saturating_add(ParityDbWeight::get().writes(3_u64))
240 }
241}