mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 02:07:55 +00:00
1bb2e96501
* evm template integrated * workflows modified per template * workflow fixes
209 lines
9.1 KiB
Rust
209 lines
9.1 KiB
Rust
|
|
//! Autogenerated weights for `pallet_proxy`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
|
//! DATE: 2024-04-18, 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=results-pallet_proxy.json
|
|
// --pallet=pallet_proxy
|
|
// --chain=dev
|
|
// --output=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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn proxy(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `127 + p * (37 ±0)`
|
|
// Estimated: `4706`
|
|
// Minimum execution time: 16_811_000 picoseconds.
|
|
Weight::from_parts(17_498_789, 0)
|
|
.saturating_add(Weight::from_parts(0, 4706))
|
|
// Standard Error: 1_033
|
|
.saturating_add(Weight::from_parts(39_226, 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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// Storage: `Proxy::Announcements` (r:1 w:1)
|
|
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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: `454 + a * (68 ±0) + p * (37 ±0)`
|
|
// Estimated: `5698`
|
|
// Minimum execution time: 42_360_000 picoseconds.
|
|
Weight::from_parts(42_166_938, 0)
|
|
.saturating_add(Weight::from_parts(0, 5698))
|
|
// Standard Error: 1_953
|
|
.saturating_add(Weight::from_parts(186_281, 0).saturating_mul(a.into()))
|
|
// Standard Error: 2_018
|
|
.saturating_add(Weight::from_parts(40_941, 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(2233), added: 4708, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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: `369 + a * (68 ±0)`
|
|
// Estimated: `5698`
|
|
// Minimum execution time: 28_790_000 picoseconds.
|
|
Weight::from_parts(29_831_651, 0)
|
|
.saturating_add(Weight::from_parts(0, 5698))
|
|
// Standard Error: 1_469
|
|
.saturating_add(Weight::from_parts(177_561, 0).saturating_mul(a.into()))
|
|
// Standard Error: 1_518
|
|
.saturating_add(Weight::from_parts(6_744, 0).saturating_mul(p.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(2233), added: 4708, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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: `369 + a * (68 ±0)`
|
|
// Estimated: `5698`
|
|
// Minimum execution time: 28_875_000 picoseconds.
|
|
Weight::from_parts(29_321_993, 0)
|
|
.saturating_add(Weight::from_parts(0, 5698))
|
|
// Standard Error: 1_580
|
|
.saturating_add(Weight::from_parts(196_998, 0).saturating_mul(a.into()))
|
|
// Standard Error: 1_632
|
|
.saturating_add(Weight::from_parts(10_468, 0).saturating_mul(p.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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// Storage: `Proxy::Announcements` (r:1 w:1)
|
|
/// Proof: `Proxy::Announcements` (`max_values`: None, `max_size`: Some(2233), added: 4708, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, 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: `386 + a * (68 ±0) + p * (37 ±0)`
|
|
// Estimated: `5698`
|
|
// Minimum execution time: 37_912_000 picoseconds.
|
|
Weight::from_parts(37_943_779, 0)
|
|
.saturating_add(Weight::from_parts(0, 5698))
|
|
// Standard Error: 1_776
|
|
.saturating_add(Weight::from_parts(185_911, 0).saturating_mul(a.into()))
|
|
// Standard Error: 1_835
|
|
.saturating_add(Weight::from_parts(37_585, 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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn add_proxy(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `127 + p * (37 ±0)`
|
|
// Estimated: `4706`
|
|
// Minimum execution time: 27_681_000 picoseconds.
|
|
Weight::from_parts(28_596_631, 0)
|
|
.saturating_add(Weight::from_parts(0, 4706))
|
|
// Standard Error: 1_091
|
|
.saturating_add(Weight::from_parts(43_421, 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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxy(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `127 + p * (37 ±0)`
|
|
// Estimated: `4706`
|
|
// Minimum execution time: 27_554_000 picoseconds.
|
|
Weight::from_parts(28_545_861, 0)
|
|
.saturating_add(Weight::from_parts(0, 4706))
|
|
// Standard Error: 2_208
|
|
.saturating_add(Weight::from_parts(43_109, 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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxies(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `127 + p * (37 ±0)`
|
|
// Estimated: `4706`
|
|
// Minimum execution time: 27_032_000 picoseconds.
|
|
Weight::from_parts(27_806_016, 0)
|
|
.saturating_add(Weight::from_parts(0, 4706))
|
|
// Standard Error: 1_267
|
|
.saturating_add(Weight::from_parts(39_725, 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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn create_pure(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `139`
|
|
// Estimated: `4706`
|
|
// Minimum execution time: 29_816_000 picoseconds.
|
|
Weight::from_parts(30_613_421, 0)
|
|
.saturating_add(Weight::from_parts(0, 4706))
|
|
// Standard Error: 1_154
|
|
.saturating_add(Weight::from_parts(12_164, 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(1241), added: 3716, mode: `MaxEncodedLen`)
|
|
/// The range of component `p` is `[0, 30]`.
|
|
fn kill_pure(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `164 + p * (37 ±0)`
|
|
// Estimated: `4706`
|
|
// Minimum execution time: 27_949_000 picoseconds.
|
|
Weight::from_parts(28_784_363, 0)
|
|
.saturating_add(Weight::from_parts(0, 4706))
|
|
// Standard Error: 1_418
|
|
.saturating_add(Weight::from_parts(43_671, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|