// This file is part of Bizinikiwi. // Copyright (C) Parity Technologies (UK) Ltd. // 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_referral` //! //! 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_referral // -e // all // --steps // 50 // --repeat // 20 // --output // pezcumulus/teyrchains/pezpallets/referral/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_referral`. pub trait WeightInfo { fn initiate_referral() -> Weight; fn force_confirm_referral() -> Weight; } /// Weights for `pezpallet_referral` using the Bizinikiwi node and recommended hardware. pub struct BizinikiwiWeight(PhantomData); impl WeightInfo for BizinikiwiWeight { /// Storage: `Referral::Referrals` (r:1 w:0) /// Proof: `Referral::Referrals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) /// Storage: `Referral::PendingReferrals` (r:1 w:1) /// Proof: `Referral::PendingReferrals` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn initiate_referral() -> Weight { // Proof Size summary in bytes: // Measured: `3` // Estimated: `3549` // Minimum execution time: 11_365_000 picoseconds. Weight::from_parts(11_696_000, 3549) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Referral::Referrals` (r:1 w:1) /// Proof: `Referral::Referrals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) /// Storage: `Referral::ReferralCount` (r:1 w:1) /// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Referral::PendingReferrals` (r:0 w:1) /// Proof: `Referral::PendingReferrals` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn force_confirm_referral() -> Weight { // Proof Size summary in bytes: // Measured: `3` // Estimated: `3549` // Minimum execution time: 14_792_000 picoseconds. Weight::from_parts(15_141_000, 3549) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } } // For backwards compatibility and tests. impl WeightInfo for () { /// Storage: `Referral::Referrals` (r:1 w:0) /// Proof: `Referral::Referrals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) /// Storage: `Referral::PendingReferrals` (r:1 w:1) /// Proof: `Referral::PendingReferrals` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn initiate_referral() -> Weight { // Proof Size summary in bytes: // Measured: `3` // Estimated: `3549` // Minimum execution time: 11_365_000 picoseconds. Weight::from_parts(11_696_000, 3549) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Referral::Referrals` (r:1 w:1) /// Proof: `Referral::Referrals` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`) /// Storage: `Referral::ReferralCount` (r:1 w:1) /// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`) /// Storage: `Referral::PendingReferrals` (r:0 w:1) /// Proof: `Referral::PendingReferrals` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`) fn force_confirm_referral() -> Weight { // Proof Size summary in bytes: // Measured: `3` // Estimated: `3549` // Minimum execution time: 14_792_000 picoseconds. Weight::from_parts(15_141_000, 3549) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } }