90fd044766
- snowbridge-pezpallet-* → pezsnowbridge-pezpallet-* (201 refs) - pallet/ directories → pezpallet/ (4 locations) - Fixed pezpallet.rs self-include recursion bug - Fixed sc-chain-spec hardcoded crate name in derive macro - Reverted .pezpallet_by_name() to .pallet_by_name() (subxt API) - Added BizinikiwiConfig type alias for zombienet tests - Deleted obsolete session state files Verified: pezsnowbridge-pezpallet-*, pezpallet-staking, pezpallet-staking-async, pezframe-benchmarking-cli all pass cargo check
105 lines
4.5 KiB
Rust
105 lines
4.5 KiB
Rust
|
|
//! Autogenerated weights for `snowbridge_system`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE BIZINIKIWI BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-10-09, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `crake.local`, CPU: `<UNKNOWN>`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-pezkuwichain-dev")`, DB CACHE: `1024`
|
|
|
|
// Executed Command:
|
|
// target/release/pezkuwi-teyrchain
|
|
// benchmark
|
|
// pezpallet
|
|
// --chain
|
|
// bridge-hub-pezkuwichain-dev
|
|
// --pezpallet=snowbridge_system
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --template
|
|
// ../teyrchain/templates/module-weight-template.hbs
|
|
// --output
|
|
// ../teyrchain/pallets/control/src/weights.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use pezframe_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions needed for `snowbridge_system`.
|
|
pub trait WeightInfo {
|
|
fn register_token() -> Weight;
|
|
fn upgrade() -> Weight;
|
|
fn set_operating_mode() -> Weight;
|
|
fn add_tip() -> Weight;
|
|
}
|
|
|
|
// For backwards compatibility and tests.
|
|
impl WeightInfo for () {
|
|
fn register_token() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `256`
|
|
// Estimated: `6044`
|
|
// Minimum execution time: 45_000_000 picoseconds.
|
|
Weight::from_parts(45_000_000, 6044)
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: TeyrchainInfo TeyrchainId (r:1 w:0)
|
|
/// Proof: TeyrchainInfo TeyrchainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
|
|
/// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
|
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
|
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
|
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
|
/// Storage: MessageQueue Pages (r:0 w:1)
|
|
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
|
fn upgrade() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `80`
|
|
// Estimated: `3517`
|
|
// Minimum execution time: 44_000_000 picoseconds.
|
|
Weight::from_parts(44_000_000, 3517)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: TeyrchainInfo TeyrchainId (r:1 w:0)
|
|
/// Proof: TeyrchainInfo TeyrchainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
|
/// Storage: EthereumOutboundQueue PalletOperatingMode (r:1 w:0)
|
|
/// Proof: EthereumOutboundQueue PalletOperatingMode (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
|
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
|
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
|
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
|
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
|
/// Storage: MessageQueue Pages (r:0 w:1)
|
|
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
|
fn set_operating_mode() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `80`
|
|
// Estimated: `3517`
|
|
// Minimum execution time: 31_000_000 picoseconds.
|
|
Weight::from_parts(31_000_000, 3517)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `EthereumInboundQueueV2::NonceBitmap` (r:1 w:0)
|
|
/// Proof: `EthereumInboundQueueV2::NonceBitmap` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
|
|
/// Storage: `EthereumInboundQueueV2::Tips` (r:1 w:1)
|
|
/// Proof: `EthereumInboundQueueV2::Tips` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
|
|
fn add_tip() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `3`
|
|
// Estimated: `3505`
|
|
// Minimum execution time: 5_000_000 picoseconds.
|
|
Weight::from_parts(6_000_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3505))
|
|
.saturating_add(RocksDbWeight::get().reads(2))
|
|
.saturating_add(RocksDbWeight::get().writes(1))
|
|
}
|
|
}
|