Skip to content

Commit

Permalink
remove benchmarks for clear_suicided_storage (removed)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzamontiel committed Nov 18, 2024
1 parent 2ab711c commit 1ce9287
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 90 deletions.
31 changes: 1 addition & 30 deletions runtime/moonbase/src/weights/pallet_moonbeam_lazy_migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,4 @@ use sp_std::marker::PhantomData;

/// Weights for `pallet_moonbeam_lazy_migrations`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_moonbeam_lazy_migrations::WeightInfo for WeightInfo<T> {
/// Storage: `EVM::Suicided` (r:100 w:0)
/// Proof: `EVM::Suicided` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountCodes` (r:100 w:0)
/// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountStorages` (r:1000 w:900)
/// Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `MoonbeamLazyMigrations::SuicidedContractsRemoved` (r:1 w:1)
/// Proof: `MoonbeamLazyMigrations::SuicidedContractsRemoved` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// The range of component `a` is `[1, 100]`.
/// The range of component `l` is `[1, 1000]`.
fn clear_suicided_storage(a: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `4251 + a * (12 ±0) + l * (84 ±0)`
// Estimated: `37759 + a * (2229 ±74) + l * (2536 ±7)`
// Minimum execution time: 49_105_000 picoseconds.
Weight::from_parts(49_964_000, 37759)
// Standard Error: 2_602_653
.saturating_add(Weight::from_parts(43_455_730, 0).saturating_mul(a.into()))
// Standard Error: 259_988
.saturating_add(Weight::from_parts(27_244_479, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(a.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(l.into())))
.saturating_add(T::DbWeight::get().writes(41_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(l.into())))
.saturating_add(Weight::from_parts(0, 2229).saturating_mul(a.into()))
.saturating_add(Weight::from_parts(0, 2536).saturating_mul(l.into()))
}
}
impl<T: frame_system::Config> pallet_moonbeam_lazy_migrations::WeightInfo for WeightInfo<T> {}
31 changes: 1 addition & 30 deletions runtime/moonbeam/src/weights/pallet_moonbeam_lazy_migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,4 @@ use sp_std::marker::PhantomData;

/// Weights for `pallet_moonbeam_lazy_migrations`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_moonbeam_lazy_migrations::WeightInfo for WeightInfo<T> {
/// Storage: `EVM::Suicided` (r:100 w:0)
/// Proof: `EVM::Suicided` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountCodes` (r:100 w:0)
/// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountStorages` (r:1000 w:900)
/// Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `MoonbeamLazyMigrations::SuicidedContractsRemoved` (r:1 w:1)
/// Proof: `MoonbeamLazyMigrations::SuicidedContractsRemoved` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// The range of component `a` is `[1, 100]`.
/// The range of component `l` is `[1, 1000]`.
fn clear_suicided_storage(a: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `4286 + a * (6 ±0) + l * (84 ±0)`
// Estimated: `37717 + a * (2225 ±74) + l * (2536 ±7)`
// Minimum execution time: 48_700_000 picoseconds.
Weight::from_parts(49_349_000, 37717)
// Standard Error: 2_586_072
.saturating_add(Weight::from_parts(41_725_324, 0).saturating_mul(a.into()))
// Standard Error: 258_331
.saturating_add(Weight::from_parts(27_114_338, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(a.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(l.into())))
.saturating_add(T::DbWeight::get().writes(41_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(l.into())))
.saturating_add(Weight::from_parts(0, 2225).saturating_mul(a.into()))
.saturating_add(Weight::from_parts(0, 2536).saturating_mul(l.into()))
}
}
impl<T: frame_system::Config> pallet_moonbeam_lazy_migrations::WeightInfo for WeightInfo<T> {}
31 changes: 1 addition & 30 deletions runtime/moonriver/src/weights/pallet_moonbeam_lazy_migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,33 +45,4 @@ use sp_std::marker::PhantomData;

/// Weights for `pallet_moonbeam_lazy_migrations`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_moonbeam_lazy_migrations::WeightInfo for WeightInfo<T> {
/// Storage: `EVM::Suicided` (r:100 w:0)
/// Proof: `EVM::Suicided` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountCodes` (r:100 w:0)
/// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountStorages` (r:1000 w:900)
/// Proof: `EVM::AccountStorages` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `MoonbeamLazyMigrations::SuicidedContractsRemoved` (r:1 w:1)
/// Proof: `MoonbeamLazyMigrations::SuicidedContractsRemoved` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// The range of component `a` is `[1, 100]`.
/// The range of component `l` is `[1, 1000]`.
fn clear_suicided_storage(a: u32, l: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `4424 + a * (5 ±0) + l * (84 ±0)`
// Estimated: `37695 + a * (2224 ±19) + l * (2536 ±1)`
// Minimum execution time: 50_313_000 picoseconds.
Weight::from_parts(50_889_000, 37695)
// Standard Error: 2_571_628
.saturating_add(Weight::from_parts(42_274_657, 0).saturating_mul(a.into()))
// Standard Error: 256_888
.saturating_add(Weight::from_parts(27_055_580, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(a.into())))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(l.into())))
.saturating_add(T::DbWeight::get().writes(41_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(l.into())))
.saturating_add(Weight::from_parts(0, 2224).saturating_mul(a.into()))
.saturating_add(Weight::from_parts(0, 2536).saturating_mul(l.into()))
}
}
impl<T: frame_system::Config> pallet_moonbeam_lazy_migrations::WeightInfo for WeightInfo<T> {}

0 comments on commit 1ce9287

Please sign in to comment.