Skip to content

Commit

Permalink
Update weights for release v1.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
do-not-reply committed Apr 12, 2023
1 parent 44a40c5 commit 834b2b5
Show file tree
Hide file tree
Showing 21 changed files with 487 additions and 535 deletions.
50 changes: 22 additions & 28 deletions pallets/capacity/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,24 @@
//! Autogenerated weights for pallet_capacity
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-17, STEPS: `50`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-04-12, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("frequency-bench"), DB CACHE: 1024
// Executed Command:
// ./target/production/frequency
// ./scripts/../target/production/frequency
// benchmark
// pallet
// --pallet
// pallet_capacity
// --pallet=pallet_capacity
// --extrinsic
// *
// --chain=frequency-bench
// --execution
// wasm
// --wasm-execution
// compiled
// --steps
// 50
// --repeat
// 10
// --output=./pallets/capacity/src/weights.rs
// --template=./.maintain/frame-weight-template.hbs
// --execution=wasm
// --heap-pages=4096
// --wasm-execution=compiled
// --steps=20
// --repeat=10
// --output=./scripts/../pallets/capacity/src/weights.rs
// --template=./scripts/../.maintain/frame-weight-template.hbs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(
Expand Down Expand Up @@ -70,37 +66,36 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Capacity CapacityLedger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
fn stake() -> Weight {
Weight::from_ref_time(44_077_000 as u64)
Weight::from_ref_time(42_362_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Capacity StakingAccountLedger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
fn withdraw_unstaked() -> Weight {
Weight::from_ref_time(35_554_000 as u64)
Weight::from_ref_time(34_619_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Capacity CurrentEpochInfo (r:1 w:1)
// Storage: Capacity EpochLength (r:1 w:0)
// Storage: Capacity CurrentEpochUsedCapacity (r:0 w:1)
fn on_initialize() -> Weight {
Weight::from_ref_time(7_183_000 as u64)
Weight::from_ref_time(6_563_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Capacity StakingAccountLedger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: Capacity StakingTargetLedger (r:1 w:1)
// Storage: Capacity CapacityLedger (r:1 w:1)
fn unstake() -> Weight {
Weight::from_ref_time(42_954_000 as u64)
Weight::from_ref_time(42_766_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)
fn set_epoch_length() -> Weight {
Weight::from_ref_time(13_055_000 as u64)
Weight::from_ref_time(13_168_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
}
Expand All @@ -113,37 +108,36 @@ impl WeightInfo for () {
// Storage: Capacity CapacityLedger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
fn stake() -> Weight {
Weight::from_ref_time(44_077_000 as u64)
Weight::from_ref_time(42_362_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: Capacity StakingAccountLedger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
fn withdraw_unstaked() -> Weight {
Weight::from_ref_time(35_554_000 as u64)
Weight::from_ref_time(34_619_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Capacity CurrentEpochInfo (r:1 w:1)
// Storage: Capacity EpochLength (r:1 w:0)
// Storage: Capacity CurrentEpochUsedCapacity (r:0 w:1)
fn on_initialize() -> Weight {
Weight::from_ref_time(7_183_000 as u64)
Weight::from_ref_time(6_563_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Capacity StakingAccountLedger (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: Capacity StakingTargetLedger (r:1 w:1)
// Storage: Capacity CapacityLedger (r:1 w:1)
fn unstake() -> Weight {
Weight::from_ref_time(42_954_000 as u64)
Weight::from_ref_time(42_766_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)
fn set_epoch_length() -> Weight {
Weight::from_ref_time(13_055_000 as u64)
Weight::from_ref_time(13_168_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-04-11, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-04-12, 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(5_446_000 as u64)
Weight::from_ref_time(5_295_000 as u64)
}
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
Weight::from_ref_time(14_021_898 as u64)
// Standard Error: 65_672
.saturating_add(Weight::from_ref_time(4_317_127 as u64).saturating_mul(n as u64))
Weight::from_ref_time(14_064_790 as u64)
// Standard Error: 55_203
.saturating_add(Weight::from_ref_time(4_398_730 as u64).saturating_mul(n as u64))
}
}

// For backwards compatibility and tests
impl WeightInfo for () {
fn pay_with_capacity() -> Weight {
Weight::from_ref_time(5_446_000 as u64)
Weight::from_ref_time(5_295_000 as u64)
}
fn pay_with_capacity_batch_all(n: u32, ) -> Weight {
Weight::from_ref_time(14_021_898 as u64)
// Standard Error: 65_672
.saturating_add(Weight::from_ref_time(4_317_127 as u64).saturating_mul(n as u64))
Weight::from_ref_time(14_064_790 as u64)
// Standard Error: 55_203
.saturating_add(Weight::from_ref_time(4_398_730 as u64).saturating_mul(n as u64))
}
}
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-04-04, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-04-12, 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 @@ -62,17 +62,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
// Storage: Messages Messages (r:1 w:1)
fn add_onchain_message(n: u32, ) -> Weight {
Weight::from_ref_time(150_375_758 as u64)
// Standard Error: 54
.saturating_add(Weight::from_ref_time(1_135 as u64).saturating_mul(n as u64))
Weight::from_ref_time(137_221_804 as u64)
// Standard Error: 27
.saturating_add(Weight::from_ref_time(1_280 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))
}
// Storage: Schemas Schemas (r:1 w:0)
// Storage: Msa PublicKeyToMsaId (r:1 w:0)
// Storage: Messages Messages (r:1 w:1)
fn add_ipfs_message() -> Weight {
Weight::from_ref_time(130_347_000 as u64)
Weight::from_ref_time(130_771_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -85,17 +85,17 @@ impl WeightInfo for () {
// Storage: Msa DelegatorAndProviderToDelegation (r:1 w:0)
// Storage: Messages Messages (r:1 w:1)
fn add_onchain_message(n: u32, ) -> Weight {
Weight::from_ref_time(150_375_758 as u64)
// Standard Error: 54
.saturating_add(Weight::from_ref_time(1_135 as u64).saturating_mul(n as u64))
Weight::from_ref_time(137_221_804 as u64)
// Standard Error: 27
.saturating_add(Weight::from_ref_time(1_280 as u64).saturating_mul(n as u64))
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Schemas Schemas (r:1 w:0)
// Storage: Msa PublicKeyToMsaId (r:1 w:0)
// Storage: Messages Messages (r:1 w:1)
fn add_ipfs_message() -> Weight {
Weight::from_ref_time(130_347_000 as u64)
Weight::from_ref_time(130_771_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
Expand Down
Loading

0 comments on commit 834b2b5

Please sign in to comment.