Skip to content

Commit

Permalink
feat: weights development
Browse files Browse the repository at this point in the history
  • Loading branch information
mustermeiszer committed Nov 10, 2023
1 parent e315008 commit 56e87d5
Show file tree
Hide file tree
Showing 38 changed files with 2,700 additions and 2,111 deletions.
27 changes: 15 additions & 12 deletions runtime/development/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,32 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("development-local"), DB CACHE: 1024
// Executed Command:
// target/release/centrifuge-chain
// benchmark
// pallet
// --chain=centrifuge-dev
// --chain=development-local
// --steps=50
// --repeat=20
// --pallet=cumulus_pallet_xcmp_queue
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=/tmp/runtime/centrifuge/src/weights/cumulus_pallet_xcmp_queue.rs
// --output=/tmp/runtime/development/src/weights/cumulus_pallet_xcmp_queue.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `cumulus_pallet_xcmp_queue`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand All @@ -36,9 +37,10 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
fn set_config_with_u32() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `637`
// Minimum execution time: 8_587 nanoseconds.
Weight::from_parts(9_057_000, 637)
// Estimated: `1627`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(5_000_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -47,9 +49,10 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
fn set_config_with_weight() -> Weight {
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `637`
// Minimum execution time: 8_636 nanoseconds.
Weight::from_parts(9_037_000, 637)
// Estimated: `1627`
// Minimum execution time: 5_000_000 picoseconds.
Weight::from_parts(5_000_000, 0)
.saturating_add(Weight::from_parts(0, 1627))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
3 changes: 2 additions & 1 deletion runtime/development/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ pub mod pallet_elections_phragmen;
pub mod pallet_fees;
pub mod pallet_identity;
pub mod pallet_interest_accrual;
pub mod pallet_investments;
pub mod pallet_keystore;
pub mod pallet_liquidity_pools;
pub mod pallet_loans;
pub mod pallet_migration_manager;
pub mod pallet_multisig;
Expand All @@ -44,4 +46,3 @@ pub mod pallet_treasury;
pub mod pallet_uniques;
pub mod pallet_utility;
pub mod pallet_vesting;
pub mod pallet_xcm;
451 changes: 228 additions & 223 deletions runtime/development/src/weights/pallet_anchors.rs

Large diffs are not rendered by default.

94 changes: 57 additions & 37 deletions runtime/development/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,32 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("development-local"), DB CACHE: 1024
// Executed Command:
// target/release/centrifuge-chain
// benchmark
// pallet
// --chain=centrifuge-dev
// --chain=development-local
// --steps=50
// --repeat=20
// --pallet=pallet_balances
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=/tmp/runtime/centrifuge/src/weights/pallet_balances.rs
// --output=/tmp/runtime/development/src/weights/pallet_balances.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `pallet_balances`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand All @@ -35,81 +36,100 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer_allow_death() -> Weight {
// Proof Size summary in bytes:
// Measured: `1829`
// Estimated: `2603`
// Minimum execution time: 73_337 nanoseconds.
Weight::from_parts(74_117_000, 2603)
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 58_000_000 picoseconds.
Weight::from_parts(59_000_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes:
// Measured: `1538`
// Estimated: `2603`
// Minimum execution time: 52_207 nanoseconds.
Weight::from_parts(53_409_000, 2603)
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 43_000_000 picoseconds.
Weight::from_parts(44_000_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_set_balance_creating() -> Weight {
// Proof Size summary in bytes:
// Measured: `1863`
// Estimated: `2603`
// Minimum execution time: 39_463 nanoseconds.
Weight::from_parts(40_666_000, 2603)
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 14_000_000 picoseconds.
Weight::from_parts(15_000_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_set_balance_killing() -> Weight {
// Proof Size summary in bytes:
// Measured: `1863`
// Estimated: `2603`
// Minimum execution time: 45_765 nanoseconds.
Weight::from_parts(46_747_000, 2603)
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 21_000_000 picoseconds.
Weight::from_parts(22_000_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: System Account (r:2 w:2)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_transfer() -> Weight {
// Proof Size summary in bytes:
// Measured: `1829`
// Estimated: `5206`
// Minimum execution time: 73_607 nanoseconds.
Weight::from_parts(74_519_000, 5206)
// Measured: `192`
// Estimated: `6196`
// Minimum execution time: 60_000_000 picoseconds.
Weight::from_parts(61_000_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn transfer_all() -> Weight {
// Proof Size summary in bytes:
// Measured: `1538`
// Estimated: `2603`
// Minimum execution time: 61_054 nanoseconds.
Weight::from_parts(62_206_000, 2603)
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 55_000_000 picoseconds.
Weight::from_parts(56_000_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn force_unreserve() -> Weight {
// Proof Size summary in bytes:
// Measured: `1572`
// Estimated: `2603`
// Minimum execution time: 33_031 nanoseconds.
Weight::from_parts(34_183_000, 2603)
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 17_000_000 picoseconds.
Weight::from_parts(18_000_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}

fn upgrade_accounts(_u: u32) -> Weight {
todo!()
/// Storage: System Account (r:999 w:999)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `u` is `[1, 1000]`.
fn upgrade_accounts(u: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `117 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 17_000_000 picoseconds.
Weight::from_parts(17_000_000, 0)
.saturating_add(Weight::from_parts(0, 990))
// Standard Error: 7_741
.saturating_add(Weight::from_parts(15_474_770, 0).saturating_mul(u.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
}
}
40 changes: 22 additions & 18 deletions runtime/development/src/weights/pallet_block_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,32 @@
//! Autogenerated weights for `pallet_block_rewards`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-11-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner`, CPU: `AMD EPYC 7763 64-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("development-local"), DB CACHE: 1024
// Executed Command:
// target/release/centrifuge-chain
// benchmark
// pallet
// --chain=centrifuge-dev
// --chain=development-local
// --steps=50
// --repeat=20
// --pallet=pallet_block_rewards
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=/tmp/runtime/centrifuge/src/weights/pallet_block_rewards.rs
// --output=/tmp/runtime/development/src/weights/pallet_block_rewards.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `pallet_block_rewards`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand All @@ -41,10 +42,11 @@ impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T>
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn claim_reward() -> Weight {
// Proof Size summary in bytes:
// Measured: `678`
// Estimated: `12885`
// Minimum execution time: 58_770 nanoseconds.
Weight::from_parts(60_482_000, 12885)
// Measured: `516`
// Estimated: `6196`
// Minimum execution time: 60_000_000 picoseconds.
Weight::from_parts(61_000_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -54,10 +56,11 @@ impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T>
/// Proof: BlockRewards ActiveSessionData (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)
fn set_collator_reward() -> Weight {
// Proof Size summary in bytes:
// Measured: `138`
// Estimated: `3115`
// Minimum execution time: 12_142 nanoseconds.
Weight::from_parts(12_674_000, 3115)
// Measured: `106`
// Estimated: `3574`
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
.saturating_add(Weight::from_parts(0, 3574))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -67,10 +70,11 @@ impl<T: frame_system::Config> pallet_block_rewards::WeightInfo for WeightInfo<T>
/// Proof: BlockRewards ActiveSessionData (max_values: Some(1), max_size: Some(36), added: 531, mode: MaxEncodedLen)
fn set_total_reward() -> Weight {
// Proof Size summary in bytes:
// Measured: `97`
// Estimated: `3115`
// Minimum execution time: 11_201 nanoseconds.
Weight::from_parts(11_511_000, 3115)
// Measured: `65`
// Estimated: `3574`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(7_000_000, 0)
.saturating_add(Weight::from_parts(0, 3574))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Loading

0 comments on commit 56e87d5

Please sign in to comment.