Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update weights for PR #1581
  • Loading branch information
do-not-reply committed Jun 6, 2023
commit 060f33f667054ccdae1ede735379f42b46fa4176
22 changes: 11 additions & 11 deletions pallets/capacity/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_capacity
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-02, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-06, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -71,7 +71,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Balances Locks (r:1 w:1)
// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn stake() -> Weight {
Weight::from_ref_time(32_156_000 as u64)
Weight::from_ref_time(38_081_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
Expand All @@ -80,7 +80,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Balances Locks (r:1 w:1)
// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn withdraw_unstaked() -> Weight {
Weight::from_ref_time(24_075_000 as u64)
Weight::from_ref_time(27_909_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
Expand All @@ -89,7 +89,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Capacity EpochLength (r:1 w:0)
// Proof: Capacity EpochLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn on_initialize() -> Weight {
Weight::from_ref_time(3_401_000 as u64)
Weight::from_ref_time(3_998_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -102,14 +102,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Capacity CapacityLedger (r:1 w:1)
// Proof: Capacity CapacityLedger (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
fn unstake() -> Weight {
Weight::from_ref_time(33_559_000 as u64)
Weight::from_ref_time(37_883_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Capacity EpochLength (r:0 w:1)
// Proof: Capacity EpochLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn set_epoch_length() -> Weight {
Weight::from_ref_time(5_872_000 as u64)
Weight::from_ref_time(6_847_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
}
Expand All @@ -127,7 +127,7 @@ impl WeightInfo for () {
// Storage: Balances Locks (r:1 w:1)
// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn stake() -> Weight {
Weight::from_ref_time(32_156_000 as u64)
Weight::from_ref_time(38_081_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
Expand All @@ -136,7 +136,7 @@ impl WeightInfo for () {
// Storage: Balances Locks (r:1 w:1)
// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn withdraw_unstaked() -> Weight {
Weight::from_ref_time(24_075_000 as u64)
Weight::from_ref_time(27_909_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
Expand All @@ -145,7 +145,7 @@ impl WeightInfo for () {
// Storage: Capacity EpochLength (r:1 w:0)
// Proof: Capacity EpochLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn on_initialize() -> Weight {
Weight::from_ref_time(3_401_000 as u64)
Weight::from_ref_time(3_998_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
Expand All @@ -158,14 +158,14 @@ impl WeightInfo for () {
// Storage: Capacity CapacityLedger (r:1 w:1)
// Proof: Capacity CapacityLedger (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen)
fn unstake() -> Weight {
Weight::from_ref_time(33_559_000 as u64)
Weight::from_ref_time(37_883_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: Capacity EpochLength (r:0 w:1)
// Proof: Capacity EpochLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn set_epoch_length() -> Weight {
Weight::from_ref_time(5_872_000 as u64)
Weight::from_ref_time(6_847_000 as u64)
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
}
18 changes: 9 additions & 9 deletions pallets/frequency-tx-payment/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_frequency_tx_payment
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-02, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-06, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -58,23 +58,23 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn pay_with_capacity() -> Weight {
Weight::from_ref_time(3_174_000 as u64)
Weight::from_ref_time(3_604_000 as u64)
}
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
Weight::from_ref_time(6_732_332 as u64)
// Standard Error: 45_147
.saturating_add(Weight::from_ref_time(4_717_967 as u64).saturating_mul(n as u64))
Weight::from_ref_time(7_708_423 as u64)
// Standard Error: 59_575
.saturating_add(Weight::from_ref_time(5_553_720 as u64).saturating_mul(n as u64))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
fn pay_with_capacity() -> Weight {
Weight::from_ref_time(3_174_000 as u64)
Weight::from_ref_time(3_604_000 as u64)
}
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
Weight::from_ref_time(6_732_332 as u64)
// Standard Error: 45_147
.saturating_add(Weight::from_ref_time(4_717_967 as u64).saturating_mul(n as u64))
Weight::from_ref_time(7_708_423 as u64)
// Standard Error: 59_575
.saturating_add(Weight::from_ref_time(5_553_720 as u64).saturating_mul(n as u64))
}
}
18 changes: 9 additions & 9 deletions pallets/handles/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_handles
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-02, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-06, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -66,9 +66,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Handles CanonicalBaseHandleAndSuffixToMSAId (r:0 w:1)
// Proof: Handles CanonicalBaseHandleAndSuffixToMSAId (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
fn claim_handle(b: u32, ) -> Weight {
Weight::from_ref_time(83_082_060 as u64)
// Standard Error: 25_315
.saturating_add(Weight::from_ref_time(58_568 as u64).saturating_mul(b as u64))
Weight::from_ref_time(86_967_867 as u64)
// Standard Error: 16_982
.saturating_add(Weight::from_ref_time(86_719 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
Expand All @@ -79,7 +79,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Handles CanonicalBaseHandleAndSuffixToMSAId (r:0 w:1)
// Proof: Handles CanonicalBaseHandleAndSuffixToMSAId (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
fn retire_handle() -> Weight {
Weight::from_ref_time(21_849_000 as u64)
Weight::from_ref_time(26_559_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
Expand All @@ -96,9 +96,9 @@ impl WeightInfo for () {
// Storage: Handles CanonicalBaseHandleAndSuffixToMSAId (r:0 w:1)
// Proof: Handles CanonicalBaseHandleAndSuffixToMSAId (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
fn claim_handle(b: u32, ) -> Weight {
Weight::from_ref_time(83_082_060 as u64)
// Standard Error: 25_315
.saturating_add(Weight::from_ref_time(58_568 as u64).saturating_mul(b as u64))
Weight::from_ref_time(86_967_867 as u64)
// Standard Error: 16_982
.saturating_add(Weight::from_ref_time(86_719 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
Expand All @@ -109,7 +109,7 @@ impl WeightInfo for () {
// Storage: Handles CanonicalBaseHandleAndSuffixToMSAId (r:0 w:1)
// Proof: Handles CanonicalBaseHandleAndSuffixToMSAId (max_values: None, max_size: Some(67), added: 2542, mode: MaxEncodedLen)
fn retire_handle() -> Weight {
Weight::from_ref_time(21_849_000 as u64)
Weight::from_ref_time(26_559_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
Expand Down
18 changes: 9 additions & 9 deletions pallets/messages/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_messages
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-06-02, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-06, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -66,9 +66,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Messages Messages (r:1 w:1)
// Proof Skipped: Messages Messages (max_values: None, max_size: None, mode: Measured)
fn add_onchain_message(n: u32, ) -> Weight {
Weight::from_ref_time(140_639_471 as u64)
// Standard Error: 41
.saturating_add(Weight::from_ref_time(1_521 as u64).saturating_mul(n as u64))
Weight::from_ref_time(166_790_243 as u64)
// Standard Error: 42
.saturating_add(Weight::from_ref_time(1_553 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -79,7 +79,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Messages Messages (r:1 w:1)
// Proof Skipped: Messages Messages (max_values: None, max_size: None, mode: Measured)
fn add_ipfs_message() -> Weight {
Weight::from_ref_time(139_499_000 as u64)
Weight::from_ref_time(158_938_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -96,9 +96,9 @@ impl WeightInfo for () {
// Storage: Messages Messages (r:1 w:1)
// Proof Skipped: Messages Messages (max_values: None, max_size: None, mode: Measured)
fn add_onchain_message(n: u32, ) -> Weight {
Weight::from_ref_time(140_639_471 as u64)
// Standard Error: 41
.saturating_add(Weight::from_ref_time(1_521 as u64).saturating_mul(n as u64))
Weight::from_ref_time(166_790_243 as u64)
// Standard Error: 42
.saturating_add(Weight::from_ref_time(1_553 as u64).saturating_mul(n as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
Expand All @@ -109,7 +109,7 @@ impl WeightInfo for () {
// Storage: Messages Messages (r:1 w:1)
// Proof Skipped: Messages Messages (max_values: None, max_size: None, mode: Measured)
fn add_ipfs_message() -> Weight {
Weight::from_ref_time(139_499_000 as u64)
Weight::from_ref_time(158_938_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
Expand Down
Loading