This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cargo run --quiet --release --features=runtime-benchmarks -- benchmar…
…k --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/pallet_xcm_benchmarks_generic.rs
- Loading branch information
Parity Bot
committed
Dec 20, 2021
1 parent
7ce4dad
commit f6776c5
Showing
1 changed file
with
168 additions
and
0 deletions.
There are no files selected for viewing
168 changes: 168 additions & 0 deletions
168
runtime/westend/src/weights/pallet_xcm_benchmarks_generic.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,168 @@ | ||
// Copyright 2017-2021 Parity Technologies (UK) Ltd. | ||
// This file is part of Polkadot. | ||
|
||
// Polkadot 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. | ||
|
||
// Polkadot 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 Polkadot. If not, see <http://www.gnu.org/licenses/>. | ||
//! Autogenerated weights for `pallet_xcm_benchmarks::generic` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2021-12-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128 | ||
// Executed Command: | ||
// target/release/polkadot | ||
// benchmark | ||
// --chain=westend-dev | ||
// --steps=50 | ||
// --repeat=20 | ||
// --pallet=pallet_xcm_benchmarks::generic | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --header=./file_header.txt | ||
// --output=./runtime/westend/src/weights/pallet_xcm_benchmarks_generic.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_xcm_benchmarks::generic`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_xcm_benchmarks::generic::WeightInfo for WeightInfo<T> { | ||
// Storage: XcmPallet SupportedVersion (r:1 w:0) | ||
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1) | ||
// Storage: XcmPallet SafeXcmVersion (r:1 w:0) | ||
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) | ||
// Storage: Dmp DownwardMessageQueues (r:1 w:1) | ||
fn report_holding() -> Weight { | ||
(33_563_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
fn buy_execution() -> Weight { | ||
(4_983_000 as Weight) | ||
} | ||
// Storage: XcmPallet Queries (r:1 w:0) | ||
fn query_response() -> Weight { | ||
(17_299_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
} | ||
fn transact() -> Weight { | ||
(19_281_000 as Weight) | ||
} | ||
fn refund_surplus() -> Weight { | ||
(5_092_000 as Weight) | ||
} | ||
fn set_error_handler() -> Weight { | ||
(4_790_000 as Weight) | ||
} | ||
fn set_appendix() -> Weight { | ||
(4_810_000 as Weight) | ||
} | ||
fn clear_error() -> Weight { | ||
(4_823_000 as Weight) | ||
} | ||
fn descend_origin() -> Weight { | ||
(6_311_000 as Weight) | ||
} | ||
fn clear_origin() -> Weight { | ||
(4_866_000 as Weight) | ||
} | ||
// Storage: XcmPallet SupportedVersion (r:1 w:0) | ||
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1) | ||
// Storage: XcmPallet SafeXcmVersion (r:1 w:0) | ||
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) | ||
// Storage: Dmp DownwardMessageQueues (r:1 w:1) | ||
fn report_error() -> Weight { | ||
(25_634_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
// Storage: XcmPallet AssetTraps (r:1 w:1) | ||
fn claim_asset() -> Weight { | ||
(11_663_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn trap() -> Weight { | ||
(4_852_000 as Weight) | ||
} | ||
// Storage: XcmPallet VersionNotifyTargets (r:1 w:1) | ||
// Storage: XcmPallet SupportedVersion (r:1 w:0) | ||
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1) | ||
// Storage: XcmPallet SafeXcmVersion (r:1 w:0) | ||
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) | ||
// Storage: Dmp DownwardMessageQueues (r:1 w:1) | ||
fn subscribe_version() -> Weight { | ||
(30_512_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(6 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
// Storage: XcmPallet VersionNotifyTargets (r:0 w:1) | ||
fn unsubscribe_version() -> Weight { | ||
(7_416_000 as Weight) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
// Storage: XcmPallet SupportedVersion (r:1 w:0) | ||
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1) | ||
// Storage: XcmPallet SafeXcmVersion (r:1 w:0) | ||
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) | ||
// Storage: Dmp DownwardMessageQueues (r:1 w:1) | ||
fn initiate_reserve_withdraw() -> Weight { | ||
(35_337_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
fn burn_asset() -> Weight { | ||
(7_682_000 as Weight) | ||
} | ||
fn expect_asset() -> Weight { | ||
(4_967_000 as Weight) | ||
} | ||
fn expect_origin() -> Weight { | ||
(5_006_000 as Weight) | ||
} | ||
fn expect_error() -> Weight { | ||
(4_773_000 as Weight) | ||
} | ||
// Storage: XcmPallet SupportedVersion (r:1 w:0) | ||
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1) | ||
// Storage: XcmPallet SafeXcmVersion (r:1 w:0) | ||
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) | ||
// Storage: Dmp DownwardMessageQueues (r:1 w:1) | ||
fn query_pallet() -> Weight { | ||
(27_029_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
fn expect_pallet() -> Weight { | ||
(5_201_000 as Weight) | ||
} | ||
// Storage: XcmPallet SupportedVersion (r:1 w:0) | ||
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1) | ||
// Storage: XcmPallet SafeXcmVersion (r:1 w:0) | ||
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1) | ||
// Storage: Dmp DownwardMessageQueues (r:1 w:1) | ||
fn report_transact_status() -> Weight { | ||
(25_960_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
fn clear_transact_status() -> Weight { | ||
(4_853_000 as Weight) | ||
} | ||
} |