b6d35f6faf
Updated 4763 files with dual copyright: - Parity Technologies (UK) Ltd. - Dijital Kurdistan Tech Institute
209 lines
11 KiB
Rust
209 lines
11 KiB
Rust
// 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_trust`
|
|
//!
|
|
//! 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_trust
|
|
// -e
|
|
// all
|
|
// --steps
|
|
// 50
|
|
// --repeat
|
|
// 20
|
|
// --output
|
|
// pezcumulus/teyrchains/pezpallets/trust/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_trust`.
|
|
pub trait WeightInfo {
|
|
fn force_recalculate_trust_score() -> Weight;
|
|
fn update_all_trust_scores() -> Weight;
|
|
fn periodic_trust_score_update() -> Weight;
|
|
}
|
|
|
|
/// Weights for `pezpallet_trust` using the Bizinikiwi node and recommended hardware.
|
|
pub struct BizinikiwiWeight<T>(PhantomData<T>);
|
|
impl<T: pezframe_system::Config> WeightInfo for BizinikiwiWeight<T> {
|
|
/// Storage: `Trust::TrustScores` (r:1 w:1)
|
|
/// Proof: `Trust::TrustScores` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
|
|
/// Storage: `StakingScore::StakingStartBlock` (r:1 w:0)
|
|
/// Proof: `StakingScore::StakingStartBlock` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referral::ReferralCount` (r:1 w:0)
|
|
/// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Tiki::UserTikis` (r:1 w:0)
|
|
/// Proof: `Tiki::UserTikis` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TotalActiveTrustScore` (r:1 w:1)
|
|
/// Proof: `Trust::TotalActiveTrustScore` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
fn force_recalculate_trust_score() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `287`
|
|
// Estimated: `3534`
|
|
// Minimum execution time: 41_676_000 picoseconds.
|
|
Weight::from_parts(51_361_000, 3534)
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Trust::LastProcessedAccount` (r:1 w:1)
|
|
/// Proof: `Trust::LastProcessedAccount` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `IdentityKyc::KycStatuses` (r:2 w:0)
|
|
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TrustScores` (r:1 w:1)
|
|
/// Proof: `Trust::TrustScores` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
|
|
/// Storage: `StakingScore::StakingStartBlock` (r:1 w:0)
|
|
/// Proof: `StakingScore::StakingStartBlock` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referral::ReferralCount` (r:1 w:0)
|
|
/// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Tiki::UserTikis` (r:1 w:0)
|
|
/// Proof: `Tiki::UserTikis` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TotalActiveTrustScore` (r:1 w:1)
|
|
/// Proof: `Trust::TotalActiveTrustScore` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::BatchUpdateInProgress` (r:0 w:1)
|
|
/// Proof: `Trust::BatchUpdateInProgress` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
fn update_all_trust_scores() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `338`
|
|
// Estimated: `6038`
|
|
// Minimum execution time: 57_062_000 picoseconds.
|
|
Weight::from_parts(71_311_000, 6038)
|
|
.saturating_add(T::DbWeight::get().reads(8_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: `Trust::BatchUpdateInProgress` (r:1 w:1)
|
|
/// Proof: `Trust::BatchUpdateInProgress` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::LastProcessedAccount` (r:1 w:1)
|
|
/// Proof: `Trust::LastProcessedAccount` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `IdentityKyc::KycStatuses` (r:2 w:0)
|
|
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TrustScores` (r:1 w:1)
|
|
/// Proof: `Trust::TrustScores` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
|
|
/// Storage: `StakingScore::StakingStartBlock` (r:1 w:0)
|
|
/// Proof: `StakingScore::StakingStartBlock` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referral::ReferralCount` (r:1 w:0)
|
|
/// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Tiki::UserTikis` (r:1 w:0)
|
|
/// Proof: `Tiki::UserTikis` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TotalActiveTrustScore` (r:1 w:1)
|
|
/// Proof: `Trust::TotalActiveTrustScore` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
fn periodic_trust_score_update() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `338`
|
|
// Estimated: `6038`
|
|
// Minimum execution time: 82_604_000 picoseconds.
|
|
Weight::from_parts(88_810_000, 6038)
|
|
.saturating_add(T::DbWeight::get().reads(9_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests.
|
|
impl WeightInfo for () {
|
|
/// Storage: `Trust::TrustScores` (r:1 w:1)
|
|
/// Proof: `Trust::TrustScores` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
|
|
/// Storage: `StakingScore::StakingStartBlock` (r:1 w:0)
|
|
/// Proof: `StakingScore::StakingStartBlock` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referral::ReferralCount` (r:1 w:0)
|
|
/// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Tiki::UserTikis` (r:1 w:0)
|
|
/// Proof: `Tiki::UserTikis` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TotalActiveTrustScore` (r:1 w:1)
|
|
/// Proof: `Trust::TotalActiveTrustScore` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
fn force_recalculate_trust_score() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `287`
|
|
// Estimated: `3534`
|
|
// Minimum execution time: 41_676_000 picoseconds.
|
|
Weight::from_parts(51_361_000, 3534)
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Trust::LastProcessedAccount` (r:1 w:1)
|
|
/// Proof: `Trust::LastProcessedAccount` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `IdentityKyc::KycStatuses` (r:2 w:0)
|
|
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TrustScores` (r:1 w:1)
|
|
/// Proof: `Trust::TrustScores` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
|
|
/// Storage: `StakingScore::StakingStartBlock` (r:1 w:0)
|
|
/// Proof: `StakingScore::StakingStartBlock` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referral::ReferralCount` (r:1 w:0)
|
|
/// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Tiki::UserTikis` (r:1 w:0)
|
|
/// Proof: `Tiki::UserTikis` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TotalActiveTrustScore` (r:1 w:1)
|
|
/// Proof: `Trust::TotalActiveTrustScore` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::BatchUpdateInProgress` (r:0 w:1)
|
|
/// Proof: `Trust::BatchUpdateInProgress` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
fn update_all_trust_scores() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `338`
|
|
// Estimated: `6038`
|
|
// Minimum execution time: 57_062_000 picoseconds.
|
|
Weight::from_parts(71_311_000, 6038)
|
|
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: `Trust::BatchUpdateInProgress` (r:1 w:1)
|
|
/// Proof: `Trust::BatchUpdateInProgress` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::LastProcessedAccount` (r:1 w:1)
|
|
/// Proof: `Trust::LastProcessedAccount` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `IdentityKyc::KycStatuses` (r:2 w:0)
|
|
/// Proof: `IdentityKyc::KycStatuses` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TrustScores` (r:1 w:1)
|
|
/// Proof: `Trust::TrustScores` (`max_values`: None, `max_size`: Some(64), added: 2539, mode: `MaxEncodedLen`)
|
|
/// Storage: `StakingScore::StakingStartBlock` (r:1 w:0)
|
|
/// Proof: `StakingScore::StakingStartBlock` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Referral::ReferralCount` (r:1 w:0)
|
|
/// Proof: `Referral::ReferralCount` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
|
/// Storage: `Tiki::UserTikis` (r:1 w:0)
|
|
/// Proof: `Tiki::UserTikis` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
|
/// Storage: `Trust::TotalActiveTrustScore` (r:1 w:1)
|
|
/// Proof: `Trust::TotalActiveTrustScore` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
|
fn periodic_trust_score_update() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `338`
|
|
// Estimated: `6038`
|
|
// Minimum execution time: 82_604_000 picoseconds.
|
|
Weight::from_parts(88_810_000, 6038)
|
|
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
}
|