mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 02:07:55 +00:00
2515d4ea2a
* benchmarks update * Updated benchmarks * fex benchmarks
154 lines
7.2 KiB
Rust
154 lines
7.2 KiB
Rust
|
|
//! Autogenerated weights for `pallet_treasury`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
|
|
//! DATE: 2024-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `ip-172-31-15-118`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// target/release/evm-template-node
|
|
// benchmark
|
|
// pallet
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=benchmarking/results/results-pallet_treasury.json
|
|
// --pallet=pallet_treasury
|
|
// --chain=dev
|
|
// --output=benchmarking/new-benchmarks/pallet_treasury.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_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)
|
|
/// Proof: `Treasury::ProposalCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
/// Storage: `Treasury::Approvals` (r:1 w:1)
|
|
/// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
|
|
/// Storage: `Treasury::Proposals` (r:0 w:1)
|
|
/// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
fn spend_local() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `42`
|
|
// Estimated: `1887`
|
|
// Minimum execution time: 15_540_000 picoseconds.
|
|
Weight::from_parts(15_857_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1887))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Treasury::Approvals` (r:1 w:1)
|
|
/// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
|
|
fn remove_approval() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `127`
|
|
// Estimated: `1887`
|
|
// Minimum execution time: 8_609_000 picoseconds.
|
|
Weight::from_parts(8_811_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1887))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `System::Account` (r:100 w:100)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
|
|
/// Storage: `Treasury::Deactivated` (r:1 w:1)
|
|
/// Proof: `Treasury::Deactivated` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Treasury::Approvals` (r:1 w:1)
|
|
/// Proof: `Treasury::Approvals` (`max_values`: Some(1), `max_size`: Some(402), added: 897, mode: `MaxEncodedLen`)
|
|
/// Storage: `Treasury::Proposals` (r:99 w:99)
|
|
/// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[0, 99]`.
|
|
fn on_initialize_proposals(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `98 + p * (137 ±0)`
|
|
// Estimated: `3581 + p * (2591 ±0)`
|
|
// Minimum execution time: 27_121_000 picoseconds.
|
|
Weight::from_parts(35_867_570, 0)
|
|
.saturating_add(Weight::from_parts(0, 3581))
|
|
// Standard Error: 12_517
|
|
.saturating_add(Weight::from_parts(28_130_730, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(p.into())))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(p.into())))
|
|
.saturating_add(Weight::from_parts(0, 2591).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: `Treasury::SpendCount` (r:1 w:1)
|
|
/// Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
/// Storage: `Treasury::Spends` (r:0 w:1)
|
|
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
|
|
fn spend() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `42`
|
|
// Estimated: `1489`
|
|
// Minimum execution time: 18_424_000 picoseconds.
|
|
Weight::from_parts(18_818_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1489))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Treasury::Spends` (r:1 w:1)
|
|
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
|
|
/// Storage: `ParachainInfo::ParachainId` (r:1 w:0)
|
|
/// Proof: `ParachainInfo::ParachainId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
/// Storage: `PolkadotXcm::QueryCounter` (r:1 w:1)
|
|
/// Proof: `PolkadotXcm::QueryCounter` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `XcmpQueue::DeliveryFeeFactor` (r:1 w:0)
|
|
/// Proof: `XcmpQueue::DeliveryFeeFactor` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `ParachainSystem::RelevantMessagingState` (r:1 w:0)
|
|
/// Proof: `ParachainSystem::RelevantMessagingState` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
|
|
/// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
|
|
/// Storage: `XcmpQueue::OutboundXcmpMessages` (r:0 w:1)
|
|
/// Proof: `XcmpQueue::OutboundXcmpMessages` (`max_values`: None, `max_size`: Some(65570), added: 68045, mode: `MaxEncodedLen`)
|
|
/// Storage: `PolkadotXcm::Queries` (r:0 w:1)
|
|
/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
fn payout() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `527`
|
|
// Estimated: `5318`
|
|
// Minimum execution time: 59_118_000 picoseconds.
|
|
Weight::from_parts(60_308_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 5318))
|
|
.saturating_add(T::DbWeight::get().reads(6))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `Treasury::Spends` (r:1 w:1)
|
|
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
|
|
/// Storage: `PolkadotXcm::Queries` (r:1 w:1)
|
|
/// Proof: `PolkadotXcm::Queries` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
fn check_status() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `206`
|
|
// Estimated: `5318`
|
|
// Minimum execution time: 28_672_000 picoseconds.
|
|
Weight::from_parts(29_225_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 5318))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Treasury::Spends` (r:1 w:1)
|
|
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(1853), added: 4328, mode: `MaxEncodedLen`)
|
|
fn void_spend() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `178`
|
|
// Estimated: `5318`
|
|
// Minimum execution time: 17_232_000 picoseconds.
|
|
Weight::from_parts(17_442_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 5318))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|