154 lines
7.3 KiB
Rust
154 lines
7.3 KiB
Rust
// This file is part of Ghost Network.
|
|
|
|
// Ghost Network is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Ghost Network is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Ghost Network. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `ghost_weaver`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
|
//! DATE: 2026-09-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/release/ghost
|
|
// benchmark
|
|
// pallet
|
|
// --chain=casper-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=ghost_weaver
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/casper/src/weights/ghost_weaver.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{
|
|
traits::Get,
|
|
weights::{Weight, constants::RocksDbWeight},
|
|
};
|
|
use core::marker::PhantomData;
|
|
|
|
pub trait WeightInfo {
|
|
fn extend_warp(a: u32,) -> Weight;
|
|
fn weave_weft(a: u32,) -> Weight;
|
|
fn pull_evm_thread() -> Weight;
|
|
fn pull_utxo_thread(a: u32) -> Weight;
|
|
}
|
|
|
|
impl WeightInfo for () {
|
|
/// Storage: `GhostWeaver::DisabledAuthorities` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::DisabledAuthorities` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::Authorities` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::Authorities` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostNetworks::Networks` (r:1 w:0)
|
|
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::TapestryDrafts` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::TapestryDrafts` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::NetworkAttestations` (r:1 w:1)
|
|
/// Proof: `GhostWeaver::NetworkAttestations` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// The range of component `a` is `[1, 300]`.
|
|
fn extend_warp(a: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `223 + a * (32 ±0)`
|
|
// Estimated: `3687 + a * (32 ±0)`
|
|
// Minimum execution time: 209_842_000 picoseconds.
|
|
Weight::from_parts(214_884_530, 0)
|
|
.saturating_add(Weight::from_parts(0, 3687))
|
|
// Standard Error: 1_520
|
|
.saturating_add(Weight::from_parts(45_535, 0).saturating_mul(a.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(5))
|
|
.saturating_add(RocksDbWeight::get().writes(1))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(a.into()))
|
|
}
|
|
/// Storage: `GhostWeaver::DisabledAuthorities` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::DisabledAuthorities` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::Authorities` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::Authorities` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostNetworks::Networks` (r:1 w:0)
|
|
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::TapestryDrafts` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::TapestryDrafts` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::TapestryStrands` (r:1 w:1)
|
|
/// Proof: `GhostWeaver::TapestryStrands` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::WeavingStates` (r:1 w:1)
|
|
/// Proof: `GhostWeaver::WeavingStates` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// The range of component `a` is `[1, 300]`.
|
|
fn weave_weft(a: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `518 + a * (32 ±0)`
|
|
// Estimated: `3982 + a * (32 ±0)`
|
|
// Minimum execution time: 241_362_000 picoseconds.
|
|
Weight::from_parts(244_695_658, 0)
|
|
.saturating_add(Weight::from_parts(0, 3982))
|
|
// Standard Error: 1_644
|
|
.saturating_add(Weight::from_parts(30_947, 0).saturating_mul(a.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(6))
|
|
.saturating_add(RocksDbWeight::get().writes(2))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(a.into()))
|
|
}
|
|
/// Storage: `GhostNetworks::Networks` (r:1 w:0)
|
|
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::LoomStates` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::LoomStates` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::PulledThreads` (r:1 w:1)
|
|
/// Proof: `GhostWeaver::PulledThreads` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostNetworks::GatekeeperAmounts` (r:1 w:1)
|
|
/// Proof: `GhostNetworks::GatekeeperAmounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostNetworks::NetworkImbalance` (r:1 w:1)
|
|
/// Proof: `GhostNetworks::NetworkImbalance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `System::Account` (r:1 w:0)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// The range of component `a` is `[1, 144]`.
|
|
fn pull_utxo_thread(a: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `358`
|
|
// Estimated: `3823`
|
|
// Minimum execution time: 174_434_000 picoseconds.
|
|
Weight::from_parts(173_218_259, 0)
|
|
// Standard Error: 4_108
|
|
.saturating_add(Weight::from_parts(3_390_809, 0).saturating_mul(a.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(6))
|
|
.saturating_add(RocksDbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `GhostNetworks::Networks` (r:1 w:0)
|
|
/// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::LoomStates` (r:1 w:0)
|
|
/// Proof: `GhostWeaver::LoomStates` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostWeaver::PulledThreads` (r:1 w:1)
|
|
/// Proof: `GhostWeaver::PulledThreads` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostNetworks::GatekeeperAmounts` (r:1 w:1)
|
|
/// Proof: `GhostNetworks::GatekeeperAmounts` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
|
/// Storage: `GhostNetworks::NetworkImbalance` (r:1 w:1)
|
|
/// Proof: `GhostNetworks::NetworkImbalance` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `System::Account` (r:1 w:0)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn pull_evm_thread() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `358`
|
|
// Estimated: `3823`
|
|
// Minimum execution time: 131_682_000 picoseconds.
|
|
Weight::from_parts(132_731_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3823))
|
|
.saturating_add(RocksDbWeight::get().reads(6))
|
|
.saturating_add(RocksDbWeight::get().writes(3))
|
|
}
|
|
}
|