mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-07-03 08:17:21 +00:00
be0abb6bf1
Added benchmarking for EVM template. Updated benchmarking for Generic Templates. Fixed config for EVM template. Added benchmarking utils.
205 lines
9.0 KiB
Rust
205 lines
9.0 KiB
Rust
|
|
//! Autogenerated weights for `pallet_proxy`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
|
//! DATE: 2024-06-25, 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/parachain-template-node
|
|
// benchmark
|
|
// pallet
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=benchmarking/results/results-pallet_proxy.json
|
|
// --pallet=pallet_proxy
|
|
// --chain=dev
|
|
// --output=benchmarking/new-benchmarks/pallet_proxy.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_proxy`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
|
/// Storage: `Proxy::Proxies` (r:1 w:0)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn proxy(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `149 + p * (25 ±0)`
|
|
// Estimated: `4310`
|
|
// Minimum execution time: 16_106_000 picoseconds.
|
|
Weight::from_parts(16_638_233, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 1_070
|
|
.saturating_add(Weight::from_parts(36_134, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:0)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// Storage: `Proxy::Announcements` (r:1 w:1)
|
|
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `401 + a * (56 ±0) + p * (25 ±0)`
|
|
// Estimated: `5302`
|
|
// Minimum execution time: 42_068_000 picoseconds.
|
|
Weight::from_parts(42_218_021, 0)
|
|
.saturating_add(Weight::from_parts(0, 5302))
|
|
// Standard Error: 2_100
|
|
.saturating_add(Weight::from_parts(182_587, 0).saturating_mul(a.into()))
|
|
// Standard Error: 2_170
|
|
.saturating_add(Weight::from_parts(35_785, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Proxy::Announcements` (r:1 w:1)
|
|
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_announcement(a: u32, _p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `329 + a * (56 ±0)`
|
|
// Estimated: `5302`
|
|
// Minimum execution time: 28_549_000 picoseconds.
|
|
Weight::from_parts(29_851_704, 0)
|
|
.saturating_add(Weight::from_parts(0, 5302))
|
|
// Standard Error: 1_685
|
|
.saturating_add(Weight::from_parts(170_851, 0).saturating_mul(a.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Proxy::Announcements` (r:1 w:1)
|
|
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn reject_announcement(a: u32, _p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `329 + a * (56 ±0)`
|
|
// Estimated: `5302`
|
|
// Minimum execution time: 28_499_000 picoseconds.
|
|
Weight::from_parts(29_654_554, 0)
|
|
.saturating_add(Weight::from_parts(0, 5302))
|
|
// Standard Error: 1_645
|
|
.saturating_add(Weight::from_parts(176_478, 0).saturating_mul(a.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:0)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// Storage: `Proxy::Announcements` (r:1 w:1)
|
|
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(1837), added: 4312, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn announce(a: u32, p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `345 + a * (56 ±0) + p * (25 ±0)`
|
|
// Estimated: `5302`
|
|
// Minimum execution time: 37_400_000 picoseconds.
|
|
Weight::from_parts(37_528_822, 0)
|
|
.saturating_add(Weight::from_parts(0, 5302))
|
|
// Standard Error: 1_608
|
|
.saturating_add(Weight::from_parts(192_942, 0).saturating_mul(a.into()))
|
|
// Standard Error: 1_661
|
|
.saturating_add(Weight::from_parts(27_928, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:1)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn add_proxy(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `149 + p * (25 ±0)`
|
|
// Estimated: `4310`
|
|
// Minimum execution time: 28_359_000 picoseconds.
|
|
Weight::from_parts(29_138_227, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 1_066
|
|
.saturating_add(Weight::from_parts(30_798, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:1)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxy(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `149 + p * (25 ±0)`
|
|
// Estimated: `4310`
|
|
// Minimum execution time: 28_460_000 picoseconds.
|
|
Weight::from_parts(29_609_693, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 1_897
|
|
.saturating_add(Weight::from_parts(26_094, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:1)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxies(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `149 + p * (25 ±0)`
|
|
// Estimated: `4310`
|
|
// Minimum execution time: 27_552_000 picoseconds.
|
|
Weight::from_parts(28_366_861, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 1_098
|
|
.saturating_add(Weight::from_parts(22_228, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:1)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn create_pure(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `161`
|
|
// Estimated: `4310`
|
|
// Minimum execution time: 30_189_000 picoseconds.
|
|
Weight::from_parts(31_038_846, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 1_082
|
|
.saturating_add(Weight::from_parts(13_390, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Proxy::Proxies` (r:1 w:1)
|
|
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(845), added: 3320, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[0, 30]`.
|
|
fn kill_pure(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `174 + p * (25 ±0)`
|
|
// Estimated: `4310`
|
|
// Minimum execution time: 28_023_000 picoseconds.
|
|
Weight::from_parts(29_160_945, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 996
|
|
.saturating_add(Weight::from_parts(29_081, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|