diff --git a/runtime/calamari/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/calamari/src/weights/cumulus_pallet_xcmp_queue.rs new file mode 100644 index 000000000..27847a358 --- /dev/null +++ b/runtime/calamari/src/weights/cumulus_pallet_xcmp_queue.rs @@ -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 . + +//! 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(PhantomData); +impl cumulus_pallet_xcmp_queue::WeightInfo for SubstrateWeight { + // 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)) + } +} \ No newline at end of file diff --git a/runtime/dolphin/src/weights/cumulus_pallet_xcmp_queue.rs b/runtime/dolphin/src/weights/cumulus_pallet_xcmp_queue.rs new file mode 100644 index 000000000..27847a358 --- /dev/null +++ b/runtime/dolphin/src/weights/cumulus_pallet_xcmp_queue.rs @@ -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 . + +//! 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(PhantomData); +impl cumulus_pallet_xcmp_queue::WeightInfo for SubstrateWeight { + // 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)) + } +} \ No newline at end of file