Skip to content

Commit

Permalink
feat: weights centrifuge
Browse files Browse the repository at this point in the history
  • Loading branch information
mustermeiszer committed Nov 10, 2023
1 parent af3b257 commit e315008
Show file tree
Hide file tree
Showing 35 changed files with 2,221 additions and 1,725 deletions.
21 changes: 12 additions & 9 deletions runtime/centrifuge/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! 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-28, 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`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -24,9 +24,10 @@
#![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: 9_087 nanoseconds.
Weight::from_parts(9_438_000, 637)
// Estimated: `1627`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(6_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_967 nanoseconds.
Weight::from_parts(9_167_000, 637)
// Estimated: `1627`
// Minimum execution time: 5_000_000 picoseconds.
Weight::from_parts(6_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
443 changes: 224 additions & 219 deletions runtime/centrifuge/src/weights/pallet_anchors.rs

Large diffs are not rendered by default.

91 changes: 54 additions & 37 deletions runtime/centrifuge/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_balances`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-28, 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`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -24,9 +24,10 @@
#![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,84 +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: `1834`
// Estimated: `2603`
// Minimum execution time: 72_876 nanoseconds.
Weight::from_parts(73_778_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: `1543`
// Estimated: `2603`
// Minimum execution time: 51_236 nanoseconds.
Weight::from_parts(52_187_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: `1868`
// Estimated: `2603`
// Minimum execution time: 39_745 nanoseconds.
Weight::from_parts(41_137_000, 2603)
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 15_000_000 picoseconds.
Weight::from_parts(16_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: `1868`
// Estimated: `2603`
// Minimum execution time: 45_606 nanoseconds.
Weight::from_parts(46_847_000, 2603)
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 23_000_000 picoseconds.
Weight::from_parts(23_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: `1834`
// Estimated: `5206`
// Minimum execution time: 72_325 nanoseconds.
Weight::from_parts(73_838_000, 5206)
// Measured: `192`
// Estimated: `6196`
// Minimum execution time: 61_000_000 picoseconds.
Weight::from_parts(62_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: `1543`
// Estimated: `2603`
// Minimum execution time: 61_184 nanoseconds.
Weight::from_parts(61_535_000, 2603)
// Measured: `52`
// Estimated: `3593`
// Minimum execution time: 55_000_000 picoseconds.
Weight::from_parts(57_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: `1577`
// Estimated: `2603`
// Minimum execution time: 32_491 nanoseconds.
Weight::from_parts(33_543_000, 2603)
// Measured: `207`
// Estimated: `3593`
// Minimum execution time: 18_000_000 picoseconds.
Weight::from_parts(19_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()
Weight::from_parts(34_183_000, 2603)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
/// 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: `145 + u * (136 ±0)`
// Estimated: `990 + u * (2603 ±0)`
// Minimum execution time: 18_000_000 picoseconds.
Weight::from_parts(18_000_000, 0)
.saturating_add(Weight::from_parts(0, 990))
// Standard Error: 6_525
.saturating_add(Weight::from_parts(15_428_167, 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()))
}
}
34 changes: 19 additions & 15 deletions runtime/centrifuge/src/weights/pallet_block_rewards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_block_rewards`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-28, 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`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -24,9 +24,10 @@
#![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: 59_271 nanoseconds.
Weight::from_parts(60_203_000, 12885)
// Measured: `583`
// Estimated: `6196`
// Minimum execution time: 61_000_000 picoseconds.
Weight::from_parts(62_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_073 nanoseconds.
Weight::from_parts(12_533_000, 3115)
// Measured: `106`
// Estimated: `3574`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(9_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_140 nanoseconds.
Weight::from_parts(11_442_000, 3115)
// Measured: `65`
// 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 Down
23 changes: 13 additions & 10 deletions runtime/centrifuge/src/weights/pallet_collator_allowlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_collator_allowlist`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-09-28, 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`
//! HOSTNAME: `kf-FG`, CPU: `<UNKNOWN>`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("centrifuge-dev"), DB CACHE: 1024
// Executed Command:
Expand All @@ -24,9 +24,10 @@
#![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_collator_allowlist`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand All @@ -37,10 +38,11 @@ impl<T: frame_system::Config> pallet_collator_allowlist::WeightInfo for WeightIn
/// Proof: CollatorAllowlist Allowlist (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
fn add() -> Weight {
// Proof Size summary in bytes:
// Measured: `556`
// Estimated: `5538`
// Minimum execution time: 26_079 nanoseconds.
Weight::from_parts(27_280_000, 5538)
// Measured: `524`
// Estimated: `3989`
// Minimum execution time: 16_000_000 picoseconds.
Weight::from_parts(16_000_000, 0)
.saturating_add(Weight::from_parts(0, 3989))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -49,9 +51,10 @@ impl<T: frame_system::Config> pallet_collator_allowlist::WeightInfo for WeightIn
fn remove() -> Weight {
// Proof Size summary in bytes:
// Measured: `232`
// Estimated: `2507`
// Minimum execution time: 19_596 nanoseconds.
Weight::from_parts(20_027_000, 2507)
// Estimated: `3497`
// Minimum execution time: 12_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(Weight::from_parts(0, 3497))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Loading

0 comments on commit e315008

Please sign in to comment.