// This file is part of Bizinikiwi. // Copyright (C) Parity Technologies (UK) Ltd. and Dijital Kurdistan Tech Institute // SPDX-License-Identifier: Apache-2.0 // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. //! Autogenerated weights for `pezpallet_welati` //! //! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 32.0.0 //! DATE: 2025-12-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `MamostePC`, CPU: `11th Gen Intel(R) Core(TM) i9-11950H @ 2.60GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: // ./target/release/frame-omni-bencher // v1 // benchmark // pezpallet // --runtime // target/release/wbuild/people-pezkuwichain-runtime/people_pezkuwichain_runtime.compact.compressed.wasm // --pallets // pezpallet_welati // -e // all // --steps // 50 // --repeat // 20 // --output // pezcumulus/teyrchains/pezpallets/welati/src/weights.rs // --template // bizinikiwi/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] #![allow(missing_docs)] #![allow(dead_code)] use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; /// Weight functions needed for `pezpallet_welati`. pub trait WeightInfo { fn initiate_election() -> Weight; fn register_candidate() -> Weight; fn cast_vote() -> Weight; fn finalize_election() -> Weight; fn nominate_official() -> Weight; fn approve_appointment() -> Weight; fn submit_proposal() -> Weight; fn vote_on_proposal() -> Weight; } /// Weights for `pezpallet_welati` using the Bizinikiwi node and recommended hardware. pub struct BizinikiwiWeight(PhantomData); impl WeightInfo for BizinikiwiWeight { /// Storage: `Welati::NextElectionId` (r:1 w:1) /// Proof: `Welati::NextElectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Welati::ActiveElections` (r:0 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) fn initiate_election() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `1489` // Minimum execution time: 21_177_000 picoseconds. Weight::from_parts(22_712_000, 1489) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Welati::ActiveElections` (r:1 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionCandidates` (r:1 w:1) /// Proof: `Welati::ElectionCandidates` (`max_values`: None, `max_size`: Some(3833), added: 6308, mode: `MaxEncodedLen`) fn register_candidate() -> Weight { // Proof Size summary in bytes: // Measured: `145` // Estimated: `32819` // Minimum execution time: 32_272_000 picoseconds. Weight::from_parts(39_628_000, 32819) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Welati::ActiveElections` (r:1 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionVotes` (r:1 w:1) /// Proof: `Welati::ElectionVotes` (`max_values`: None, `max_size`: Some(435), added: 2910, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionCandidates` (r:1 w:1) /// Proof: `Welati::ElectionCandidates` (`max_values`: None, `max_size`: Some(3833), added: 6308, mode: `MaxEncodedLen`) fn cast_vote() -> Weight { // Proof Size summary in bytes: // Measured: `3532` // Estimated: `32819` // Minimum execution time: 27_874_000 picoseconds. Weight::from_parts(29_000_000, 32819) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Welati::ActiveElections` (r:1 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionCandidates` (r:1 w:0) /// Proof: `Welati::ElectionCandidates` (`max_values`: None, `max_size`: Some(3833), added: 6308, mode: `MaxEncodedLen`) /// Storage: `IdentityKyc::KycStatuses` (r:2 w:0) /// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionResults` (r:0 w:1) /// Proof: `Welati::ElectionResults` (`max_values`: None, `max_size`: Some(6467), added: 8942, mode: `MaxEncodedLen`) /// Storage: `Welati::ParliamentMembers` (r:0 w:1) /// Proof: `Welati::ParliamentMembers` (`max_values`: Some(1), `max_size`: Some(11057), added: 11552, mode: `MaxEncodedLen`) fn finalize_election() -> Weight { // Proof Size summary in bytes: // Measured: `3682` // Estimated: `32819` // Minimum execution time: 35_614_000 picoseconds. Weight::from_parts(38_634_000, 32819) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Welati::CurrentOfficials` (r:1 w:0) /// Proof: `Welati::CurrentOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::CurrentMinisters` (r:1 w:0) /// Proof: `Welati::CurrentMinisters` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointedOfficials` (r:1 w:0) /// Proof: `Welati::AppointedOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::PendingNominations` (r:1 w:1) /// Proof: `Welati::PendingNominations` (`max_values`: None, `max_size`: Some(173), added: 2648, mode: `MaxEncodedLen`) /// Storage: `Welati::NextAppointmentId` (r:1 w:1) /// Proof: `Welati::NextAppointmentId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointmentProcesses` (r:0 w:1) /// Proof: `Welati::AppointmentProcesses` (`max_values`: None, `max_size`: Some(10119), added: 12594, mode: `MaxEncodedLen`) fn nominate_official() -> Weight { // Proof Size summary in bytes: // Measured: `121` // Estimated: `3638` // Minimum execution time: 25_456_000 picoseconds. Weight::from_parts(26_826_000, 3638) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Welati::CurrentOfficials` (r:1 w:0) /// Proof: `Welati::CurrentOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointmentProcesses` (r:1 w:1) /// Proof: `Welati::AppointmentProcesses` (`max_values`: None, `max_size`: Some(10119), added: 12594, mode: `MaxEncodedLen`) /// Storage: `Welati::PendingNominations` (r:1 w:1) /// Proof: `Welati::PendingNominations` (`max_values`: None, `max_size`: Some(173), added: 2648, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointedOfficials` (r:0 w:1) /// Proof: `Welati::AppointedOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn approve_appointment() -> Weight { // Proof Size summary in bytes: // Measured: `444` // Estimated: `13584` // Minimum execution time: 28_797_000 picoseconds. Weight::from_parts(30_151_000, 13584) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } /// Storage: `Welati::ParliamentMembers` (r:1 w:0) /// Proof: `Welati::ParliamentMembers` (`max_values`: Some(1), `max_size`: Some(11057), added: 11552, mode: `MaxEncodedLen`) /// Storage: `Welati::CurrentOfficials` (r:1 w:0) /// Proof: `Welati::CurrentOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::NextProposalId` (r:1 w:1) /// Proof: `Welati::NextProposalId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Welati::ActiveProposals` (r:0 w:1) /// Proof: `Welati::ActiveProposals` (`max_values`: None, `max_size`: Some(1195), added: 3670, mode: `MaxEncodedLen`) fn submit_proposal() -> Weight { // Proof Size summary in bytes: // Measured: `119` // Estimated: `12542` // Minimum execution time: 16_335_000 picoseconds. Weight::from_parts(17_233_000, 12542) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } /// Storage: `Welati::ActiveProposals` (r:1 w:1) /// Proof: `Welati::ActiveProposals` (`max_values`: None, `max_size`: Some(1195), added: 3670, mode: `MaxEncodedLen`) /// Storage: `Welati::CollectiveVotes` (r:1 w:1) /// Proof: `Welati::CollectiveVotes` (`max_values`: None, `max_size`: Some(612), added: 3087, mode: `MaxEncodedLen`) /// Storage: `Welati::ParliamentMembers` (r:1 w:0) /// Proof: `Welati::ParliamentMembers` (`max_values`: Some(1), `max_size`: Some(11057), added: 11552, mode: `MaxEncodedLen`) fn vote_on_proposal() -> Weight { // Proof Size summary in bytes: // Measured: `349` // Estimated: `12542` // Minimum execution time: 20_789_000 picoseconds. Weight::from_parts(21_455_000, 12542) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(2_u64)) } } // For backwards compatibility and tests. impl WeightInfo for () { /// Storage: `Welati::NextElectionId` (r:1 w:1) /// Proof: `Welati::NextElectionId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Welati::ActiveElections` (r:0 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) fn initiate_election() -> Weight { // Proof Size summary in bytes: // Measured: `42` // Estimated: `1489` // Minimum execution time: 21_177_000 picoseconds. Weight::from_parts(22_712_000, 1489) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `Welati::ActiveElections` (r:1 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionCandidates` (r:1 w:1) /// Proof: `Welati::ElectionCandidates` (`max_values`: None, `max_size`: Some(3833), added: 6308, mode: `MaxEncodedLen`) fn register_candidate() -> Weight { // Proof Size summary in bytes: // Measured: `145` // Estimated: `32819` // Minimum execution time: 32_272_000 picoseconds. Weight::from_parts(39_628_000, 32819) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `Welati::ActiveElections` (r:1 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionVotes` (r:1 w:1) /// Proof: `Welati::ElectionVotes` (`max_values`: None, `max_size`: Some(435), added: 2910, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionCandidates` (r:1 w:1) /// Proof: `Welati::ElectionCandidates` (`max_values`: None, `max_size`: Some(3833), added: 6308, mode: `MaxEncodedLen`) fn cast_vote() -> Weight { // Proof Size summary in bytes: // Measured: `3532` // Estimated: `32819` // Minimum execution time: 27_874_000 picoseconds. Weight::from_parts(29_000_000, 32819) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Welati::ActiveElections` (r:1 w:1) /// Proof: `Welati::ActiveElections` (`max_values`: None, `max_size`: Some(29354), added: 31829, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionCandidates` (r:1 w:0) /// Proof: `Welati::ElectionCandidates` (`max_values`: None, `max_size`: Some(3833), added: 6308, mode: `MaxEncodedLen`) /// Storage: `IdentityKyc::KycStatuses` (r:2 w:0) /// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::ElectionResults` (r:0 w:1) /// Proof: `Welati::ElectionResults` (`max_values`: None, `max_size`: Some(6467), added: 8942, mode: `MaxEncodedLen`) /// Storage: `Welati::ParliamentMembers` (r:0 w:1) /// Proof: `Welati::ParliamentMembers` (`max_values`: Some(1), `max_size`: Some(11057), added: 11552, mode: `MaxEncodedLen`) fn finalize_election() -> Weight { // Proof Size summary in bytes: // Measured: `3682` // Estimated: `32819` // Minimum execution time: 35_614_000 picoseconds. Weight::from_parts(38_634_000, 32819) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Welati::CurrentOfficials` (r:1 w:0) /// Proof: `Welati::CurrentOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::CurrentMinisters` (r:1 w:0) /// Proof: `Welati::CurrentMinisters` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointedOfficials` (r:1 w:0) /// Proof: `Welati::AppointedOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::PendingNominations` (r:1 w:1) /// Proof: `Welati::PendingNominations` (`max_values`: None, `max_size`: Some(173), added: 2648, mode: `MaxEncodedLen`) /// Storage: `Welati::NextAppointmentId` (r:1 w:1) /// Proof: `Welati::NextAppointmentId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointmentProcesses` (r:0 w:1) /// Proof: `Welati::AppointmentProcesses` (`max_values`: None, `max_size`: Some(10119), added: 12594, mode: `MaxEncodedLen`) fn nominate_official() -> Weight { // Proof Size summary in bytes: // Measured: `121` // Estimated: `3638` // Minimum execution time: 25_456_000 picoseconds. Weight::from_parts(26_826_000, 3638) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Welati::CurrentOfficials` (r:1 w:0) /// Proof: `Welati::CurrentOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointmentProcesses` (r:1 w:1) /// Proof: `Welati::AppointmentProcesses` (`max_values`: None, `max_size`: Some(10119), added: 12594, mode: `MaxEncodedLen`) /// Storage: `Welati::PendingNominations` (r:1 w:1) /// Proof: `Welati::PendingNominations` (`max_values`: None, `max_size`: Some(173), added: 2648, mode: `MaxEncodedLen`) /// Storage: `Welati::AppointedOfficials` (r:0 w:1) /// Proof: `Welati::AppointedOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) fn approve_appointment() -> Weight { // Proof Size summary in bytes: // Measured: `444` // Estimated: `13584` // Minimum execution time: 28_797_000 picoseconds. Weight::from_parts(30_151_000, 13584) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } /// Storage: `Welati::ParliamentMembers` (r:1 w:0) /// Proof: `Welati::ParliamentMembers` (`max_values`: Some(1), `max_size`: Some(11057), added: 11552, mode: `MaxEncodedLen`) /// Storage: `Welati::CurrentOfficials` (r:1 w:0) /// Proof: `Welati::CurrentOfficials` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`) /// Storage: `Welati::NextProposalId` (r:1 w:1) /// Proof: `Welati::NextProposalId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `Welati::ActiveProposals` (r:0 w:1) /// Proof: `Welati::ActiveProposals` (`max_values`: None, `max_size`: Some(1195), added: 3670, mode: `MaxEncodedLen`) fn submit_proposal() -> Weight { // Proof Size summary in bytes: // Measured: `119` // Estimated: `12542` // Minimum execution time: 16_335_000 picoseconds. Weight::from_parts(17_233_000, 12542) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } /// Storage: `Welati::ActiveProposals` (r:1 w:1) /// Proof: `Welati::ActiveProposals` (`max_values`: None, `max_size`: Some(1195), added: 3670, mode: `MaxEncodedLen`) /// Storage: `Welati::CollectiveVotes` (r:1 w:1) /// Proof: `Welati::CollectiveVotes` (`max_values`: None, `max_size`: Some(612), added: 3087, mode: `MaxEncodedLen`) /// Storage: `Welati::ParliamentMembers` (r:1 w:0) /// Proof: `Welati::ParliamentMembers` (`max_values`: Some(1), `max_size`: Some(11057), added: 11552, mode: `MaxEncodedLen`) fn vote_on_proposal() -> Weight { // Proof Size summary in bytes: // Measured: `349` // Estimated: `12542` // Minimum execution time: 20_789_000 picoseconds. Weight::from_parts(21_455_000, 12542) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(2_u64)) } }