mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 07:55:42 +00:00
958cf435b1
* polkadot: update weights * westend: update weights * kusama: update weights * rococo: update weights
162 lines
6.8 KiB
Rust
162 lines
6.8 KiB
Rust
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Polkadot is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_tips`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-05-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=rococo-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_tips
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/rococo/src/weights/
|
|
|
|
#![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_tips`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_tips::WeightInfo for WeightInfo<T> {
|
|
/// Storage: Tips Reasons (r:1 w:1)
|
|
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Tips Tips (r:1 w:1)
|
|
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `r` is `[0, 16384]`.
|
|
fn report_awesome(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `4`
|
|
// Estimated: `3469`
|
|
// Minimum execution time: 27_741_000 picoseconds.
|
|
Weight::from_parts(28_495_173, 0)
|
|
.saturating_add(Weight::from_parts(0, 3469))
|
|
// Standard Error: 4
|
|
.saturating_add(Weight::from_parts(1_433, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: Tips Tips (r:1 w:1)
|
|
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Tips Reasons (r:0 w:1)
|
|
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
|
fn retract_tip() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `221`
|
|
// Estimated: `3686`
|
|
// Minimum execution time: 27_275_000 picoseconds.
|
|
Weight::from_parts(27_649_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3686))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: PhragmenElection Members (r:1 w:0)
|
|
/// Proof Skipped: PhragmenElection Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Tips Reasons (r:1 w:1)
|
|
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Tips Tips (r:0 w:1)
|
|
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `r` is `[0, 16384]`.
|
|
/// The range of component `t` is `[1, 19]`.
|
|
fn tip_new(r: u32, t: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `74 + t * (64 ±0)`
|
|
// Estimated: `3539 + t * (64 ±0)`
|
|
// Minimum execution time: 19_809_000 picoseconds.
|
|
Weight::from_parts(18_182_607, 0)
|
|
.saturating_add(Weight::from_parts(0, 3539))
|
|
// Standard Error: 5
|
|
.saturating_add(Weight::from_parts(1_303, 0).saturating_mul(r.into()))
|
|
// Standard Error: 5_156
|
|
.saturating_add(Weight::from_parts(151_789, 0).saturating_mul(t.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(Weight::from_parts(0, 64).saturating_mul(t.into()))
|
|
}
|
|
/// Storage: PhragmenElection Members (r:1 w:0)
|
|
/// Proof Skipped: PhragmenElection Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Tips Tips (r:1 w:1)
|
|
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `t` is `[1, 19]`.
|
|
fn tip(t: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `295 + t * (112 ±0)`
|
|
// Estimated: `3760 + t * (112 ±0)`
|
|
// Minimum execution time: 15_528_000 picoseconds.
|
|
Weight::from_parts(15_717_755, 0)
|
|
.saturating_add(Weight::from_parts(0, 3760))
|
|
// Standard Error: 6_569
|
|
.saturating_add(Weight::from_parts(146_426, 0).saturating_mul(t.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
.saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into()))
|
|
}
|
|
/// Storage: Tips Tips (r:1 w:1)
|
|
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: PhragmenElection Members (r:1 w:0)
|
|
/// Proof Skipped: PhragmenElection Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Tips Reasons (r:0 w:1)
|
|
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `t` is `[1, 19]`.
|
|
fn close_tip(t: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `334 + t * (112 ±0)`
|
|
// Estimated: `3790 + t * (112 ±0)`
|
|
// Minimum execution time: 58_304_000 picoseconds.
|
|
Weight::from_parts(60_138_785, 0)
|
|
.saturating_add(Weight::from_parts(0, 3790))
|
|
// Standard Error: 7_636
|
|
.saturating_add(Weight::from_parts(86_665, 0).saturating_mul(t.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
.saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into()))
|
|
}
|
|
/// Storage: Tips Tips (r:1 w:1)
|
|
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Tips Reasons (r:0 w:1)
|
|
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `t` is `[1, 19]`.
|
|
fn slash_tip(t: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `269`
|
|
// Estimated: `3734`
|
|
// Minimum execution time: 15_097_000 picoseconds.
|
|
Weight::from_parts(15_497_872, 0)
|
|
.saturating_add(Weight::from_parts(0, 3734))
|
|
// Standard Error: 785
|
|
.saturating_add(Weight::from_parts(18_377, 0).saturating_mul(t.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
}
|