Skip to content

Commit fe579d6

Browse files
ntn-x2Ad96el
andauthored
bench: add benchmarks for new deployments for Peregrine runtime (#820)
I updated the weights with the proper (production) ones for DID, both lookup deployments, both web3name deployments, sudo, and utility pallets. --------- Co-authored-by: ad96el <[email protected]>
1 parent 4148afb commit fe579d6

File tree

7 files changed

+519
-517
lines changed

7 files changed

+519
-517
lines changed

runtimes/peregrine/src/weights/did.rs

Lines changed: 130 additions & 133 deletions
Large diffs are not rendered by default.

runtimes/peregrine/src/weights/pallet_did_lookup.rs

Lines changed: 91 additions & 94 deletions
Large diffs are not rendered by default.

runtimes/peregrine/src/weights/pallet_dot_names.rs

Lines changed: 76 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,19 @@
1919
//! Autogenerated weights for `pallet_dot_names`
2020
//!
2121
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
22-
//! DATE: 2024-11-11, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22+
//! DATE: 2024-11-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
2323
//! WORST CASE MAP SIZE: `1000000`
24-
//! HOSTNAME: `rust-2`, CPU: `12th Gen Intel(R) Core(TM) i9-12900K`
24+
//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz`
2525
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
2626
2727
// Executed Command:
28-
// ./target/debug/kilt-parachain
28+
// ./target/release/kilt-parachain
2929
// benchmark
3030
// pallet
3131
// --heap-pages=4096
3232
// --chain=dev
3333
// --pallet=pallet-dot-names
3434
// --extrinsic=*
35-
// --steps=2
36-
// --repeat=1
37-
// --default-pov-mode=ignored
3835
// --header=HEADER-GPL
3936
// --template=.maintain/runtime-weight-template.hbs
4037
// --output=./runtimes/peregrine/src/weights/
@@ -53,128 +50,134 @@ use pallet_web3_names as pallet_dot_names;
5350
pub struct WeightInfo<T>(PhantomData<T>);
5451
impl<T: frame_system::Config> pallet_dot_names::WeightInfo for WeightInfo<T> {
5552
/// Storage: `DotNames::Names` (r:1 w:1)
56-
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `Ignored`)
53+
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
5754
/// Storage: `DotNames::Owner` (r:1 w:1)
58-
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `Ignored`)
55+
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
5956
/// Storage: `DotNames::Banned` (r:1 w:0)
60-
/// Proof: `DotNames::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `Ignored`)
57+
/// Proof: `DotNames::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
6158
/// Storage: `System::Account` (r:1 w:1)
62-
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `Ignored`)
59+
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
6360
/// Storage: `Balances::Holds` (r:1 w:1)
64-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `Ignored`)
61+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `MaxEncodedLen`)
6562
/// The range of component `n` is `[7, 32]`.
6663
fn claim(_n: u32, ) -> Weight {
6764
// Proof Size summary in bytes:
6865
// Measured: `147`
69-
// Estimated: `990`
70-
// Minimum execution time: 2_034_175_000 picoseconds.
71-
Weight::from_parts(2_047_230_000, 0)
72-
.saturating_add(Weight::from_parts(0, 990))
66+
// Estimated: `3766`
67+
// Minimum execution time: 54_613_000 picoseconds.
68+
Weight::from_parts(55_619_514, 0)
69+
.saturating_add(Weight::from_parts(0, 3766))
7370
.saturating_add(T::DbWeight::get().reads(5))
7471
.saturating_add(T::DbWeight::get().writes(4))
7572
}
7673
/// Storage: `DotNames::Names` (r:1 w:1)
77-
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `Ignored`)
74+
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
7875
/// Storage: `DotNames::Owner` (r:1 w:1)
79-
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `Ignored`)
76+
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
8077
/// Storage: `System::Account` (r:1 w:1)
81-
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `Ignored`)
78+
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
8279
/// Storage: `Balances::Holds` (r:1 w:1)
83-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `Ignored`)
80+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `MaxEncodedLen`)
8481
fn release_by_owner() -> Weight {
8582
// Proof Size summary in bytes:
8683
// Measured: `474`
87-
// Estimated: `990`
88-
// Minimum execution time: 1_503_537_000 picoseconds.
89-
Weight::from_parts(1_503_537_000, 0)
90-
.saturating_add(Weight::from_parts(0, 990))
84+
// Estimated: `3766`
85+
// Minimum execution time: 45_364_000 picoseconds.
86+
Weight::from_parts(45_792_000, 0)
87+
.saturating_add(Weight::from_parts(0, 3766))
9188
.saturating_add(T::DbWeight::get().reads(4))
9289
.saturating_add(T::DbWeight::get().writes(4))
9390
}
9491
/// Storage: `DotNames::Owner` (r:1 w:1)
95-
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `Ignored`)
92+
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
9693
/// Storage: `System::Account` (r:1 w:1)
97-
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `Ignored`)
94+
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
9895
/// Storage: `Balances::Holds` (r:1 w:1)
99-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `Ignored`)
96+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `MaxEncodedLen`)
10097
/// Storage: `DotNames::Names` (r:0 w:1)
101-
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `Ignored`)
98+
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
10299
/// The range of component `n` is `[7, 32]`.
103-
fn reclaim_deposit(_n: u32, ) -> Weight {
100+
fn reclaim_deposit(n: u32, ) -> Weight {
104101
// Proof Size summary in bytes:
105-
// Measured: `369 + n * (1 ±0)`
106-
// Estimated: `990`
107-
// Minimum execution time: 1_430_949_000 picoseconds.
108-
Weight::from_parts(1_575_358_000, 0)
109-
.saturating_add(Weight::from_parts(0, 990))
102+
// Measured: `370 + n * (1 ±0)`
103+
// Estimated: `3766`
104+
// Minimum execution time: 43_792_000 picoseconds.
105+
Weight::from_parts(44_313_652, 0)
106+
.saturating_add(Weight::from_parts(0, 3766))
107+
// Standard Error: 1_009
108+
.saturating_add(Weight::from_parts(18_304, 0).saturating_mul(n.into()))
110109
.saturating_add(T::DbWeight::get().reads(3))
111110
.saturating_add(T::DbWeight::get().writes(4))
112111
}
113112
/// Storage: `DotNames::Banned` (r:1 w:1)
114-
/// Proof: `DotNames::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `Ignored`)
113+
/// Proof: `DotNames::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
115114
/// Storage: `DotNames::Owner` (r:1 w:1)
116-
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `Ignored`)
115+
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
117116
/// Storage: `System::Account` (r:1 w:1)
118-
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `Ignored`)
117+
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
119118
/// Storage: `Balances::Holds` (r:1 w:1)
120-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `Ignored`)
119+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `MaxEncodedLen`)
121120
/// Storage: `DotNames::Names` (r:0 w:1)
122-
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `Ignored`)
121+
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
123122
/// The range of component `n` is `[7, 32]`.
124-
fn ban(_n: u32, ) -> Weight {
123+
fn ban(n: u32, ) -> Weight {
125124
// Proof Size summary in bytes:
126-
// Measured: `369 + n * (1 ±0)`
127-
// Estimated: `990`
128-
// Minimum execution time: 1_543_707_000 picoseconds.
129-
Weight::from_parts(1_800_627_000, 0)
130-
.saturating_add(Weight::from_parts(0, 990))
125+
// Measured: `370 + n * (1 ±0)`
126+
// Estimated: `3766`
127+
// Minimum execution time: 49_299_000 picoseconds.
128+
Weight::from_parts(49_818_704, 0)
129+
.saturating_add(Weight::from_parts(0, 3766))
130+
// Standard Error: 1_218
131+
.saturating_add(Weight::from_parts(25_474, 0).saturating_mul(n.into()))
131132
.saturating_add(T::DbWeight::get().reads(4))
132133
.saturating_add(T::DbWeight::get().writes(5))
133134
}
134135
/// Storage: `DotNames::Banned` (r:1 w:1)
135-
/// Proof: `DotNames::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `Ignored`)
136+
/// Proof: `DotNames::Banned` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
136137
/// The range of component `n` is `[7, 32]`.
137-
fn unban(_n: u32, ) -> Weight {
138+
fn unban(n: u32, ) -> Weight {
138139
// Proof Size summary in bytes:
139-
// Measured: `83 + n * (1 ±0)`
140-
// Estimated: `990`
141-
// Minimum execution time: 645_352_000 picoseconds.
142-
Weight::from_parts(657_482_000, 0)
143-
.saturating_add(Weight::from_parts(0, 990))
140+
// Measured: `84 + n * (1 ±0)`
141+
// Estimated: `3514`
142+
// Minimum execution time: 13_100_000 picoseconds.
143+
Weight::from_parts(13_483_676, 0)
144+
.saturating_add(Weight::from_parts(0, 3514))
145+
// Standard Error: 766
146+
.saturating_add(Weight::from_parts(18_715, 0).saturating_mul(n.into()))
144147
.saturating_add(T::DbWeight::get().reads(1))
145148
.saturating_add(T::DbWeight::get().writes(1))
146149
}
147150
/// Storage: `DotNames::Names` (r:1 w:0)
148-
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `Ignored`)
151+
/// Proof: `DotNames::Names` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
149152
/// Storage: `DotNames::Owner` (r:1 w:1)
150-
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `Ignored`)
153+
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
151154
/// Storage: `System::Account` (r:2 w:2)
152-
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `Ignored`)
155+
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
153156
/// Storage: `Balances::Holds` (r:2 w:2)
154-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `Ignored`)
157+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `MaxEncodedLen`)
155158
fn change_deposit_owner() -> Weight {
156159
// Proof Size summary in bytes:
157160
// Measured: `581`
158-
// Estimated: `990`
159-
// Minimum execution time: 2_716_990_000 picoseconds.
160-
Weight::from_parts(2_716_990_000, 0)
161-
.saturating_add(Weight::from_parts(0, 990))
161+
// Estimated: `6542`
162+
// Minimum execution time: 78_216_000 picoseconds.
163+
Weight::from_parts(78_877_000, 0)
164+
.saturating_add(Weight::from_parts(0, 6542))
162165
.saturating_add(T::DbWeight::get().reads(6))
163166
.saturating_add(T::DbWeight::get().writes(5))
164167
}
165168
/// Storage: `DotNames::Owner` (r:1 w:1)
166-
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `Ignored`)
169+
/// Proof: `DotNames::Owner` (`max_values`: None, `max_size`: Some(137), added: 2612, mode: `MaxEncodedLen`)
167170
/// Storage: `System::Account` (r:1 w:1)
168-
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `Ignored`)
171+
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
169172
/// Storage: `Balances::Holds` (r:1 w:1)
170-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `Ignored`)
173+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(301), added: 2776, mode: `MaxEncodedLen`)
171174
fn update_deposit() -> Weight {
172175
// Proof Size summary in bytes:
173176
// Measured: `403`
174-
// Estimated: `990`
175-
// Minimum execution time: 2_180_700_000 picoseconds.
176-
Weight::from_parts(2_180_700_000, 0)
177-
.saturating_add(Weight::from_parts(0, 990))
177+
// Estimated: `3766`
178+
// Minimum execution time: 67_507_000 picoseconds.
179+
Weight::from_parts(68_038_000, 0)
180+
.saturating_add(Weight::from_parts(0, 3766))
178181
.saturating_add(T::DbWeight::get().reads(3))
179182
.saturating_add(T::DbWeight::get().writes(3))
180183
}
@@ -191,7 +194,7 @@ mod tests {
191194
.max_extrinsic
192195
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
193196
.proof_size()
194-
> 990
197+
> 3766
195198
);
196199
}
197200
#[test]
@@ -203,7 +206,7 @@ mod tests {
203206
.max_extrinsic
204207
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
205208
.proof_size()
206-
> 990
209+
> 3766
207210
);
208211
}
209212
#[test]
@@ -215,7 +218,7 @@ mod tests {
215218
.max_extrinsic
216219
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
217220
.proof_size()
218-
> 990
221+
> 3766
219222
);
220223
}
221224
#[test]
@@ -227,7 +230,7 @@ mod tests {
227230
.max_extrinsic
228231
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
229232
.proof_size()
230-
> 990
233+
> 3766
231234
);
232235
}
233236
#[test]
@@ -239,7 +242,7 @@ mod tests {
239242
.max_extrinsic
240243
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
241244
.proof_size()
242-
> 990
245+
> 3514
243246
);
244247
}
245248
#[test]
@@ -251,7 +254,7 @@ mod tests {
251254
.max_extrinsic
252255
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
253256
.proof_size()
254-
> 990
257+
> 6542
255258
);
256259
}
257260
#[test]
@@ -263,7 +266,7 @@ mod tests {
263266
.max_extrinsic
264267
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
265268
.proof_size()
266-
> 990
269+
> 3766
267270
);
268271
}
269272
}

0 commit comments

Comments
 (0)