Skip to content

Commit

Permalink
Recalculate registry weights
Browse files Browse the repository at this point in the history
  • Loading branch information
ameba23 committed Sep 16, 2024
1 parent ad8702b commit a8c96e3
Showing 1 changed file with 72 additions and 60 deletions.
132 changes: 72 additions & 60 deletions runtime/src/weights/pallet_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
//! Autogenerated weights for `pallet_registry`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
//! DATE: 2024-08-02, STEPS: `5`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-09-16, STEPS: `5`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `hcastano`, CPU: `<UNKNOWN>`
//! HOSTNAME: `turnip`, CPU: `Intel(R) Core(TM) i7-4710MQ CPU @ 2.50GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
// Executed Command:
Expand All @@ -45,76 +45,90 @@ use core::marker::PhantomData;
/// Weight functions for `pallet_registry`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_registry::WeightInfo for WeightInfo<T> {
/// Storage: `Registry::JumpStartProgress` (r:1 w:1)
/// Proof: `Registry::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Registry::JumpstartDkg` (r:1 w:1)
/// Storage: `Parameters::SignersInfo` (r:1 w:0)
/// Proof: `Parameters::SignersInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `StakingExtension::JumpStartProgress` (r:1 w:1)
/// Proof: `StakingExtension::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Session::Validators` (r:1 w:0)
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Babe::NextRandomness` (r:1 w:0)
/// Proof: `Babe::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
/// Storage: `Babe::EpochStart` (r:1 w:0)
/// Proof: `Babe::EpochStart` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `StakingExtension::ThresholdServers` (r:3 w:0)
/// Proof: `StakingExtension::ThresholdServers` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Registry::JumpstartDkg` (r:0 w:1)
/// Proof: `Registry::JumpstartDkg` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn jump_start_network() -> Weight {
// Proof Size summary in bytes:
// Measured: `140`
// Estimated: `3605`
// Minimum execution time: 13_000_000 picoseconds.
Weight::from_parts(28_000_000, 0)
.saturating_add(Weight::from_parts(0, 3605))
.saturating_add(T::DbWeight::get().reads(2))
// Measured: `1069`
// Estimated: `9484`
// Minimum execution time: 65_265_000 picoseconds.
Weight::from_parts(72_083_000, 0)
.saturating_add(Weight::from_parts(0, 9484))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `StakingExtension::ThresholdToStash` (r:1 w:0)
/// Proof: `StakingExtension::ThresholdToStash` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::Validators` (r:1 w:0)
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Registry::JumpStartProgress` (r:1 w:1)
/// Proof: `Registry::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Registry::JumpstartDkg` (r:2 w:0)
/// Proof: `Registry::JumpstartDkg` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `StakingExtension::JumpStartProgress` (r:1 w:1)
/// Proof: `StakingExtension::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Parameters::SignersInfo` (r:1 w:0)
/// Proof: `Parameters::SignersInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `StakingExtension::Signers` (r:0 w:1)
/// Proof: `StakingExtension::Signers` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `c` is `[0, 3]`.
fn confirm_jump_start_done(c: u32, ) -> Weight {
/// The range of component `c` is `[0, 15]`.
fn confirm_jump_start_done(_c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `793`
// Estimated: `4258`
// Minimum execution time: 18_000_000 picoseconds.
Weight::from_parts(17_600_000, 0)
.saturating_add(Weight::from_parts(0, 4258))
// Standard Error: 916_515
.saturating_add(Weight::from_parts(1_600_000, 0).saturating_mul(c.into()))
.saturating_add(T::DbWeight::get().reads(3))
// Measured: `999`
// Estimated: `6939`
// Minimum execution time: 55_835_000 picoseconds.
Weight::from_parts(70_728_113, 0)
.saturating_add(Weight::from_parts(0, 6939))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `StakingExtension::ThresholdToStash` (r:1 w:0)
/// Proof: `StakingExtension::ThresholdToStash` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Session::Validators` (r:1 w:0)
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Registry::JumpStartProgress` (r:1 w:1)
/// Proof: `Registry::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `c` is `[0, 3]`.
/// Storage: `Registry::JumpstartDkg` (r:2 w:0)
/// Proof: `Registry::JumpstartDkg` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `StakingExtension::JumpStartProgress` (r:1 w:1)
/// Proof: `StakingExtension::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Parameters::SignersInfo` (r:1 w:0)
/// Proof: `Parameters::SignersInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// The range of component `c` is `[0, 15]`.
fn confirm_jump_start_confirm(_c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `693`
// Estimated: `4158`
// Minimum execution time: 18_000_000 picoseconds.
Weight::from_parts(19_200_000, 0)
.saturating_add(Weight::from_parts(0, 4158))
.saturating_add(T::DbWeight::get().reads(3))
// Measured: `701`
// Estimated: `6641`
// Minimum execution time: 52_934_000 picoseconds.
Weight::from_parts(73_613_162, 0)
.saturating_add(Weight::from_parts(0, 6641))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Programs::Programs` (r:1 w:1)
/// Proof: `Programs::Programs` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Registry::JumpStartProgress` (r:1 w:0)
/// Proof: `Registry::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `StakingExtension::JumpStartProgress` (r:1 w:0)
/// Proof: `StakingExtension::JumpStartProgress` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Registry::CounterForRegistered` (r:1 w:1)
/// Proof: `Registry::CounterForRegistered` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Registry::Registered` (r:1 w:1)
/// Proof: `Registry::Registered` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Registry::ModifiableKeys` (r:1 w:1)
/// Proof: `Registry::ModifiableKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// The range of component `p` is `[1, 5]`.
fn register(_p: u32, ) -> Weight {
fn register(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `563`
// Estimated: `4028`
// Minimum execution time: 525_000_000 picoseconds.
Weight::from_parts(540_700_000, 0)
.saturating_add(Weight::from_parts(0, 4028))
// Measured: `550`
// Estimated: `4015`
// Minimum execution time: 929_049_000 picoseconds.
Weight::from_parts(947_220_150, 0)
.saturating_add(Weight::from_parts(0, 4015))
// Standard Error: 8_259_373
.saturating_add(Weight::from_parts(6_818_350, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(4))
}
Expand All @@ -126,15 +140,15 @@ impl<T: frame_system::Config> pallet_registry::WeightInfo for WeightInfo<T> {
/// The range of component `o` is `[1, 5]`.
fn change_program_instance(n: u32, o: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `674 + o * (33 ±0)`
// Estimated: `6614 + o * (33 ±0)`
// Minimum execution time: 34_000_000 picoseconds.
Weight::from_parts(27_500_000, 0)
.saturating_add(Weight::from_parts(0, 6614))
// Standard Error: 377_136
.saturating_add(Weight::from_parts(2_126_190, 0).saturating_mul(n.into()))
// Standard Error: 377_136
.saturating_add(Weight::from_parts(1_059_523, 0).saturating_mul(o.into()))
// Measured: `537 + o * (33 ±0)`
// Estimated: `6477 + o * (33 ±0)`
// Minimum execution time: 65_712_000 picoseconds.
Weight::from_parts(50_253_750, 0)
.saturating_add(Weight::from_parts(0, 6477))
// Standard Error: 3_573_191
.saturating_add(Weight::from_parts(3_433_552, 0).saturating_mul(n.into()))
// Standard Error: 3_573_191
.saturating_add(Weight::from_parts(5_104_569, 0).saturating_mul(o.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 33).saturating_mul(o.into()))
Expand All @@ -146,13 +160,11 @@ impl<T: frame_system::Config> pallet_registry::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[1, 25]`.
fn change_program_modification_account(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `388 + n * (1 ±0)`
// Estimated: `3853 + n * (1 ±0)`
// Minimum execution time: 16_000_000 picoseconds.
Weight::from_parts(16_808_333, 0)
.saturating_add(Weight::from_parts(0, 3853))
// Standard Error: 26_187
.saturating_add(Weight::from_parts(91_666, 0).saturating_mul(n.into()))
// Measured: `251 + n * (1 ±0)`
// Estimated: `3716 + n * (1 ±0)`
// Minimum execution time: 37_528_000 picoseconds.
Weight::from_parts(48_652_091, 0)
.saturating_add(Weight::from_parts(0, 3716))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
Expand Down

0 comments on commit a8c96e3

Please sign in to comment.