-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
196 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
|
||
//! Autogenerated weights for `pallet_staking` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 | ||
//! DATE: 2024-07-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `gpestanas-MacBook-Pro.local`, CPU: `<UNKNOWN>` | ||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 | ||
// Executed Command: | ||
// /Users/gpestana/cargo_target/release/substrate-node | ||
// benchmark | ||
// pallet | ||
// --execution | ||
// wasm | ||
// --wasm-execution | ||
// compiled | ||
// --chain | ||
// dev | ||
// --pallet | ||
// pallet-staking | ||
// --extrinsic | ||
// payout_stakers_alive_staked | ||
// --output | ||
// payout_stake_tracker-weights.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_staking`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_staking::WeightInfo for WeightInfo<T> { | ||
/// Storage: `Staking::Bonded` (r:257 w:0) | ||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::Ledger` (r:257 w:257) | ||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::ErasStakersClipped` (r:1 w:0) | ||
/// Proof: `Staking::ErasStakersClipped` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
/// Storage: `Staking::ErasStakersOverview` (r:1 w:0) | ||
/// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::ClaimedRewards` (r:1 w:1) | ||
/// Proof: `Staking::ClaimedRewards` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
/// Storage: `Staking::CurrentEra` (r:1 w:0) | ||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::ErasValidatorReward` (r:1 w:0) | ||
/// Proof: `Staking::ErasValidatorReward` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::ErasStakersPaged` (r:1 w:0) | ||
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
/// Storage: `Staking::VirtualStakers` (r:257 w:0) | ||
/// Proof: `Staking::VirtualStakers` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`) | ||
/// Storage: `Balances::Locks` (r:257 w:257) | ||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`) | ||
/// Storage: `Balances::Freezes` (r:257 w:0) | ||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`) | ||
/// Storage: `System::Account` (r:257 w:257) | ||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::ErasRewardPoints` (r:1 w:0) | ||
/// Proof: `Staking::ErasRewardPoints` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
/// Storage: `Staking::ErasValidatorPrefs` (r:1 w:0) | ||
/// Proof: `Staking::ErasValidatorPrefs` (`max_values`: None, `max_size`: Some(57), added: 2532, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::Payee` (r:257 w:0) | ||
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::Validators` (r:257 w:0) | ||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`) | ||
/// Storage: `Staking::Nominators` (r:257 w:0) | ||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`) | ||
/// Storage: `TargetList::ListNodes` (r:1401 w:1401) | ||
/// Proof: `TargetList::ListNodes` (`max_values`: None, `max_size`: Some(170), added: 2645, mode: `MaxEncodedLen`) | ||
/// The range of component `n` is `[0, 256]`. | ||
fn payout_stakers_alive_staked(n: u32, ) -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `150110 + n * (2242 ±0)` | ||
// Estimated: `898139 + n * (13165 ±0)` | ||
// Minimum execution time: 243_000_000 picoseconds. | ||
Weight::from_parts(912_124_555, 0) | ||
.saturating_add(Weight::from_parts(0, 898139)) | ||
// Standard Error: 433_301 | ||
.saturating_add(Weight::from_parts(195_832_335, 0).saturating_mul(n.into())) | ||
.saturating_add(T::DbWeight::get().reads(356)) | ||
.saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) | ||
.saturating_add(T::DbWeight::get().writes(343)) | ||
.saturating_add(T::DbWeight::get().writes((8_u64).saturating_mul(n.into()))) | ||
.saturating_add(Weight::from_parts(0, 13165).saturating_mul(n.into())) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters