-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Dengjianping <[email protected]>
- Loading branch information
1 parent
23aa92b
commit a6b9885
Showing
2 changed files
with
162 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Copyright 2020-2022 Manta Network. | ||
// This file is part of Manta. | ||
|
||
// Manta 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. | ||
|
||
// Manta 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 Manta. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
//! Autogenerated weights for cumulus_pallet_xcmp_queue | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-06-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("calamari-dev"), DB CACHE: 1024 | ||
// Executed Command: | ||
// manta | ||
// benchmark | ||
// --chain=calamari-dev | ||
// --pallet=cumulus_pallet_xcmp_queue | ||
// --extrinsic=* | ||
// --execution=Wasm | ||
// --wasm-execution=Compiled | ||
// --heap-pages=4096 | ||
// --repeat=20 | ||
// --steps=50 | ||
// --template=.github/resources/frame-weight-template.hbs | ||
// --output=cumulus_pallet_xcmp_queue.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions needed for cumulus_pallet_xcmp_queue. | ||
pub trait WeightInfo { | ||
fn set_config_with_u32() -> Weight; | ||
fn set_config_with_weight() -> Weight; | ||
} | ||
|
||
/// Weights for cumulus_pallet_xcmp_queue using the Substrate node and recommended hardware. | ||
pub struct SubstrateWeight<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for SubstrateWeight<T> { | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_u32() -> Weight { | ||
(6_354_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_weight() -> Weight { | ||
(4_226_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
} | ||
|
||
// For backwards compatibility and tests | ||
impl WeightInfo for () { | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_u32() -> Weight { | ||
(6_354_000 as Weight) | ||
.saturating_add(RocksDbWeight::get().reads(1 as Weight)) | ||
.saturating_add(RocksDbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_weight() -> Weight { | ||
(4_226_000 as Weight) | ||
.saturating_add(RocksDbWeight::get().reads(1 as Weight)) | ||
.saturating_add(RocksDbWeight::get().writes(1 as Weight)) | ||
} | ||
} |
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,81 @@ | ||
// Copyright 2020-2022 Manta Network. | ||
// This file is part of Manta. | ||
|
||
// Manta 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. | ||
|
||
// Manta 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 Manta. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
//! Autogenerated weights for cumulus_pallet_xcmp_queue | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-06-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("calamari-dev"), DB CACHE: 1024 | ||
// Executed Command: | ||
// manta | ||
// benchmark | ||
// --chain=calamari-dev | ||
// --pallet=cumulus_pallet_xcmp_queue | ||
// --extrinsic=* | ||
// --execution=Wasm | ||
// --wasm-execution=Compiled | ||
// --heap-pages=4096 | ||
// --repeat=20 | ||
// --steps=50 | ||
// --template=.github/resources/frame-weight-template.hbs | ||
// --output=cumulus_pallet_xcmp_queue.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions needed for cumulus_pallet_xcmp_queue. | ||
pub trait WeightInfo { | ||
fn set_config_with_u32() -> Weight; | ||
fn set_config_with_weight() -> Weight; | ||
} | ||
|
||
/// Weights for cumulus_pallet_xcmp_queue using the Substrate node and recommended hardware. | ||
pub struct SubstrateWeight<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for SubstrateWeight<T> { | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_u32() -> Weight { | ||
(6_354_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_weight() -> Weight { | ||
(4_226_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
} | ||
|
||
// For backwards compatibility and tests | ||
impl WeightInfo for () { | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_u32() -> Weight { | ||
(6_354_000 as Weight) | ||
.saturating_add(RocksDbWeight::get().reads(1 as Weight)) | ||
.saturating_add(RocksDbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: XcmpQueue QueueConfig (r:1 w:1) | ||
fn set_config_with_weight() -> Weight { | ||
(4_226_000 as Weight) | ||
.saturating_add(RocksDbWeight::get().reads(1 as Weight)) | ||
.saturating_add(RocksDbWeight::get().writes(1 as Weight)) | ||
} | ||
} |