Skip to content

Commit

Permalink
Update weights for PR #1743
Browse files Browse the repository at this point in the history
  • Loading branch information
do-not-reply committed Nov 10, 2023
1 parent 7577903 commit 8df2685
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 124 deletions.
88 changes: 44 additions & 44 deletions pallets/messages/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_messages
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-02, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-11-10, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `benchmark-runner-44wtw-n2ql6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! HOSTNAME: `benchmark-runner-44wtw-d4nrm`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -57,77 +57,77 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `Measured`)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `Measured`)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// 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`)
/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
/// Storage: `Messages::MessagesV2` (r:0 w:1)
/// Proof: `Messages::MessagesV2` (`max_values`: None, `max_size`: Some(3123), added: 5598, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 3071]`.
fn add_onchain_message(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `9623`
// Estimated: `21998`
// Minimum execution time: 46_448_000 picoseconds.
Weight::from_parts(47_830_962, 21998)
// Standard Error: 67
.saturating_add(Weight::from_parts(957, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
// Measured: `402`
// Estimated: `12592`
// Minimum execution time: 32_164_000 picoseconds.
Weight::from_parts(33_345_645, 12592)
// Standard Error: 43
.saturating_add(Weight::from_parts(848, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `Measured`)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// 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`)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Messages::MessagesV2` (r:0 w:1)
/// Proof: `Messages::MessagesV2` (`max_values`: None, `max_size`: Some(3123), added: 5598, mode: `MaxEncodedLen`)
fn add_ipfs_message() -> Weight {
// Proof Size summary in bytes:
// Measured: `7833`
// Estimated: `20208`
// Minimum execution time: 45_816_000 picoseconds.
Weight::from_parts(47_622_000, 20208)
.saturating_add(T::DbWeight::get().reads(3_u64))
// Measured: `790`
// Estimated: `12423`
// Minimum execution time: 31_839_000 picoseconds.
Weight::from_parts(32_576_000, 12423)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `Measured`)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// Storage: `Msa::PublicKeyToMsaId` (r:1 w:0)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `Measured`)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// 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`)
/// Proof: `Msa::DelegatorAndProviderToDelegation` (`max_values`: None, `max_size`: Some(217), added: 2692, mode: `MaxEncodedLen`)
/// Storage: `Messages::MessagesV2` (r:0 w:1)
/// Proof: `Messages::MessagesV2` (`max_values`: None, `max_size`: Some(3123), added: 5598, mode: `MaxEncodedLen`)
/// The range of component `n` is `[0, 3071]`.
fn add_onchain_message(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `9623`
// Estimated: `21998`
// Minimum execution time: 46_448_000 picoseconds.
Weight::from_parts(47_830_962, 21998)
// Standard Error: 67
.saturating_add(Weight::from_parts(957, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
// Measured: `402`
// Estimated: `12592`
// Minimum execution time: 32_164_000 picoseconds.
Weight::from_parts(33_345_645, 12592)
// Standard Error: 43
.saturating_add(Weight::from_parts(848, 0).saturating_mul(n.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `Schemas::SchemaInfos` (r:1 w:0)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `Measured`)
/// Proof: `Schemas::SchemaInfos` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
/// 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`)
/// Proof: `Msa::PublicKeyToMsaId` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Messages::MessagesV2` (r:0 w:1)
/// Proof: `Messages::MessagesV2` (`max_values`: None, `max_size`: Some(3123), added: 5598, mode: `MaxEncodedLen`)
fn add_ipfs_message() -> Weight {
// Proof Size summary in bytes:
// Measured: `7833`
// Estimated: `20208`
// Minimum execution time: 45_816_000 picoseconds.
Weight::from_parts(47_622_000, 20208)
.saturating_add(RocksDbWeight::get().reads(3_u64))
// Measured: `790`
// Estimated: `12423`
// Minimum execution time: 31_839_000 picoseconds.
Weight::from_parts(32_576_000, 12423)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
76 changes: 38 additions & 38 deletions pallets/schemas/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
//! Autogenerated weights for pallet_schemas
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-11-02, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-11-10, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `benchmark-runner-44wtw-n2ql6`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! HOSTNAME: `benchmark-runner-44wtw-d4nrm`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -72,10 +72,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `10399`
// Minimum execution time: 15_624_000 picoseconds.
Weight::from_parts(15_710_000, 10399)
// Standard Error: 44
.saturating_add(Weight::from_parts(33_970, 0).saturating_mul(m.into()))
// Minimum execution time: 15_733_000 picoseconds.
Weight::from_parts(16_003_000, 10399)
// Standard Error: 43
.saturating_add(Weight::from_parts(34_311, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -92,10 +92,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `10399`
// Minimum execution time: 15_741_000 picoseconds.
Weight::from_parts(15_821_000, 10399)
// Standard Error: 45
.saturating_add(Weight::from_parts(34_049, 0).saturating_mul(m.into()))
// Minimum execution time: 15_842_000 picoseconds.
Weight::from_parts(16_036_000, 10399)
// Standard Error: 47
.saturating_add(Weight::from_parts(34_330, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -114,10 +114,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `230`
// Estimated: `12605`
// Minimum execution time: 21_689_000 picoseconds.
Weight::from_parts(10_698_818, 12605)
// Standard Error: 33
.saturating_add(Weight::from_parts(3_122, 0).saturating_mul(m.into()))
// Minimum execution time: 21_487_000 picoseconds.
Weight::from_parts(11_162_870, 12605)
// Standard Error: 31
.saturating_add(Weight::from_parts(3_121, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -134,10 +134,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `10399`
// Minimum execution time: 15_629_000 picoseconds.
Weight::from_parts(15_771_000, 10399)
// Standard Error: 41
.saturating_add(Weight::from_parts(34_326, 0).saturating_mul(m.into()))
// Minimum execution time: 15_775_000 picoseconds.
Weight::from_parts(15_884_000, 10399)
// Standard Error: 48
.saturating_add(Weight::from_parts(34_322, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -147,8 +147,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_005_000 picoseconds.
Weight::from_parts(7_235_000, 0)
// Minimum execution time: 6_505_000 picoseconds.
Weight::from_parts(6_843_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
Expand All @@ -168,10 +168,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `10399`
// Minimum execution time: 15_624_000 picoseconds.
Weight::from_parts(15_710_000, 10399)
// Standard Error: 44
.saturating_add(Weight::from_parts(33_970, 0).saturating_mul(m.into()))
// Minimum execution time: 15_733_000 picoseconds.
Weight::from_parts(16_003_000, 10399)
// Standard Error: 43
.saturating_add(Weight::from_parts(34_311, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
Expand All @@ -188,10 +188,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `10399`
// Minimum execution time: 15_741_000 picoseconds.
Weight::from_parts(15_821_000, 10399)
// Standard Error: 45
.saturating_add(Weight::from_parts(34_049, 0).saturating_mul(m.into()))
// Minimum execution time: 15_842_000 picoseconds.
Weight::from_parts(16_036_000, 10399)
// Standard Error: 47
.saturating_add(Weight::from_parts(34_330, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
Expand All @@ -210,10 +210,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `230`
// Estimated: `12605`
// Minimum execution time: 21_689_000 picoseconds.
Weight::from_parts(10_698_818, 12605)
// Standard Error: 33
.saturating_add(Weight::from_parts(3_122, 0).saturating_mul(m.into()))
// Minimum execution time: 21_487_000 picoseconds.
Weight::from_parts(11_162_870, 12605)
// Standard Error: 31
.saturating_add(Weight::from_parts(3_121, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
}
Expand All @@ -230,10 +230,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `136`
// Estimated: `10399`
// Minimum execution time: 15_629_000 picoseconds.
Weight::from_parts(15_771_000, 10399)
// Standard Error: 41
.saturating_add(Weight::from_parts(34_326, 0).saturating_mul(m.into()))
// Minimum execution time: 15_775_000 picoseconds.
Weight::from_parts(15_884_000, 10399)
// Standard Error: 48
.saturating_add(Weight::from_parts(34_322, 0).saturating_mul(m.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(3_u64))
}
Expand All @@ -243,8 +243,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 7_005_000 picoseconds.
Weight::from_parts(7_235_000, 0)
// Minimum execution time: 6_505_000 picoseconds.
Weight::from_parts(6_843_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}
Loading

0 comments on commit 8df2685

Please sign in to comment.