-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add millau specific messages weights (#2097)
* refactor weights a bit * post cherry-pick fixes * do not run spellcheck on new weight files * fix
- Loading branch information
Showing
14 changed files
with
461 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2019-2021 Parity Technologies (UK) Ltd. | ||
// This file is part of Parity Bridges Common. | ||
|
||
// Parity Bridges Common 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. | ||
|
||
// Parity Bridges Common 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 Parity Bridges Common. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
mod pallet_bridge_messages_messages_bench_runtime_with_rialto_messages_instance; | ||
mod pallet_bridge_messages_messages_bench_runtime_with_rialto_parachain_messages_instance; | ||
|
||
pub use pallet_bridge_messages_messages_bench_runtime_with_rialto_messages_instance::WeightInfo as RialtoMessagesWeightInfo; | ||
pub use pallet_bridge_messages_messages_bench_runtime_with_rialto_parachain_messages_instance::WeightInfo as RialtoParachainMessagesWeightInfo; |
188 changes: 188 additions & 0 deletions
188
...rc/weights/pallet_bridge_messages_messages_bench_runtime_with_rialto_messages_instance.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,188 @@ | ||
|
||
//! Autogenerated weights for `pallet_bridge_messages` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2023-05-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `covid`, CPU: `11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// target/release/millau-bridge-node | ||
// benchmark | ||
// pallet | ||
// --chain=dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --pallet=pallet_bridge_messages | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=Compiled | ||
// --heap-pages=4096 | ||
// --output=./bin/millau/runtime/src/weights/ | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_bridge_messages`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_bridge_messages::WeightInfo for WeightInfo<T> { | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen) | ||
fn receive_single_message_proof() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `490` | ||
// Estimated: `57170` | ||
// Minimum execution time: 51_189_000 picoseconds. | ||
Weight::from_parts(52_881_000, 0) | ||
.saturating_add(Weight::from_parts(0, 57170)) | ||
.saturating_add(T::DbWeight::get().reads(3)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen) | ||
fn receive_two_messages_proof() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `490` | ||
// Estimated: `57170` | ||
// Minimum execution time: 65_083_000 picoseconds. | ||
Weight::from_parts(66_878_000, 0) | ||
.saturating_add(Weight::from_parts(0, 57170)) | ||
.saturating_add(T::DbWeight::get().reads(3)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen) | ||
fn receive_single_message_proof_with_outbound_lane_state() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `490` | ||
// Estimated: `57170` | ||
// Minimum execution time: 57_919_000 picoseconds. | ||
Weight::from_parts(58_927_000, 0) | ||
.saturating_add(Weight::from_parts(0, 57170)) | ||
.saturating_add(T::DbWeight::get().reads(3)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen) | ||
fn receive_single_message_proof_1_kb() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `490` | ||
// Estimated: `57170` | ||
// Minimum execution time: 52_202_000 picoseconds. | ||
Weight::from_parts(53_617_000, 0) | ||
.saturating_add(Weight::from_parts(0, 57170)) | ||
.saturating_add(T::DbWeight::get().reads(3)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen) | ||
fn receive_single_message_proof_16_kb() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `490` | ||
// Estimated: `57170` | ||
// Minimum execution time: 74_726_000 picoseconds. | ||
Weight::from_parts(76_379_000, 0) | ||
.saturating_add(Weight::from_parts(0, 57170)) | ||
.saturating_add(T::DbWeight::get().reads(3)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages OutboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added: 539, mode: MaxEncodedLen) | ||
/// Storage: BridgeRelayers RelayerRewards (r:1 w:1) | ||
/// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) | ||
fn receive_delivery_proof_for_single_message() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `515` | ||
// Estimated: `9584` | ||
// Minimum execution time: 45_156_000 picoseconds. | ||
Weight::from_parts(46_535_000, 0) | ||
.saturating_add(Weight::from_parts(0, 9584)) | ||
.saturating_add(T::DbWeight::get().reads(4)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages OutboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added: 539, mode: MaxEncodedLen) | ||
/// Storage: BridgeRelayers RelayerRewards (r:1 w:1) | ||
/// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) | ||
fn receive_delivery_proof_for_two_messages_by_single_relayer() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `532` | ||
// Estimated: `9584` | ||
// Minimum execution time: 44_104_000 picoseconds. | ||
Weight::from_parts(45_602_000, 0) | ||
.saturating_add(Weight::from_parts(0, 9584)) | ||
.saturating_add(T::DbWeight::get().reads(4)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages OutboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages OutboundLanes (max_values: Some(1), max_size: Some(44), added: 539, mode: MaxEncodedLen) | ||
/// Storage: BridgeRelayers RelayerRewards (r:2 w:2) | ||
/// Proof: BridgeRelayers RelayerRewards (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen) | ||
fn receive_delivery_proof_for_two_messages_by_two_relayers() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `532` | ||
// Estimated: `12124` | ||
// Minimum execution time: 46_880_000 picoseconds. | ||
Weight::from_parts(48_472_000, 0) | ||
.saturating_add(Weight::from_parts(0, 12124)) | ||
.saturating_add(T::DbWeight::get().reads(5)) | ||
.saturating_add(T::DbWeight::get().writes(3)) | ||
} | ||
/// Storage: BridgeRialtoMessages PalletOperatingMode (r:1 w:0) | ||
/// Proof: BridgeRialtoMessages PalletOperatingMode (max_values: Some(1), max_size: Some(2), added: 497, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoGrandpa ImportedHeaders (r:1 w:0) | ||
/// Proof: BridgeRialtoGrandpa ImportedHeaders (max_values: Some(14400), max_size: Some(68), added: 2048, mode: MaxEncodedLen) | ||
/// Storage: BridgeRialtoMessages InboundLanes (r:1 w:1) | ||
/// Proof: BridgeRialtoMessages InboundLanes (max_values: None, max_size: Some(49180), added: 51655, mode: MaxEncodedLen) | ||
/// The range of component `i` is `[128, 2048]`. | ||
/// The range of component `i` is `[128, 2048]`. | ||
fn receive_single_message_proof_with_dispatch(i: u32, ) -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `490` | ||
// Estimated: `57170` | ||
// Minimum execution time: 107_297_000 picoseconds. | ||
Weight::from_parts(98_819_194, 0) | ||
.saturating_add(Weight::from_parts(0, 57170)) | ||
// Standard Error: 2_195 | ||
.saturating_add(Weight::from_parts(448_268, 0).saturating_mul(i.into())) | ||
.saturating_add(T::DbWeight::get().reads(3)) | ||
.saturating_add(T::DbWeight::get().writes(1)) | ||
} | ||
} |
Oops, something went wrong.