Skip to content

Commit 29a11e5

Browse files
committed
Benchmark
1 parent 9d91f4d commit 29a11e5

79 files changed

Lines changed: 6476 additions & 6024 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pallets/pallet-bonded-coins/src/default_weights.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub trait WeightInfo {
4949
fn create_pool_polynomial(c: u32, ) -> Weight;
5050
fn create_pool_square_root(c: u32, ) -> Weight;
5151
fn create_pool_lmsr(c: u32, ) -> Weight;
52-
fn reset_team() -> Weight;
52+
fn reset_team(c: u32, ) -> Weight;
5353
fn reset_manager() -> Weight;
5454
fn set_lock() -> Weight;
5555
fn unlock() -> Weight;
@@ -161,7 +161,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
161161
/// Proof: `BondedCoins::Pools` (`max_values`: None, `max_size`: Some(365), added: 2840, mode: `MaxEncodedLen`)
162162
/// Storage: `BondedCurrencies::Asset` (r:1 w:1)
163163
/// Proof: `BondedCurrencies::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
164-
fn reset_team() -> Weight {
164+
fn reset_team(_c : u32) -> Weight {
165165
// Proof Size summary in bytes:
166166
// Measured: `619`
167167
// Estimated: `3830`
@@ -567,7 +567,7 @@ impl WeightInfo for () {
567567
/// Proof: `BondedCoins::Pools` (`max_values`: None, `max_size`: Some(365), added: 2840, mode: `MaxEncodedLen`)
568568
/// Storage: `BondedCurrencies::Asset` (r:1 w:1)
569569
/// Proof: `BondedCurrencies::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
570-
fn reset_team() -> Weight {
570+
fn reset_team(_c : u32) -> Weight {
571571
// Proof Size summary in bytes:
572572
// Measured: `619`
573573
// Estimated: `3830`

pallets/pallet-bonded-coins/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ pub mod pallet {
514514
/// the pool is larger than `currency_count`.
515515
/// - Other errors depending on the types in the config.
516516
#[pallet::call_index(1)]
517-
#[pallet::weight(T::WeightInfo::reset_team())]
517+
#[pallet::weight(T::WeightInfo::reset_team(*currency_count))]
518518
pub fn reset_team(
519519
origin: OriginFor<T>,
520520
pool_id: T::PoolId,

runtimes/peregrine/src/weights/attestation.rs

Lines changed: 55 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,24 @@
1818

1919
//! Autogenerated weights for `attestation`
2020
//!
21-
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
22-
//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.1.0
22+
//! DATE: 2025-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
2323
//! WORST CASE MAP SIZE: `1000000`
2424
//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz`
25-
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25+
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
2626
2727
// Executed Command:
28-
// ./target/release/kilt-parachain
28+
// frame-omni-bencher
29+
// v1
2930
// benchmark
3031
// pallet
31-
// --template=.maintain/runtime-weight-template.hbs
32-
// --header=HEADER-GPL
33-
// --wasm-execution=compiled
34-
// --heap-pages=4096
35-
// --steps=50
36-
// --repeat=20
37-
// --chain=dev
3832
// --pallet=attestation
3933
// --extrinsic=*
40-
// --output=./runtimes/peregrine/src/weights/attestation.rs
34+
// --genesis-builder=runtime
35+
// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm
36+
// --header=HEADER-GPL
37+
// --template=.maintain/runtime-weight-template.hbs
38+
// --output=./runtimes/peregrine/src/weights/
4139

4240
#![cfg_attr(rustfmt, rustfmt_skip)]
4341
#![allow(unused_imports)]
@@ -55,28 +53,28 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
5553
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
5654
/// Storage: `System::Account` (r:1 w:1)
5755
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
58-
/// Storage: `Balances::Holds` (r:1 w:1)
59-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
56+
/// Storage: `Balances::Holds` (r:1 w:0)
57+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(247), added: 2722, mode: `MaxEncodedLen`)
6058
/// Storage: `Migration::MigratedKeys` (r:0 w:1)
6159
/// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
6260
fn add() -> Weight {
6361
// Proof Size summary in bytes:
64-
// Measured: `260`
65-
// Estimated: `3660`
66-
// Minimum execution time: 52_335_000 picoseconds.
67-
Weight::from_parts(53_274_000, 0)
68-
.saturating_add(Weight::from_parts(0, 3660))
62+
// Measured: `296`
63+
// Estimated: `3712`
64+
// Minimum execution time: 64_482_000 picoseconds.
65+
Weight::from_parts(65_095_000, 0)
66+
.saturating_add(Weight::from_parts(0, 3712))
6967
.saturating_add(T::DbWeight::get().reads(4))
70-
.saturating_add(T::DbWeight::get().writes(4))
68+
.saturating_add(T::DbWeight::get().writes(3))
7169
}
7270
/// Storage: `Attestation::Attestations` (r:1 w:1)
7371
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
7472
fn revoke() -> Weight {
7573
// Proof Size summary in bytes:
76-
// Measured: `196`
74+
// Measured: `233`
7775
// Estimated: `3660`
78-
// Minimum execution time: 14_393_000 picoseconds.
79-
Weight::from_parts(14_731_000, 0)
76+
// Minimum execution time: 24_552_000 picoseconds.
77+
Weight::from_parts(24_850_000, 0)
8078
.saturating_add(Weight::from_parts(0, 3660))
8179
.saturating_add(T::DbWeight::get().reads(1))
8280
.saturating_add(T::DbWeight::get().writes(1))
@@ -85,71 +83,71 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
8583
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
8684
/// Storage: `Migration::MigratedKeys` (r:1 w:0)
8785
/// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
86+
/// Storage: `Balances::Holds` (r:1 w:1)
87+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(247), added: 2722, mode: `MaxEncodedLen`)
8888
/// Storage: `System::Account` (r:1 w:1)
8989
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
90-
/// Storage: `Balances::Holds` (r:1 w:1)
91-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
9290
fn remove() -> Weight {
9391
// Proof Size summary in bytes:
94-
// Measured: `437`
95-
// Estimated: `3660`
96-
// Minimum execution time: 47_894_000 picoseconds.
97-
Weight::from_parts(48_491_000, 0)
98-
.saturating_add(Weight::from_parts(0, 3660))
92+
// Measured: `418`
93+
// Estimated: `3712`
94+
// Minimum execution time: 58_871_000 picoseconds.
95+
Weight::from_parts(59_462_000, 0)
96+
.saturating_add(Weight::from_parts(0, 3712))
9997
.saturating_add(T::DbWeight::get().reads(4))
10098
.saturating_add(T::DbWeight::get().writes(3))
10199
}
102100
/// Storage: `Attestation::Attestations` (r:1 w:1)
103101
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
104102
/// Storage: `Migration::MigratedKeys` (r:1 w:0)
105103
/// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
104+
/// Storage: `Balances::Holds` (r:1 w:1)
105+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(247), added: 2722, mode: `MaxEncodedLen`)
106106
/// Storage: `System::Account` (r:1 w:1)
107107
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
108-
/// Storage: `Balances::Holds` (r:1 w:1)
109-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
110108
fn reclaim_deposit() -> Weight {
111109
// Proof Size summary in bytes:
112-
// Measured: `437`
113-
// Estimated: `3660`
114-
// Minimum execution time: 48_351_000 picoseconds.
115-
Weight::from_parts(48_828_000, 0)
116-
.saturating_add(Weight::from_parts(0, 3660))
110+
// Measured: `418`
111+
// Estimated: `3712`
112+
// Minimum execution time: 58_616_000 picoseconds.
113+
Weight::from_parts(59_494_000, 0)
114+
.saturating_add(Weight::from_parts(0, 3712))
117115
.saturating_add(T::DbWeight::get().reads(4))
118116
.saturating_add(T::DbWeight::get().writes(3))
119117
}
120118
/// Storage: `Attestation::Attestations` (r:1 w:1)
121119
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
122120
/// Storage: `Migration::MigratedKeys` (r:1 w:0)
123121
/// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
122+
/// Storage: `Balances::Holds` (r:2 w:1)
123+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(247), added: 2722, mode: `MaxEncodedLen`)
124124
/// Storage: `System::Account` (r:2 w:2)
125125
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
126-
/// Storage: `Balances::Holds` (r:2 w:2)
127-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
128126
fn change_deposit_owner() -> Weight {
129127
// Proof Size summary in bytes:
130-
// Measured: `581`
131-
// Estimated: `6326`
132-
// Minimum execution time: 77_624_000 picoseconds.
133-
Weight::from_parts(78_569_000, 0)
134-
.saturating_add(Weight::from_parts(0, 6326))
128+
// Measured: `562`
129+
// Estimated: `6434`
130+
// Minimum execution time: 91_491_000 picoseconds.
131+
Weight::from_parts(92_315_000, 0)
132+
.saturating_add(Weight::from_parts(0, 6434))
135133
.saturating_add(T::DbWeight::get().reads(6))
136-
.saturating_add(T::DbWeight::get().writes(5))
134+
.saturating_add(T::DbWeight::get().writes(4))
137135
}
138136
/// Storage: `Attestation::Attestations` (r:1 w:1)
139137
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
140138
/// Storage: `Migration::MigratedKeys` (r:1 w:0)
141139
/// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
140+
/// Storage: `Balances::Holds` (r:1 w:1)
141+
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(247), added: 2722, mode: `MaxEncodedLen`)
142142
/// Storage: `System::Account` (r:1 w:1)
143143
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
144-
/// Storage: `Balances::Holds` (r:1 w:1)
145-
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
146144
fn update_deposit() -> Weight {
147145
// Proof Size summary in bytes:
148-
// Measured: `437`
149-
// Estimated: `3660`
150-
// Minimum execution time: 71_073_000 picoseconds.
151-
Weight::from_parts(71_519_000, 0)
152-
.saturating_add(Weight::from_parts(0, 3660))
146+
// Measured: `418`
147+
// Estimated: `3712`
148+
// Minimum execution time: 77_073_000 picoseconds.
149+
Weight::from_parts(77_777_000, 0)
150+
.saturating_add(Weight::from_parts(0, 3712))
153151
.saturating_add(T::DbWeight::get().reads(4))
154152
.saturating_add(T::DbWeight::get().writes(3))
155153
}
@@ -166,7 +164,7 @@ mod tests {
166164
.max_extrinsic
167165
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
168166
.proof_size()
169-
> 3660
167+
> 3712
170168
);
171169
}
172170
#[test]
@@ -190,7 +188,7 @@ mod tests {
190188
.max_extrinsic
191189
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
192190
.proof_size()
193-
> 3660
191+
> 3712
194192
);
195193
}
196194
#[test]
@@ -202,7 +200,7 @@ mod tests {
202200
.max_extrinsic
203201
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
204202
.proof_size()
205-
> 3660
203+
> 3712
206204
);
207205
}
208206
#[test]
@@ -214,7 +212,7 @@ mod tests {
214212
.max_extrinsic
215213
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
216214
.proof_size()
217-
> 6326
215+
> 6434
218216
);
219217
}
220218
#[test]
@@ -226,7 +224,7 @@ mod tests {
226224
.max_extrinsic
227225
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
228226
.proof_size()
229-
> 3660
227+
> 3712
230228
);
231229
}
232230
}

runtimes/peregrine/src/weights/ctype.rs

Lines changed: 23 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,24 @@
1818

1919
//! Autogenerated weights for `ctype`
2020
//!
21-
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
22-
//! DATE: 2024-06-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21+
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.1.0
22+
//! DATE: 2025-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
2323
//! WORST CASE MAP SIZE: `1000000`
2424
//! HOSTNAME: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz`
25-
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25+
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
2626
2727
// Executed Command:
28-
// ./target/release/kilt-parachain
28+
// frame-omni-bencher
29+
// v1
2930
// benchmark
3031
// pallet
31-
// --template=.maintain/runtime-weight-template.hbs
32-
// --header=HEADER-GPL
33-
// --wasm-execution=compiled
34-
// --heap-pages=4096
35-
// --steps=50
36-
// --repeat=20
37-
// --chain=dev
3832
// --pallet=ctype
3933
// --extrinsic=*
40-
// --output=./runtimes/peregrine/src/weights/ctype.rs
34+
// --genesis-builder=runtime
35+
// --runtime=./target/release/wbuild/peregrine-runtime/peregrine_runtime.compact.compressed.wasm
36+
// --header=HEADER-GPL
37+
// --template=.maintain/runtime-weight-template.hbs
38+
// --output=./runtimes/peregrine/src/weights/
4139

4240
#![cfg_attr(rustfmt, rustfmt_skip)]
4341
#![allow(unused_imports)]
@@ -49,31 +47,31 @@ use sp_std::marker::PhantomData;
4947
/// Weight functions for `ctype`.
5048
pub struct WeightInfo<T>(PhantomData<T>);
5149
impl<T: frame_system::Config> ctype::WeightInfo for WeightInfo<T> {
52-
/// Storage: `System::Account` (r:2 w:2)
50+
/// Storage: `System::Account` (r:1 w:1)
5351
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
5452
/// Storage: `Ctype::Ctypes` (r:1 w:1)
5553
/// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
5654
/// The range of component `l` is `[1, 5242880]`.
5755
fn add(l: u32, ) -> Weight {
5856
// Proof Size summary in bytes:
59-
// Measured: `254`
60-
// Estimated: `6204`
61-
// Minimum execution time: 43_876_000 picoseconds.
62-
Weight::from_parts(44_318_000, 0)
63-
.saturating_add(Weight::from_parts(0, 6204))
64-
// Standard Error: 0
65-
.saturating_add(Weight::from_parts(1_566, 0).saturating_mul(l.into()))
66-
.saturating_add(T::DbWeight::get().reads(3))
67-
.saturating_add(T::DbWeight::get().writes(3))
57+
// Measured: `147`
58+
// Estimated: `3597`
59+
// Minimum execution time: 49_014_000 picoseconds.
60+
Weight::from_parts(49_335_000, 0)
61+
.saturating_add(Weight::from_parts(0, 3597))
62+
// Standard Error: 180
63+
.saturating_add(Weight::from_parts(16_171, 0).saturating_mul(l.into()))
64+
.saturating_add(T::DbWeight::get().reads(2))
65+
.saturating_add(T::DbWeight::get().writes(2))
6866
}
6967
/// Storage: `Ctype::Ctypes` (r:1 w:1)
7068
/// Proof: `Ctype::Ctypes` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
7169
fn set_block_number() -> Weight {
7270
// Proof Size summary in bytes:
7371
// Measured: `158`
7472
// Estimated: `3553`
75-
// Minimum execution time: 15_009_000 picoseconds.
76-
Weight::from_parts(15_716_000, 0)
73+
// Minimum execution time: 25_940_000 picoseconds.
74+
Weight::from_parts(27_104_000, 0)
7775
.saturating_add(Weight::from_parts(0, 3553))
7876
.saturating_add(T::DbWeight::get().reads(1))
7977
.saturating_add(T::DbWeight::get().writes(1))
@@ -91,7 +89,7 @@ mod tests {
9189
.max_extrinsic
9290
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
9391
.proof_size()
94-
> 6204
92+
> 3597
9593
);
9694
}
9795
#[test]

0 commit comments

Comments
 (0)