mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
MillauWeight -> BridgeWeight (#1593)
This commit is contained in:
committed by
Bastian Köcher
parent
4f4200b0eb
commit
6f9bda5db0
@@ -17,7 +17,7 @@
|
||||
//! Autogenerated weights for `pallet_bridge_parachains`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-07-06, STEPS: 50, REPEAT: 20
|
||||
//! DATE: 2022-10-04, STEPS: 50, REPEAT: 20
|
||||
//! LOW RANGE: [], HIGH RANGE: []
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled
|
||||
//! CHAIN: Some("dev"), DB CACHE: 1024
|
||||
@@ -55,23 +55,25 @@ pub trait WeightInfo {
|
||||
fn submit_parachain_heads_with_16kb_proof() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for `pallet_bridge_parachains` using the Millau node and recommended hardware.
|
||||
pub struct MillauWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for MillauWeight<T> {
|
||||
/// Weights for `pallet_bridge_parachains` that are generated using one of the Bridge testnets.
|
||||
///
|
||||
/// Those weights are test only and must never be used in production.
|
||||
pub struct BridgeWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for BridgeWeight<T> {
|
||||
fn submit_parachain_heads_with_n_parachains(p: u32) -> Weight {
|
||||
(0 as Weight)
|
||||
.saturating_add((18_706_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((24_869_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(p as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(p as Weight)))
|
||||
}
|
||||
fn submit_parachain_heads_with_1kb_proof() -> Weight {
|
||||
(27_549_000 as Weight)
|
||||
(56_262_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
fn submit_parachain_heads_with_16kb_proof() -> Weight {
|
||||
(80_792_000 as Weight)
|
||||
(105_189_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -81,18 +83,18 @@ impl<T: frame_system::Config> WeightInfo for MillauWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
fn submit_parachain_heads_with_n_parachains(p: u32) -> Weight {
|
||||
(0 as Weight)
|
||||
.saturating_add((18_706_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((24_869_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(p as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(p as Weight)))
|
||||
}
|
||||
fn submit_parachain_heads_with_1kb_proof() -> Weight {
|
||||
(27_549_000 as Weight)
|
||||
(56_262_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
fn submit_parachain_heads_with_16kb_proof() -> Weight {
|
||||
(80_792_000 as Weight)
|
||||
(105_189_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
//! Weight-related utilities.
|
||||
|
||||
use crate::weights::{MillauWeight, WeightInfo};
|
||||
use crate::weights::{BridgeWeight, WeightInfo};
|
||||
|
||||
use bp_runtime::Size;
|
||||
use frame_support::weights::{RuntimeDbWeight, Weight};
|
||||
@@ -101,7 +101,7 @@ impl WeightInfoExt for () {
|
||||
}
|
||||
}
|
||||
|
||||
impl<T: frame_system::Config> WeightInfoExt for MillauWeight<T> {
|
||||
impl<T: frame_system::Config> WeightInfoExt for BridgeWeight<T> {
|
||||
fn expected_extra_storage_proof_size() -> u32 {
|
||||
EXTRA_STORAGE_PROOF_SIZE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user