Skip to content

Commit

Permalink
Update weights for PR #1702
Browse files Browse the repository at this point in the history
  • Loading branch information
do-not-reply committed Oct 23, 2023
1 parent 8ff7dbb commit d70798e
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 133 deletions.
108 changes: 54 additions & 54 deletions pallets/messages/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
//! Autogenerated weights for pallet_messages
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-07-07, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-10-23, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `benchmark-runner-qpqf8-fp5d5`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024
//! HOSTNAME: `benchmark-runner-44wtw-jpk5m`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024
// Executed Command:
// ./scripts/../target/bench-dev/frequency
// ./scripts/../target/release/frequency
// benchmark
// pallet
// --pallet=pallet_messages
Expand Down Expand Up @@ -56,77 +56,77 @@ pub trait WeightInfo {
/// Weights for pallet_messages using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: Schemas Schemas (r:1 w:0)
/// Proof: Schemas Schemas (max_values: None, max_size: Some(65518), added: 67993, mode: Measured)
/// Storage: Msa PublicKeyToMsaId (r:1 w:0)
/// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: Measured)
/// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
/// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: Measured)
/// Storage: Messages Messages (r:1 w:1)
/// Proof: Messages Messages (max_values: None, max_size: Some(771174), added: 773649, mode: Measured)
/// The range of component `n` is `[0, 5119]`.
/// Storage: `Schemas::Schemas` (r:1 w:0)
/// Proof: `Schemas::Schemas` (`max_values`: None, `max_size`: Some(65518), added: 67993, mode: `Measured`)
/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `Measured`)
/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `Measured`)
/// Storage: `Messages::Messages` (r:1 w:1)
/// Proof: `Messages::Messages` (`max_values`: None, `max_size`: Some(618624), added: 621099, mode: `Measured`)
/// The range of component `n` is `[0, 3071]`.
fn add_onchain_message(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `7339`
// Estimated: `19714`
// Minimum execution time: 39_000_000 picoseconds.
Weight::from_parts(179_112_822, 19714)
// Standard Error: 35
.saturating_add(Weight::from_parts(459, 0).saturating_mul(n.into()))
// Measured: `9664`
// Estimated: `22039`
// Minimum execution time: 45_458_000 picoseconds.
Weight::from_parts(46_903_363, 22039)
// Standard Error: 59
.saturating_add(Weight::from_parts(1_062, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Schemas Schemas (r:1 w:0)
/// Proof: Schemas Schemas (max_values: None, max_size: Some(65518), added: 67993, mode: Measured)
/// Storage: Msa PublicKeyToMsaId (r:1 w:0)
/// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: Measured)
/// Storage: Messages Messages (r:1 w:1)
/// Proof: Messages Messages (max_values: None, max_size: Some(771174), added: 773649, mode: Measured)
/// Storage: `Schemas::Schemas` (r:1 w:0)
/// Proof: `Schemas::Schemas` (`max_values`: None, `max_size`: Some(65518), added: 67993, mode: `Measured`)
/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `Measured`)
/// Storage: `Messages::Messages` (r:1 w:1)
/// Proof: `Messages::Messages` (`max_values`: None, `max_size`: Some(618624), added: 621099, mode: `Measured`)
fn add_ipfs_message() -> Weight {
// Proof Size summary in bytes:
// Measured: `6183`
// Estimated: `18558`
// Minimum execution time: 36_000_000 picoseconds.
Weight::from_parts(174_485_000, 18558)
// Measured: `7958`
// Estimated: `20333`
// Minimum execution time: 43_128_000 picoseconds.
Weight::from_parts(43_983_000, 20333)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: Schemas Schemas (r:1 w:0)
/// Proof: Schemas Schemas (max_values: None, max_size: Some(65518), added: 67993, mode: Measured)
/// Storage: Msa PublicKeyToMsaId (r:1 w:0)
/// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: Measured)
/// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
/// Proof: Msa DelegatorAndProviderToDelegation (max_values: None, max_size: Some(217), added: 2692, mode: Measured)
/// Storage: Messages Messages (r:1 w:1)
/// Proof: Messages Messages (max_values: None, max_size: Some(771174), added: 773649, mode: Measured)
/// The range of component `n` is `[0, 5119]`.
/// Storage: `Schemas::Schemas` (r:1 w:0)
/// Proof: `Schemas::Schemas` (`max_values`: None, `max_size`: Some(65518), added: 67993, mode: `Measured`)
/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `Measured`)
/// Storage: `Msa::DelegatorAndProviderToDelegation` (r:1 w:0)
/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `Measured`)
/// Storage: `Messages::Messages` (r:1 w:1)
/// Proof: `Messages::Messages` (`max_values`: None, `max_size`: Some(618624), added: 621099, mode: `Measured`)
/// The range of component `n` is `[0, 3071]`.
fn add_onchain_message(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `7339`
// Estimated: `19714`
// Minimum execution time: 39_000_000 picoseconds.
Weight::from_parts(179_112_822, 19714)
// Standard Error: 35
.saturating_add(Weight::from_parts(459, 0).saturating_mul(n.into()))
// Measured: `9664`
// Estimated: `22039`
// Minimum execution time: 45_458_000 picoseconds.
Weight::from_parts(46_903_363, 22039)
// Standard Error: 59
.saturating_add(Weight::from_parts(1_062, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Schemas Schemas (r:1 w:0)
/// Proof: Schemas Schemas (max_values: None, max_size: Some(65518), added: 67993, mode: Measured)
/// Storage: Msa PublicKeyToMsaId (r:1 w:0)
/// Proof: Msa PublicKeyToMsaId (max_values: None, max_size: Some(48), added: 2523, mode: Measured)
/// Storage: Messages Messages (r:1 w:1)
/// Proof: Messages Messages (max_values: None, max_size: Some(771174), added: 773649, mode: Measured)
/// Storage: `Schemas::Schemas` (r:1 w:0)
/// Proof: `Schemas::Schemas` (`max_values`: None, `max_size`: Some(65518), added: 67993, mode: `Measured`)
/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `Measured`)
/// Storage: `Messages::Messages` (r:1 w:1)
/// Proof: `Messages::Messages` (`max_values`: None, `max_size`: Some(618624), added: 621099, mode: `Measured`)
fn add_ipfs_message() -> Weight {
// Proof Size summary in bytes:
// Measured: `6183`
// Estimated: `18558`
// Minimum execution time: 36_000_000 picoseconds.
Weight::from_parts(174_485_000, 18558)
// Measured: `7958`
// Estimated: `20333`
// Minimum execution time: 43_128_000 picoseconds.
Weight::from_parts(43_983_000, 20333)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand Down
Loading

0 comments on commit d70798e

Please sign in to comment.