Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit f6776c5

Browse files
author
Parity Bot
committed
cargo run --quiet --release --features=runtime-benchmarks -- 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
1 parent 7ce4dad commit f6776c5

File tree

1 file changed

+168
-0
lines changed

1 file changed

+168
-0
lines changed
Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
// Copyright 2017-2021 Parity Technologies (UK) Ltd.
2+
// This file is part of Polkadot.
3+
4+
// Polkadot is free software: you can redistribute it and/or modify
5+
// it under the terms of the GNU General Public License as published by
6+
// the Free Software Foundation, either version 3 of the License, or
7+
// (at your option) any later version.
8+
9+
// Polkadot is distributed in the hope that it will be useful,
10+
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
// GNU General Public License for more details.
13+
14+
// You should have received a copy of the GNU General Public License
15+
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16+
//! Autogenerated weights for `pallet_xcm_benchmarks::generic`
17+
//!
18+
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19+
//! DATE: 2021-12-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
20+
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128
21+
22+
// Executed Command:
23+
// target/release/polkadot
24+
// benchmark
25+
// --chain=westend-dev
26+
// --steps=50
27+
// --repeat=20
28+
// --pallet=pallet_xcm_benchmarks::generic
29+
// --extrinsic=*
30+
// --execution=wasm
31+
// --wasm-execution=compiled
32+
// --heap-pages=4096
33+
// --header=./file_header.txt
34+
// --output=./runtime/westend/src/weights/pallet_xcm_benchmarks_generic.rs
35+
36+
#![cfg_attr(rustfmt, rustfmt_skip)]
37+
#![allow(unused_parens)]
38+
#![allow(unused_imports)]
39+
40+
use frame_support::{traits::Get, weights::Weight};
41+
use sp_std::marker::PhantomData;
42+
43+
/// Weight functions for `pallet_xcm_benchmarks::generic`.
44+
pub struct WeightInfo<T>(PhantomData<T>);
45+
impl<T: frame_system::Config> pallet_xcm_benchmarks::generic::WeightInfo for WeightInfo<T> {
46+
// Storage: XcmPallet SupportedVersion (r:1 w:0)
47+
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
48+
// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
49+
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
50+
// Storage: Dmp DownwardMessageQueues (r:1 w:1)
51+
fn report_holding() -> Weight {
52+
(33_563_000 as Weight)
53+
.saturating_add(T::DbWeight::get().reads(5 as Weight))
54+
.saturating_add(T::DbWeight::get().writes(3 as Weight))
55+
}
56+
fn buy_execution() -> Weight {
57+
(4_983_000 as Weight)
58+
}
59+
// Storage: XcmPallet Queries (r:1 w:0)
60+
fn query_response() -> Weight {
61+
(17_299_000 as Weight)
62+
.saturating_add(T::DbWeight::get().reads(1 as Weight))
63+
}
64+
fn transact() -> Weight {
65+
(19_281_000 as Weight)
66+
}
67+
fn refund_surplus() -> Weight {
68+
(5_092_000 as Weight)
69+
}
70+
fn set_error_handler() -> Weight {
71+
(4_790_000 as Weight)
72+
}
73+
fn set_appendix() -> Weight {
74+
(4_810_000 as Weight)
75+
}
76+
fn clear_error() -> Weight {
77+
(4_823_000 as Weight)
78+
}
79+
fn descend_origin() -> Weight {
80+
(6_311_000 as Weight)
81+
}
82+
fn clear_origin() -> Weight {
83+
(4_866_000 as Weight)
84+
}
85+
// Storage: XcmPallet SupportedVersion (r:1 w:0)
86+
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
87+
// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
88+
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
89+
// Storage: Dmp DownwardMessageQueues (r:1 w:1)
90+
fn report_error() -> Weight {
91+
(25_634_000 as Weight)
92+
.saturating_add(T::DbWeight::get().reads(5 as Weight))
93+
.saturating_add(T::DbWeight::get().writes(3 as Weight))
94+
}
95+
// Storage: XcmPallet AssetTraps (r:1 w:1)
96+
fn claim_asset() -> Weight {
97+
(11_663_000 as Weight)
98+
.saturating_add(T::DbWeight::get().reads(1 as Weight))
99+
.saturating_add(T::DbWeight::get().writes(1 as Weight))
100+
}
101+
fn trap() -> Weight {
102+
(4_852_000 as Weight)
103+
}
104+
// Storage: XcmPallet VersionNotifyTargets (r:1 w:1)
105+
// Storage: XcmPallet SupportedVersion (r:1 w:0)
106+
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
107+
// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
108+
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
109+
// Storage: Dmp DownwardMessageQueues (r:1 w:1)
110+
fn subscribe_version() -> Weight {
111+
(30_512_000 as Weight)
112+
.saturating_add(T::DbWeight::get().reads(6 as Weight))
113+
.saturating_add(T::DbWeight::get().writes(4 as Weight))
114+
}
115+
// Storage: XcmPallet VersionNotifyTargets (r:0 w:1)
116+
fn unsubscribe_version() -> Weight {
117+
(7_416_000 as Weight)
118+
.saturating_add(T::DbWeight::get().writes(1 as Weight))
119+
}
120+
// Storage: XcmPallet SupportedVersion (r:1 w:0)
121+
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
122+
// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
123+
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
124+
// Storage: Dmp DownwardMessageQueues (r:1 w:1)
125+
fn initiate_reserve_withdraw() -> Weight {
126+
(35_337_000 as Weight)
127+
.saturating_add(T::DbWeight::get().reads(5 as Weight))
128+
.saturating_add(T::DbWeight::get().writes(3 as Weight))
129+
}
130+
fn burn_asset() -> Weight {
131+
(7_682_000 as Weight)
132+
}
133+
fn expect_asset() -> Weight {
134+
(4_967_000 as Weight)
135+
}
136+
fn expect_origin() -> Weight {
137+
(5_006_000 as Weight)
138+
}
139+
fn expect_error() -> Weight {
140+
(4_773_000 as Weight)
141+
}
142+
// Storage: XcmPallet SupportedVersion (r:1 w:0)
143+
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
144+
// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
145+
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
146+
// Storage: Dmp DownwardMessageQueues (r:1 w:1)
147+
fn query_pallet() -> Weight {
148+
(27_029_000 as Weight)
149+
.saturating_add(T::DbWeight::get().reads(5 as Weight))
150+
.saturating_add(T::DbWeight::get().writes(3 as Weight))
151+
}
152+
fn expect_pallet() -> Weight {
153+
(5_201_000 as Weight)
154+
}
155+
// Storage: XcmPallet SupportedVersion (r:1 w:0)
156+
// Storage: XcmPallet VersionDiscoveryQueue (r:1 w:1)
157+
// Storage: XcmPallet SafeXcmVersion (r:1 w:0)
158+
// Storage: Dmp DownwardMessageQueueHeads (r:1 w:1)
159+
// Storage: Dmp DownwardMessageQueues (r:1 w:1)
160+
fn report_transact_status() -> Weight {
161+
(25_960_000 as Weight)
162+
.saturating_add(T::DbWeight::get().reads(5 as Weight))
163+
.saturating_add(T::DbWeight::get().writes(3 as Weight))
164+
}
165+
fn clear_transact_status() -> Weight {
166+
(4_853_000 as Weight)
167+
}
168+
}

0 commit comments

Comments
 (0)