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
186 lines
10 KiB
Rust
186 lines
10 KiB
Rust
|
|
//! Autogenerated weights for `pallet_conviction_voting`
|
|
//!
|
|
//! 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_conviction_voting.json
|
|
// --pallet=pallet_conviction_voting
|
|
// --chain=dev
|
|
// --output=benchmarking/new-benchmarks/pallet_conviction_voting.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_conviction_voting`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_conviction_voting::WeightInfo for WeightInfo<T> {
|
|
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
|
|
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Locks` (r:1 w:1)
|
|
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Freezes` (r:1 w:0)
|
|
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
|
|
fn vote_new() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `13387`
|
|
// Estimated: `42428`
|
|
// Minimum execution time: 159_524_000 picoseconds.
|
|
Weight::from_parts(182_460_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 42428))
|
|
.saturating_add(T::DbWeight::get().reads(6))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
|
|
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Locks` (r:1 w:1)
|
|
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Freezes` (r:1 w:0)
|
|
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
fn vote_existing() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `14108`
|
|
// Estimated: `83866`
|
|
// Minimum execution time: 184_188_000 picoseconds.
|
|
Weight::from_parts(215_521_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 83866))
|
|
.saturating_add(T::DbWeight::get().reads(7))
|
|
.saturating_add(T::DbWeight::get().writes(7))
|
|
}
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:1)
|
|
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
fn remove_vote() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `13932`
|
|
// Estimated: `83866`
|
|
// Minimum execution time: 136_470_000 picoseconds.
|
|
Weight::from_parts(157_855_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 83866))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(5))
|
|
}
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referenda::ReferendumInfoFor` (r:1 w:0)
|
|
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
|
|
fn remove_other_vote() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `13056`
|
|
// Estimated: `30694`
|
|
// Minimum execution time: 68_601_000 picoseconds.
|
|
Weight::from_parts(84_166_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 30694))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referenda::ReferendumInfoFor` (r:512 w:512)
|
|
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
|
|
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Locks` (r:1 w:1)
|
|
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Freezes` (r:1 w:0)
|
|
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:50)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[0, 512]`.
|
|
fn delegate(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `26969 + r * (299 ±0)`
|
|
// Estimated: `83866 + r * (3387 ±0)`
|
|
// Minimum execution time: 88_237_000 picoseconds.
|
|
Weight::from_parts(1_131_281_203, 0)
|
|
.saturating_add(Weight::from_parts(0, 83866))
|
|
// Standard Error: 86_423
|
|
.saturating_add(Weight::from_parts(26_429_185, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(7))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(T::DbWeight::get().writes(45))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(Weight::from_parts(0, 3387).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:2 w:2)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referenda::ReferendumInfoFor` (r:512 w:512)
|
|
/// Proof: `Referenda::ReferendumInfoFor` (`max_values`: None, `max_size`: Some(912), added: 3387, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(38963), added: 41438, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:50)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
/// The range of component `r` is `[0, 512]`.
|
|
fn undelegate(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `26897 + r * (299 ±0)`
|
|
// Estimated: `83866 + r * (3387 ±0)`
|
|
// Minimum execution time: 40_903_000 picoseconds.
|
|
Weight::from_parts(1_083_508_414, 0)
|
|
.saturating_add(Weight::from_parts(0, 83866))
|
|
// Standard Error: 87_112
|
|
.saturating_add(Weight::from_parts(26_373_942, 0).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(T::DbWeight::get().writes(43))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
|
|
.saturating_add(Weight::from_parts(0, 3387).saturating_mul(r.into()))
|
|
}
|
|
/// Storage: `ConvictionVoting::VotingFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::VotingFor` (`max_values`: None, `max_size`: Some(27229), added: 29704, mode: `MaxEncodedLen`)
|
|
/// Storage: `ConvictionVoting::ClassLocksFor` (r:1 w:1)
|
|
/// Proof: `ConvictionVoting::ClassLocksFor` (`max_values`: None, `max_size`: Some(209), added: 2684, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Locks` (r:1 w:1)
|
|
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1287), added: 3762, mode: `MaxEncodedLen`)
|
|
/// Storage: `Balances::Freezes` (r:1 w:0)
|
|
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(37), added: 2512, mode: `MaxEncodedLen`)
|
|
fn unlock() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `12017`
|
|
// Estimated: `30694`
|
|
// Minimum execution time: 98_315_000 picoseconds.
|
|
Weight::from_parts(126_349_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 30694))
|
|
.saturating_add(T::DbWeight::get().reads(4))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
}
|