Skip to content

Commit

Permalink
weights
Browse files Browse the repository at this point in the history
  • Loading branch information
AmbientTea committed Feb 25, 2025
1 parent 2728c5b commit e4b1d94
Showing 1 changed file with 17 additions and 21 deletions.
38 changes: 17 additions & 21 deletions toolkit/pallets/block-production-log/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

//! Autogenerated weights for pallet_block_production_log
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2025-02-11, STEPS: `5000`, REPEAT: `2000`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.0.0
//! DATE: 2025-02-25, STEPS: `5000`, REPEAT: `2000`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `lglo-framework13`, CPU: `AMD Ryzen 7 7840U w/ Radeon 780M Graphics`
//! HOSTNAME: `Nikolaoss-MacBook-Pro.local`, CPU: `<UNKNOWN>`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -44,17 +44,15 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `BlockProductionLog::LatestBlock` (r:1 w:1)
/// Proof: `BlockProductionLog::LatestBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Aura::CurrentSlot` (r:1 w:0)
/// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `BlockProductionLog::Log` (r:1 w:1)
/// Proof: `BlockProductionLog::Log` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `BlockProductionLog::CurrentProducer` (r:0 w:1)
/// Proof: `BlockProductionLog::CurrentProducer` (`max_values`: Some(1), `max_size`: Some(66), added: 561, mode: `MaxEncodedLen`)
fn append() -> Weight {
// Proof Size summary in bytes:
// Measured: `2507`
// Estimated: `3992`
// Minimum execution time: 7_153_000 picoseconds.
Weight::from_parts(7_564_000, 3992)
.saturating_add(T::DbWeight::get().reads(3_u64))
// Measured: `43`
// Estimated: `1489`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(5_000_000, 1489)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
}
Expand All @@ -63,17 +61,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
impl WeightInfo for () {
/// Storage: `BlockProductionLog::LatestBlock` (r:1 w:1)
/// Proof: `BlockProductionLog::LatestBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `Aura::CurrentSlot` (r:1 w:0)
/// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `BlockProductionLog::Log` (r:1 w:1)
/// Proof: `BlockProductionLog::Log` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `BlockProductionLog::CurrentProducer` (r:0 w:1)
/// Proof: `BlockProductionLog::CurrentProducer` (`max_values`: Some(1), `max_size`: Some(66), added: 561, mode: `MaxEncodedLen`)
fn append() -> Weight {
// Proof Size summary in bytes:
// Measured: `2507`
// Estimated: `3992`
// Minimum execution time: 7_153_000 picoseconds.
Weight::from_parts(7_564_000, 3992)
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Measured: `43`
// Estimated: `1489`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(5_000_000, 1489)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
}

0 comments on commit e4b1d94

Please sign in to comment.