Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
e1be803
Update XCM weight template
ggwpez Mar 17, 2023
628a4b6
Remove copyright year from file header
ggwpez Mar 17, 2023
c4ac1a8
".git/.scripts/commands/bench/bench.sh" xcm statemine asset pallet_xc…
Mar 17, 2023
85544d3
Merge branch 'master' of https://github.com/paritytech/cumulus into HEAD
Mar 19, 2023
f7a89a8
".git/.scripts/commands/bench/bench.sh" xcm statemine assets pallet_x…
Mar 19, 2023
c33042a
".git/.scripts/commands/bench/bench.sh" xcm statemint assets pallet_x…
Mar 19, 2023
0e2c498
".git/.scripts/commands/bench/bench.sh" xcm statemint assets pallet_x…
Mar 19, 2023
bb5f740
".git/.scripts/commands/bench/bench.sh" xcm statemine assets pallet_x…
Mar 19, 2023
bab3f9e
Revert "".git/.scripts/commands/bench/bench.sh" xcm statemine asset p…
ggwpez Mar 20, 2023
2a10337
Merge branch 'master' of https://github.com/paritytech/cumulus into HEAD
Mar 20, 2023
2861bec
".git/.scripts/commands/bench/bench.sh" xcm westmint assets pallet_xc…
Mar 20, 2023
df9cb94
Merge branch 'master' of https://github.com/paritytech/cumulus into HEAD
Mar 20, 2023
72df1e2
".git/.scripts/commands/bench/bench.sh" xcm westmint assets pallet_xc…
Mar 20, 2023
2b6d91c
Merge branch 'master' of https://github.com/paritytech/cumulus into HEAD
Mar 20, 2023
e45c0fc
".git/.scripts/commands/bench/bench.sh" xcm bridge-hub-kusama bridge-…
Mar 20, 2023
6d82795
Merge branch 'master' of https://github.com/paritytech/cumulus into HEAD
Mar 21, 2023
699fee3
".git/.scripts/commands/bench/bench.sh" xcm bridge-hub-polkadot bridg…
Mar 21, 2023
1d10f8f
Update weights
ggwpez Mar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
".git/.scripts/commands/bench/bench.sh" xcm statemint assets pallet_x…
…cm_benchmarks::generic
  • Loading branch information
command-bot committed Mar 19, 2023
commit 0e2c49848fda3fc74531a70cf479842b95885f21
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2022 Parity Technologies (UK) Ltd.
// Copyright Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus is free software: you can redistribute it and/or modify
Expand All @@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. 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: 2023-02-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2023-03-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 1024

// Executed Command:
// ./artifacts/polkadot-parachain
// target/production/polkadot-parachain
// benchmark
// pallet
// --template=./templates/xcm-bench-template.hbs
// --chain=statemint-dev
// --steps=50
// --repeat=20
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/cumulus/.git/.artifacts/bench.json
// --pallet=pallet_xcm_benchmarks::generic
// --extrinsic=*
// --steps=50
// --repeat=20
// --json
// --chain=statemint-dev
// --header=./file_header.txt
// --output=./parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
// --template=./templates/xcm-bench-template.hbs
// --output=./parachains/runtimes/assets/statemint/src/weights/xcm/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -60,40 +61,80 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
pub(crate) fn report_holding() -> Weight {
Weight::from_parts(352_828_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
pub fn report_holding() -> Weight {
// Proof Size summary in bytes:
// Measured: `38`
// Estimated: `11084`
// Minimum execution time: 365_653_000 picoseconds.
Weight::from_parts(368_340_000, 11084)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
pub(crate) fn buy_execution() -> Weight {
Weight::from_parts(3_719_000 as u64, 0)
pub fn buy_execution() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_920_000 picoseconds.
Weight::from_parts(4_150_000, 0)
}
// Storage: PolkadotXcm Queries (r:1 w:0)
// Proof Skipped: PolkadotXcm Queries (max_values: None, max_size: None, mode: Measured)
pub(crate) fn query_response() -> Weight {
Weight::from_parts(10_697_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(1 as u64))
pub fn query_response() -> Weight {
// Proof Size summary in bytes:
// Measured: `32`
// Estimated: `3497`
// Minimum execution time: 10_988_000 picoseconds.
Weight::from_parts(11_207_000, 3497)
.saturating_add(T::DbWeight::get().reads(1))
}
pub(crate) fn transact() -> Weight {
Weight::from_parts(12_215_000 as u64, 0)
pub fn transact() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 13_509_000 picoseconds.
Weight::from_parts(13_775_000, 0)
}
pub(crate) fn refund_surplus() -> Weight {
Weight::from_parts(3_925_000 as u64, 0)
pub fn refund_surplus() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_497_000 picoseconds.
Weight::from_parts(7_580_000, 0)
}
pub(crate) fn set_error_handler() -> Weight {
Weight::from_parts(2_782_000 as u64, 0)
pub fn set_error_handler() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_971_000 picoseconds.
Weight::from_parts(3_086_000, 0)
}
pub(crate) fn set_appendix() -> Weight {
Weight::from_parts(2_765_000 as u64, 0)
pub fn set_appendix() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_937_000 picoseconds.
Weight::from_parts(3_081_000, 0)
}
pub(crate) fn clear_error() -> Weight {
Weight::from_parts(2_766_000 as u64, 0)
pub fn clear_error() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_960_000 picoseconds.
Weight::from_parts(3_073_000, 0)
}
pub(crate) fn descend_origin() -> Weight {
Weight::from_parts(3_553_000 as u64, 0)
pub fn descend_origin() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_879_000 picoseconds.
Weight::from_parts(4_040_000, 0)
}
pub(crate) fn clear_origin() -> Weight {
Weight::from_parts(2_732_000 as u64, 0)
pub fn clear_origin() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_965_000 picoseconds.
Weight::from_parts(3_062_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Expand All @@ -107,20 +148,32 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
pub(crate) fn report_error() -> Weight {
Weight::from_parts(23_189_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
pub fn report_error() -> Weight {
// Proof Size summary in bytes:
// Measured: `38`
// Estimated: `11084`
// Minimum execution time: 24_225_000 picoseconds.
Weight::from_parts(24_520_000, 11084)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: PolkadotXcm AssetTraps (r:1 w:1)
// Proof Skipped: PolkadotXcm AssetTraps (max_values: None, max_size: None, mode: Measured)
pub(crate) fn claim_asset() -> Weight {
Weight::from_parts(14_569_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
pub fn claim_asset() -> Weight {
// Proof Size summary in bytes:
// Measured: `90`
// Estimated: `3555`
// Minimum execution time: 14_899_000 picoseconds.
Weight::from_parts(15_205_000, 3555)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
pub(crate) fn trap() -> Weight {
Weight::from_parts(2_759_000 as u64, 0)
pub fn trap() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_942_000 picoseconds.
Weight::from_parts(3_026_000, 0)
}
// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
Expand All @@ -134,16 +187,24 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
pub(crate) fn subscribe_version() -> Weight {
Weight::from_parts(24_423_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
pub fn subscribe_version() -> Weight {
// Proof Size summary in bytes:
// Measured: `38`
// Estimated: `13098`
// Minimum execution time: 26_636_000 picoseconds.
Weight::from_parts(27_027_000, 13098)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: PolkadotXcm VersionNotifyTargets (r:0 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
pub(crate) fn unsubscribe_version() -> Weight {
Weight::from_parts(4_575_000 as u64, 0)
.saturating_add(T::DbWeight::get().writes(1 as u64))
pub fn unsubscribe_version() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_074_000 picoseconds.
Weight::from_parts(5_223_000, 0)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Expand All @@ -157,25 +218,49 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
pub(crate) fn initiate_reserve_withdraw() -> Weight {
Weight::from_parts(406_184_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
pub fn initiate_reserve_withdraw() -> Weight {
// Proof Size summary in bytes:
// Measured: `38`
// Estimated: `11084`
// Minimum execution time: 414_125_000 picoseconds.
Weight::from_parts(456_357_000, 11084)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
pub(crate) fn burn_asset() -> Weight {
Weight::from_parts(125_739_000 as u64, 0)
pub fn burn_asset() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 134_528_000 picoseconds.
Weight::from_parts(135_936_000, 0)
}
pub(crate) fn expect_asset() -> Weight {
Weight::from_parts(13_105_000 as u64, 0)
pub fn expect_asset() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 12_812_000 picoseconds.
Weight::from_parts(12_945_000, 0)
}
pub(crate) fn expect_origin() -> Weight {
Weight::from_parts(2_823_000 as u64, 0)
pub fn expect_origin() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_011_000 picoseconds.
Weight::from_parts(3_129_000, 0)
}
pub(crate) fn expect_error() -> Weight {
Weight::from_parts(2_771_000 as u64, 0)
pub fn expect_error() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_769_000 picoseconds.
Weight::from_parts(4_847_000, 0)
}
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_parts(2_883_000 as u64, 0)
pub fn expect_transact_status() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_169_000 picoseconds.
Weight::from_parts(3_350_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Expand All @@ -189,13 +274,21 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
pub(crate) fn query_pallet() -> Weight {
Weight::from_parts(25_695_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
pub fn query_pallet() -> Weight {
// Proof Size summary in bytes:
// Measured: `38`
// Estimated: `11084`
// Minimum execution time: 27_621_000 picoseconds.
Weight::from_parts(28_085_000, 11084)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
pub(crate) fn expect_pallet() -> Weight {
Weight::from_parts(4_650_000 as u64, 0)
pub fn expect_pallet() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 5_296_000 picoseconds.
Weight::from_parts(5_413_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Expand All @@ -209,24 +302,48 @@ impl<T: frame_system::Config> WeightInfo<T> {
// Proof Skipped: ParachainSystem HostConfiguration (max_values: Some(1), max_size: None, mode: Measured)
// Storage: ParachainSystem PendingUpwardMessages (r:1 w:1)
// Proof Skipped: ParachainSystem PendingUpwardMessages (max_values: Some(1), max_size: None, mode: Measured)
pub(crate) fn report_transact_status() -> Weight {
Weight::from_parts(23_415_000 as u64, 0)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
pub fn report_transact_status() -> Weight {
// Proof Size summary in bytes:
// Measured: `38`
// Estimated: `11084`
// Minimum execution time: 24_309_000 picoseconds.
Weight::from_parts(24_673_000, 11084)
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(2))
}
pub(crate) fn clear_transact_status() -> Weight {
Weight::from_parts(2_756_000 as u64, 0)
pub fn clear_transact_status() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_928_000 picoseconds.
Weight::from_parts(3_066_000, 0)
}
pub(crate) fn set_topic() -> Weight {
Weight::from_parts(2_702_000 as u64, 0)
pub fn set_topic() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_904_000 picoseconds.
Weight::from_parts(2_988_000, 0)
}
pub(crate) fn clear_topic() -> Weight {
Weight::from_parts(2_738_000 as u64, 0)
pub fn clear_topic() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_906_000 picoseconds.
Weight::from_parts(2_989_000, 0)
}
pub(crate) fn set_fees_mode() -> Weight {
Weight::from_parts(2_700_000 as u64, 0)
pub fn set_fees_mode() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_950_000 picoseconds.
Weight::from_parts(3_047_000, 0)
}
pub(crate) fn unpaid_execution() -> Weight {
Weight::from_parts(2_894_000 as u64, 0)
pub fn unpaid_execution() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_150_000 picoseconds.
Weight::from_parts(3_243_000, 0)
}
}