Files
pezkuwi-subxt/polkadot/runtime/rococo/src/weights/pallet_tips.rs
T
Oleg Plakida 5e7ade9037 Revert back to bare metal runners for weights generation (#6762)
* Revert back to bare metal runners for weights generation

* new old weights

---------

Co-authored-by: alvicsam <alvicsam@gmail.com>
2023-02-23 11:50:43 +01:00

160 lines
6.8 KiB
Rust

// Copyright 2017-2022 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-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm6`, 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)]
use frame_support::{traits::Get, weights::Weight};
use sp_std::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: `4958`
// Minimum execution time: 21_346 nanoseconds.
Weight::from_ref_time(22_419_409)
.saturating_add(Weight::from_proof_size(4958))
// Standard Error: 4
.saturating_add(Weight::from_ref_time(1_802).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: `253`
// Estimated: `2981`
// Minimum execution time: 21_124 nanoseconds.
Weight::from_ref_time(21_611_000)
.saturating_add(Weight::from_proof_size(2981))
.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: `106 + t * (64 ±0)`
// Estimated: `3288 + t * (192 ±0)`
// Minimum execution time: 18_905 nanoseconds.
Weight::from_ref_time(17_679_692)
.saturating_add(Weight::from_proof_size(3288))
// Standard Error: 6
.saturating_add(Weight::from_ref_time(1_687).saturating_mul(r.into()))
// Standard Error: 5_551
.saturating_add(Weight::from_ref_time(117_206).saturating_mul(t.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_proof_size(192).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: `359 + t * (112 ±0)`
// Estimated: `3688 + t * (224 ±0)`
// Minimum execution time: 14_034 nanoseconds.
Weight::from_ref_time(14_659_563)
.saturating_add(Weight::from_proof_size(3688))
// Standard Error: 1_435
.saturating_add(Weight::from_ref_time(137_685).saturating_mul(t.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_proof_size(224).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: `398 + t * (112 ±0)`
// Estimated: `6740 + t * (336 ±0)`
// Minimum execution time: 39_378 nanoseconds.
Weight::from_ref_time(40_903_902)
.saturating_add(Weight::from_proof_size(6740))
// Standard Error: 4_890
.saturating_add(Weight::from_ref_time(127_148).saturating_mul(t.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_proof_size(336).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: `301`
// Estimated: `3077`
// Minimum execution time: 14_080 nanoseconds.
Weight::from_ref_time(14_660_927)
.saturating_add(Weight::from_proof_size(3077))
// Standard Error: 1_257
.saturating_add(Weight::from_ref_time(4_596).saturating_mul(t.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
}