mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 02:51:01 +00:00
0119a6dae1
* [DO NOT MERGE] test new vm runner for weights 2 * add image * fix merge conflict * apply weights * new weights Co-authored-by: parity-processbot <>
108 lines
4.1 KiB
Rust
108 lines
4.1 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_treasury`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=kusama-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_treasury
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/kusama/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_treasury`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_treasury::WeightInfo for WeightInfo<T> {
|
|
// Storage: Treasury ProposalCount (r:1 w:1)
|
|
// Storage: Treasury Approvals (r:1 w:1)
|
|
// Storage: Treasury Proposals (r:0 w:1)
|
|
fn spend() -> Weight {
|
|
// Minimum execution time: 18_551 nanoseconds.
|
|
Weight::from_ref_time(19_100_000)
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
// Storage: Treasury ProposalCount (r:1 w:1)
|
|
// Storage: Treasury Proposals (r:0 w:1)
|
|
fn propose_spend() -> Weight {
|
|
// Minimum execution time: 27_449 nanoseconds.
|
|
Weight::from_ref_time(28_614_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Treasury Proposals (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn reject_proposal() -> Weight {
|
|
// Minimum execution time: 41_099 nanoseconds.
|
|
Weight::from_ref_time(42_271_000)
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Treasury Proposals (r:1 w:0)
|
|
// Storage: Treasury Approvals (r:1 w:1)
|
|
/// The range of component `p` is `[0, 99]`.
|
|
fn approve_proposal(p: u32, ) -> Weight {
|
|
// Minimum execution time: 9_660 nanoseconds.
|
|
Weight::from_ref_time(11_986_657)
|
|
// Standard Error: 1_422
|
|
.saturating_add(Weight::from_ref_time(123_552).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Treasury Approvals (r:1 w:1)
|
|
fn remove_approval() -> Weight {
|
|
// Minimum execution time: 7_880 nanoseconds.
|
|
Weight::from_ref_time(8_281_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Treasury Deactivated (r:1 w:1)
|
|
// Storage: Balances InactiveIssuance (r:1 w:1)
|
|
// Storage: Treasury Approvals (r:1 w:1)
|
|
// Storage: Bounties BountyApprovals (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
// Storage: Treasury Proposals (r:2 w:2)
|
|
/// The range of component `p` is `[0, 100]`.
|
|
fn on_initialize_proposals(p: u32, ) -> Weight {
|
|
// Minimum execution time: 62_209 nanoseconds.
|
|
Weight::from_ref_time(70_300_386)
|
|
// Standard Error: 9_890
|
|
.saturating_add(Weight::from_ref_time(29_775_097).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5))
|
|
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into())))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into())))
|
|
}
|
|
}
|