Skip to content

Commit 03687dd

Browse files
committed
Benchmark 2
1 parent 7edd36a commit 03687dd

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

runtimes/peregrine/src/weights/parachain_staking.rs

+16-14
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
// dev
3939
// --pallet
4040
// parachain-staking
41-
// --extrinsic=set_inflation
41+
// --extrinsic=execute_scheduled_reward_change
4242
// --output=./runtimes/peregrine/src/weights/
4343

4444
#![cfg_attr(rustfmt, rustfmt_skip)]
@@ -53,6 +53,10 @@ pub struct WeightInfo<T>(PhantomData<T>);
5353
impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
5454
/// Storage: `ParachainStaking::CounterForCandidatePool` (r:1 w:0)
5555
/// Proof: `ParachainStaking::CounterForCandidatePool` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
56+
/// Storage: `ParachainStaking::LastRewardReduction` (r:1 w:1)
57+
/// Proof: `ParachainStaking::LastRewardReduction` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
58+
/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
59+
/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`)
5660
/// Storage: `ParachainStaking::CandidatePool` (r:76 w:0)
5761
/// Proof: `ParachainStaking::CandidatePool` (`max_values`: None, `max_size`: Some(1790), added: 4265, mode: `MaxEncodedLen`)
5862
/// Storage: `ParachainStaking::BlocksAuthored` (r:75 w:0)
@@ -63,25 +67,23 @@ impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
6367
/// Proof: `ParachainStaking::Rewards` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
6468
/// Storage: `ParachainStaking::TotalCollatorStake` (r:1 w:0)
6569
/// Proof: `ParachainStaking::TotalCollatorStake` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
66-
/// Storage: `ParachainStaking::InflationConfig` (r:1 w:1)
67-
/// Proof: `ParachainStaking::InflationConfig` (`max_values`: Some(1), `max_size`: Some(96), added: 591, mode: `MaxEncodedLen`)
6870
/// The range of component `n` is `[0, 75]`.
6971
/// The range of component `m` is `[0, 35]`.
70-
fn set_inflation(n: u32, m: u32, ) -> Weight {
72+
fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight {
7173
// Proof Size summary in bytes:
72-
// Measured: `0 + m * (7573 ±0) + n * (3709 ±0)`
74+
// Measured: `0 + m * (7573 ±0) + n * (3647 ±0)`
7375
// Estimated: `183222 + m * (64823 ±2_167) + n * (31965 ±1_009)`
74-
// Minimum execution time: 704_611_000 picoseconds.
75-
Weight::from_parts(707_105_000, 0)
76+
// Minimum execution time: 683_160_000 picoseconds.
77+
Weight::from_parts(687_351_000, 0)
7678
.saturating_add(Weight::from_parts(0, 183222))
77-
// Standard Error: 4_876_636
78-
.saturating_add(Weight::from_parts(150_694_630, 0).saturating_mul(n.into()))
79-
// Standard Error: 10_470_032
80-
.saturating_add(Weight::from_parts(290_425_882, 0).saturating_mul(m.into()))
81-
.saturating_add(T::DbWeight::get().reads(152))
79+
// Standard Error: 4_643_820
80+
.saturating_add(Weight::from_parts(141_740_256, 0).saturating_mul(n.into()))
81+
// Standard Error: 9_970_180
82+
.saturating_add(Weight::from_parts(280_674_034, 0).saturating_mul(m.into()))
83+
.saturating_add(T::DbWeight::get().reads(153))
8284
.saturating_add(T::DbWeight::get().reads((27_u64).saturating_mul(n.into())))
8385
.saturating_add(T::DbWeight::get().reads((51_u64).saturating_mul(m.into())))
84-
.saturating_add(T::DbWeight::get().writes(145))
86+
.saturating_add(T::DbWeight::get().writes(146))
8587
.saturating_add(T::DbWeight::get().writes((25_u64).saturating_mul(n.into())))
8688
.saturating_add(T::DbWeight::get().writes((51_u64).saturating_mul(m.into())))
8789
.saturating_add(Weight::from_parts(0, 64823).saturating_mul(m.into()))
@@ -92,7 +94,7 @@ impl<T: frame_system::Config> parachain_staking::WeightInfo for WeightInfo<T> {
9294
#[cfg(test)]
9395
mod tests {
9496
#[test]
95-
fn test_set_inflation() {
97+
fn test_execute_scheduled_reward_change() {
9698
assert!(
9799
<crate::Runtime as frame_system::Config>::BlockWeights::get()
98100
.per_class

0 commit comments

Comments
 (0)