diff --git a/file_header.txt b/file_header.txt
index 95c7d94c8f3..04f0c5de271 100644
--- a/file_header.txt
+++ b/file_header.txt
@@ -1,4 +1,4 @@
-// Copyright 2021 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
diff --git a/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
index a72d4e04662..8999d55df5b 100644
--- a/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+++ b/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
-//! DATE: 2023-02-22, 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("statemine-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=statemine-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::fungible
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=statemine-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/assets/statemine/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,17 +51,25 @@ pub struct WeightInfo(PhantomData);
impl WeightInfo {
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn withdraw_asset() -> Weight {
- Weight::from_parts(22_035_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn withdraw_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `3593`
+ // Minimum execution time: 22_457_000 picoseconds.
+ Weight::from_parts(22_952_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn transfer_asset() -> Weight {
- Weight::from_parts(54_300_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ pub fn transfer_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `6196`
+ // Minimum execution time: 32_247_000 picoseconds.
+ Weight::from_parts(32_534_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -76,20 +85,32 @@ impl WeightInfo {
// 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 transfer_reserve_asset() -> Weight {
- Weight::from_parts(78_569_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(8 as u64))
- .saturating_add(T::DbWeight::get().writes(4 as u64))
+ pub fn transfer_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `139`
+ // Estimated: `17785`
+ // Minimum execution time: 53_956_000 picoseconds.
+ Weight::from_parts(55_144_000, 17785)
+ .saturating_add(T::DbWeight::get().reads(8))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- pub(crate) fn receive_teleported_asset() -> Weight {
- Weight::from_parts(4_652_000 as u64, 0)
+ pub fn receive_teleported_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_424_000 picoseconds.
+ Weight::from_parts(4_494_000, 0)
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn deposit_asset() -> Weight {
- Weight::from_parts(23_684_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn deposit_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `3593`
+ // Minimum execution time: 25_243_000 picoseconds.
+ Weight::from_parts(25_666_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -105,10 +126,14 @@ impl WeightInfo {
// 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 deposit_reserve_asset() -> Weight {
- Weight::from_parts(45_884_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(7 as u64))
- .saturating_add(T::DbWeight::get().writes(3 as u64))
+ pub fn deposit_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `38`
+ // Estimated: `14677`
+ // Minimum execution time: 47_487_000 picoseconds.
+ Weight::from_parts(80_083_000, 14677)
+ .saturating_add(T::DbWeight::get().reads(7))
+ .saturating_add(T::DbWeight::get().writes(3))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -122,9 +147,13 @@ impl WeightInfo {
// 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_teleport() -> Weight {
- Weight::from_parts(30_239_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_teleport() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `38`
+ // Estimated: `11084`
+ // Minimum execution time: 31_674_000 picoseconds.
+ Weight::from_parts(45_575_000, 11084)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
index d5d27b41e57..8424d5d64a9 100644
--- a/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+++ b/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! 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-22, 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("statemine-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=statemine-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=statemine-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/assets/statemine/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -60,40 +61,80 @@ impl WeightInfo {
// 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(450_021_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: 364_890_000 picoseconds.
+ Weight::from_parts(367_248_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(4_086_000 as u64, 0)
+ pub fn buy_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_032_000 picoseconds.
+ Weight::from_parts(4_167_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(11_290_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: 11_093_000 picoseconds.
+ Weight::from_parts(11_300_000, 3497)
+ .saturating_add(T::DbWeight::get().reads(1))
}
- pub(crate) fn transact() -> Weight {
- Weight::from_parts(13_288_000 as u64, 0)
+ pub fn transact() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 13_672_000 picoseconds.
+ Weight::from_parts(13_829_000, 0)
}
- pub(crate) fn refund_surplus() -> Weight {
- Weight::from_parts(4_270_000 as u64, 0)
+ pub fn refund_surplus() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_451_000 picoseconds.
+ Weight::from_parts(4_581_000, 0)
}
- pub(crate) fn set_error_handler() -> Weight {
- Weight::from_parts(3_205_000 as u64, 0)
+ pub fn set_error_handler() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_053_000 picoseconds.
+ Weight::from_parts(3_148_000, 0)
}
- pub(crate) fn set_appendix() -> Weight {
- Weight::from_parts(3_246_000 as u64, 0)
+ pub fn set_appendix() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_733_000 picoseconds.
+ Weight::from_parts(4_784_000, 0)
}
- pub(crate) fn clear_error() -> Weight {
- Weight::from_parts(3_189_000 as u64, 0)
+ pub fn clear_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_002_000 picoseconds.
+ Weight::from_parts(3_072_000, 0)
}
- pub(crate) fn descend_origin() -> Weight {
- Weight::from_parts(4_222_000 as u64, 0)
+ pub fn descend_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_959_000 picoseconds.
+ Weight::from_parts(4_036_000, 0)
}
- pub(crate) fn clear_origin() -> Weight {
- Weight::from_parts(3_178_000 as u64, 0)
+ pub fn clear_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_974_000 picoseconds.
+ Weight::from_parts(3_052_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -107,20 +148,32 @@ impl WeightInfo {
// 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(24_770_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_065_000 picoseconds.
+ Weight::from_parts(24_646_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_967_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: 15_036_000 picoseconds.
+ Weight::from_parts(15_419_000, 3555)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
- pub(crate) fn trap() -> Weight {
- Weight::from_parts(3_186_000 as u64, 0)
+ pub fn trap() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_008_000 picoseconds.
+ Weight::from_parts(3_083_000, 0)
}
// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
@@ -134,16 +187,24 @@ impl WeightInfo {
// 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(25_797_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: 44_824_000 picoseconds.
+ Weight::from_parts(45_183_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(5_170_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: 4_969_000 picoseconds.
+ Weight::from_parts(5_198_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)
@@ -157,25 +218,49 @@ impl WeightInfo {
// 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(508_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 initiate_reserve_withdraw() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `38`
+ // Estimated: `11084`
+ // Minimum execution time: 422_661_000 picoseconds.
+ Weight::from_parts(425_164_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(156_147_000 as u64, 0)
+ pub fn burn_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 135_692_000 picoseconds.
+ Weight::from_parts(136_167_000, 0)
}
- pub(crate) fn expect_asset() -> Weight {
- Weight::from_parts(14_507_000 as u64, 0)
+ pub fn expect_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 12_880_000 picoseconds.
+ Weight::from_parts(13_103_000, 0)
}
- pub(crate) fn expect_origin() -> Weight {
- Weight::from_parts(3_329_000 as u64, 0)
+ pub fn expect_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_842_000 picoseconds.
+ Weight::from_parts(4_898_000, 0)
}
- pub(crate) fn expect_error() -> Weight {
- Weight::from_parts(3_164_000 as u64, 0)
+ pub fn expect_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_026_000 picoseconds.
+ Weight::from_parts(3_109_000, 0)
}
- pub(crate) fn expect_transact_status() -> Weight {
- Weight::from_parts(3_415_000 as u64, 0)
+ pub fn expect_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_241_000 picoseconds.
+ Weight::from_parts(3_281_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -189,13 +274,21 @@ impl WeightInfo {
// 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(27_966_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_818_000 picoseconds.
+ Weight::from_parts(28_080_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(5_019_000 as u64, 0)
+ pub fn expect_pallet() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 5_410_000 picoseconds.
+ Weight::from_parts(5_514_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -209,24 +302,48 @@ impl WeightInfo {
// 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(25_097_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_798_000 picoseconds.
+ Weight::from_parts(26_833_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(3_193_000 as u64, 0)
+ pub fn clear_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_083_000 picoseconds.
+ Weight::from_parts(3_148_000, 0)
}
- pub(crate) fn set_topic() -> Weight {
- Weight::from_parts(3_146_000 as u64, 0)
+ pub fn set_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_995_000 picoseconds.
+ Weight::from_parts(3_045_000, 0)
}
- pub(crate) fn clear_topic() -> Weight {
- Weight::from_parts(3_178_000 as u64, 0)
+ pub fn clear_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_080_000 picoseconds.
+ Weight::from_parts(3_128_000, 0)
}
- pub(crate) fn set_fees_mode() -> Weight {
- Weight::from_parts(3_134_000 as u64, 0)
+ pub fn set_fees_mode() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_009_000 picoseconds.
+ Weight::from_parts(3_102_000, 0)
}
- pub(crate) fn unpaid_execution() -> Weight {
- Weight::from_parts(3_282_000 as u64, 0)
+ pub fn unpaid_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_202_000 picoseconds.
+ Weight::from_parts(3_290_000, 0)
}
}
diff --git a/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
index 342b18fc3b7..43de2f7f064 100644
--- a/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+++ b/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
//!
//! 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::fungible
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=statemint-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/assets/statemint/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,17 +51,25 @@ pub struct WeightInfo(PhantomData);
impl WeightInfo {
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn withdraw_asset() -> Weight {
- Weight::from_parts(21_004_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn withdraw_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `3593`
+ // Minimum execution time: 22_450_000 picoseconds.
+ Weight::from_parts(22_821_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn transfer_asset() -> Weight {
- Weight::from_parts(29_344_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ pub fn transfer_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `6196`
+ // Minimum execution time: 32_079_000 picoseconds.
+ Weight::from_parts(32_591_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -76,20 +85,32 @@ impl WeightInfo {
// 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 transfer_reserve_asset() -> Weight {
- Weight::from_parts(49_988_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(8 as u64))
- .saturating_add(T::DbWeight::get().writes(4 as u64))
+ pub fn transfer_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `139`
+ // Estimated: `17785`
+ // Minimum execution time: 53_770_000 picoseconds.
+ Weight::from_parts(54_393_000, 17785)
+ .saturating_add(T::DbWeight::get().reads(8))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- pub(crate) fn receive_teleported_asset() -> Weight {
- Weight::from_parts(4_040_000 as u64, 0)
+ pub fn receive_teleported_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_485_000 picoseconds.
+ Weight::from_parts(4_650_000, 0)
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn deposit_asset() -> Weight {
- Weight::from_parts(22_762_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn deposit_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `3593`
+ // Minimum execution time: 24_725_000 picoseconds.
+ Weight::from_parts(25_120_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -105,10 +126,14 @@ impl WeightInfo {
// 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 deposit_reserve_asset() -> Weight {
- Weight::from_parts(44_404_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(7 as u64))
- .saturating_add(T::DbWeight::get().writes(3 as u64))
+ pub fn deposit_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `38`
+ // Estimated: `14677`
+ // Minimum execution time: 47_989_000 picoseconds.
+ Weight::from_parts(48_573_000, 14677)
+ .saturating_add(T::DbWeight::get().reads(7))
+ .saturating_add(T::DbWeight::get().writes(3))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -122,9 +147,13 @@ impl WeightInfo {
// 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_teleport() -> Weight {
- Weight::from_parts(28_179_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_teleport() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `38`
+ // Estimated: `11084`
+ // Minimum execution time: 34_367_000 picoseconds.
+ Weight::from_parts(34_995_000, 11084)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
index 969589cb086..dbae6ffe404 100644
--- a/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+++ b/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! 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)]
@@ -60,40 +61,80 @@ impl WeightInfo {
// 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)
@@ -107,20 +148,32 @@ impl WeightInfo {
// 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)
@@ -134,16 +187,24 @@ impl WeightInfo {
// 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)
@@ -157,25 +218,49 @@ impl WeightInfo {
// 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)
@@ -189,13 +274,21 @@ impl WeightInfo {
// 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)
@@ -209,24 +302,48 @@ impl WeightInfo {
// 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)
}
}
diff --git a/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
index c3317d540aa..bbaef6c16ec 100644
--- a/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+++ b/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
//!
//! 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-20, 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("westmint-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=westmint-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::fungible
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=westmint-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/assets/westmint/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,17 +51,25 @@ pub struct WeightInfo(PhantomData);
impl WeightInfo {
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn withdraw_asset() -> Weight {
- Weight::from_parts(20_735_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn withdraw_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `3593`
+ // Minimum execution time: 37_770_000 picoseconds.
+ Weight::from_parts(38_616_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn transfer_asset() -> Weight {
- Weight::from_parts(28_940_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ pub fn transfer_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `6196`
+ // Minimum execution time: 33_080_000 picoseconds.
+ Weight::from_parts(33_350_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -76,20 +85,32 @@ impl WeightInfo {
// 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 transfer_reserve_asset() -> Weight {
- Weight::from_parts(50_175_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(8 as u64))
- .saturating_add(T::DbWeight::get().writes(4 as u64))
+ pub fn transfer_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `176`
+ // Estimated: `17970`
+ // Minimum execution time: 94_868_000 picoseconds.
+ Weight::from_parts(95_349_000, 17970)
+ .saturating_add(T::DbWeight::get().reads(8))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- pub(crate) fn receive_teleported_asset() -> Weight {
- Weight::from_parts(4_059_000 as u64, 0)
+ pub fn receive_teleported_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_378_000 picoseconds.
+ Weight::from_parts(4_471_000, 0)
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn deposit_asset() -> Weight {
- Weight::from_parts(22_181_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn deposit_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `3593`
+ // Minimum execution time: 25_401_000 picoseconds.
+ Weight::from_parts(25_744_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -105,10 +126,14 @@ impl WeightInfo {
// 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 deposit_reserve_asset() -> Weight {
- Weight::from_parts(45_905_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(7 as u64))
- .saturating_add(T::DbWeight::get().writes(3 as u64))
+ pub fn deposit_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `75`
+ // Estimated: `14862`
+ // Minimum execution time: 54_166_000 picoseconds.
+ Weight::from_parts(54_680_000, 14862)
+ .saturating_add(T::DbWeight::get().reads(7))
+ .saturating_add(T::DbWeight::get().writes(3))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -122,9 +147,13 @@ impl WeightInfo {
// 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_teleport() -> Weight {
- Weight::from_parts(29_820_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_teleport() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `75`
+ // Estimated: `11269`
+ // Minimum execution time: 34_063_000 picoseconds.
+ Weight::from_parts(34_404_000, 11269)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
index 3a0e0efc098..1da9e6ecca4 100644
--- a/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+++ b/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! 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-20, 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("westmint-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=westmint-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=westmint-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/assets/westmint/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -60,40 +61,80 @@ impl WeightInfo {
// 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(360_208_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: `75`
+ // Estimated: `11269`
+ // Minimum execution time: 366_645_000 picoseconds.
+ Weight::from_parts(368_433_000, 11269)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn buy_execution() -> Weight {
- Weight::from_parts(3_876_000 as u64, 0)
+ pub fn buy_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_034_000 picoseconds.
+ Weight::from_parts(4_167_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(11_240_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
+ pub fn query_response() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `69`
+ // Estimated: `3534`
+ // Minimum execution time: 11_582_000 picoseconds.
+ Weight::from_parts(11_769_000, 3534)
+ .saturating_add(T::DbWeight::get().reads(1))
}
- pub(crate) fn transact() -> Weight {
- Weight::from_parts(12_244_000 as u64, 0)
+ pub fn transact() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 13_412_000 picoseconds.
+ Weight::from_parts(13_744_000, 0)
}
- pub(crate) fn refund_surplus() -> Weight {
- Weight::from_parts(3_963_000 as u64, 0)
+ pub fn refund_surplus() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 7_363_000 picoseconds.
+ Weight::from_parts(7_435_000, 0)
}
- pub(crate) fn set_error_handler() -> Weight {
- Weight::from_parts(2_871_000 as u64, 0)
+ pub fn set_error_handler() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_950_000 picoseconds.
+ Weight::from_parts(3_067_000, 0)
}
- pub(crate) fn set_appendix() -> Weight {
- Weight::from_parts(2_805_000 as u64, 0)
+ pub fn set_appendix() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_024_000 picoseconds.
+ Weight::from_parts(3_077_000, 0)
}
- pub(crate) fn clear_error() -> Weight {
- Weight::from_parts(2_759_000 as u64, 0)
+ pub fn clear_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_962_000 picoseconds.
+ Weight::from_parts(3_034_000, 0)
}
- pub(crate) fn descend_origin() -> Weight {
- Weight::from_parts(3_596_000 as u64, 0)
+ pub fn descend_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 5_660_000 picoseconds.
+ Weight::from_parts(5_745_000, 0)
}
- pub(crate) fn clear_origin() -> Weight {
- Weight::from_parts(2_750_000 as u64, 0)
+ pub fn clear_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_934_000 picoseconds.
+ Weight::from_parts(3_053_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -107,20 +148,32 @@ impl WeightInfo {
// 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(24_921_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: `75`
+ // Estimated: `11269`
+ // Minimum execution time: 25_725_000 picoseconds.
+ Weight::from_parts(26_363_000, 11269)
+ .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(15_880_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: `126`
+ // Estimated: `3591`
+ // Minimum execution time: 16_532_000 picoseconds.
+ Weight::from_parts(16_751_000, 3591)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
- pub(crate) fn trap() -> Weight {
- Weight::from_parts(2_771_000 as u64, 0)
+ pub fn trap() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_902_000 picoseconds.
+ Weight::from_parts(3_028_000, 0)
}
// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
@@ -134,16 +187,24 @@ impl WeightInfo {
// 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(27_043_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: `75`
+ // Estimated: `13320`
+ // Minimum execution time: 47_079_000 picoseconds.
+ Weight::from_parts(47_483_000, 13320)
+ .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_668_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_275_000 picoseconds.
+ Weight::from_parts(5_381_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)
@@ -157,25 +218,49 @@ impl WeightInfo {
// 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(399_081_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: `75`
+ // Estimated: `11269`
+ // Minimum execution time: 411_960_000 picoseconds.
+ Weight::from_parts(422_231_000, 11269)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn burn_asset() -> Weight {
- Weight::from_parts(123_792_000 as u64, 0)
+ pub fn burn_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 128_264_000 picoseconds.
+ Weight::from_parts(129_704_000, 0)
}
- pub(crate) fn expect_asset() -> Weight {
- Weight::from_parts(13_056_000 as u64, 0)
+ pub fn expect_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 12_474_000 picoseconds.
+ Weight::from_parts(12_684_000, 0)
}
- pub(crate) fn expect_origin() -> Weight {
- Weight::from_parts(2_780_000 as u64, 0)
+ pub fn expect_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_005_000 picoseconds.
+ Weight::from_parts(3_157_000, 0)
}
- pub(crate) fn expect_error() -> Weight {
- Weight::from_parts(2_839_000 as u64, 0)
+ pub fn expect_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_737_000 picoseconds.
+ Weight::from_parts(4_777_000, 0)
}
- pub(crate) fn expect_transact_status() -> Weight {
- Weight::from_parts(2_951_000 as u64, 0)
+ pub fn expect_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_126_000 picoseconds.
+ Weight::from_parts(3_195_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -189,13 +274,21 @@ impl WeightInfo {
// 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(28_130_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: `75`
+ // Estimated: `11269`
+ // Minimum execution time: 30_134_000 picoseconds.
+ Weight::from_parts(30_412_000, 11269)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn expect_pallet() -> Weight {
- Weight::from_parts(4_754_000 as u64, 0)
+ pub fn expect_pallet() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 6_087_000 picoseconds.
+ Weight::from_parts(10_289_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -209,24 +302,48 @@ impl WeightInfo {
// 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(25_584_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: `75`
+ // Estimated: `11269`
+ // Minimum execution time: 26_158_000 picoseconds.
+ Weight::from_parts(26_668_000, 11269)
+ .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_832_000 as u64, 0)
+ pub fn clear_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_035_000 picoseconds.
+ Weight::from_parts(3_172_000, 0)
}
- pub(crate) fn set_topic() -> Weight {
- Weight::from_parts(2_804_000 as u64, 0)
+ pub fn set_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_687_000 picoseconds.
+ Weight::from_parts(4_738_000, 0)
}
- pub(crate) fn clear_topic() -> Weight {
- Weight::from_parts(2_747_000 as u64, 0)
+ pub fn clear_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_976_000 picoseconds.
+ Weight::from_parts(3_113_000, 0)
}
- pub(crate) fn set_fees_mode() -> Weight {
- Weight::from_parts(2_736_000 as u64, 0)
+ pub fn set_fees_mode() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_918_000 picoseconds.
+ Weight::from_parts(3_033_000, 0)
}
- pub(crate) fn unpaid_execution() -> Weight {
- Weight::from_parts(2_969_000 as u64, 0)
+ pub fn unpaid_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_191_000 picoseconds.
+ Weight::from_parts(3_257_000, 0)
}
}
diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
index ccc353e62fa..f2bda0d0fdf 100644
--- a/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+++ b/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
@@ -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
@@ -14,29 +14,29 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
//!
//! 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-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-kusama-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// ./target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=bridge-hub-kusama-dev
+// --steps=50
+// --repeat=20
+// --extrinsic=
// --execution=wasm
// --wasm-execution=compiled
+// --heap-pages=4096
// --pallet=pallet_xcm_benchmarks::fungible
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=bridge-hub-kusama-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,17 +50,25 @@ pub struct WeightInfo(PhantomData);
impl WeightInfo {
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn withdraw_asset() -> Weight {
- Weight::from_parts(18_301_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn withdraw_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `3593`
+ // Minimum execution time: 22_950_000 picoseconds.
+ Weight::from_parts(23_170_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn transfer_asset() -> Weight {
- Weight::from_parts(29_321_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ pub fn transfer_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `153`
+ // Estimated: `6196`
+ // Minimum execution time: 48_472_000 picoseconds.
+ Weight::from_parts(49_063_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -76,20 +84,32 @@ impl WeightInfo {
// 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 transfer_reserve_asset() -> Weight {
- Weight::from_parts(50_754_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(8 as u64))
- .saturating_add(T::DbWeight::get().writes(4 as u64))
+ pub fn transfer_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `18205`
+ // Minimum execution time: 71_887_000 picoseconds.
+ Weight::from_parts(73_047_000, 18205)
+ .saturating_add(T::DbWeight::get().reads(8))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- pub(crate) fn receive_teleported_asset() -> Weight {
- Weight::from_parts(3_814_000 as u64, 0)
+ pub fn receive_teleported_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_215_000 picoseconds.
+ Weight::from_parts(4_324_000, 0)
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn deposit_asset() -> Weight {
- Weight::from_parts(21_596_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn deposit_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `52`
+ // Estimated: `3593`
+ // Minimum execution time: 26_047_000 picoseconds.
+ Weight::from_parts(26_386_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -105,10 +125,14 @@ impl WeightInfo {
// 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 deposit_reserve_asset() -> Weight {
- Weight::from_parts(45_534_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(7 as u64))
- .saturating_add(T::DbWeight::get().writes(3 as u64))
+ pub fn deposit_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `122`
+ // Estimated: `15097`
+ // Minimum execution time: 51_076_000 picoseconds.
+ Weight::from_parts(51_638_000, 15097)
+ .saturating_add(T::DbWeight::get().reads(7))
+ .saturating_add(T::DbWeight::get().writes(3))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -122,9 +146,13 @@ impl WeightInfo {
// 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_teleport() -> Weight {
- Weight::from_parts(26_876_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_teleport() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_242_000 picoseconds.
+ Weight::from_parts(28_778_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
index 91d84385f55..06d99ecdc55 100644
--- a/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+++ b/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! 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-20, 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("bridge-hub-kusama-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=bridge-hub-kusama-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=bridge-hub-kusama-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -60,40 +61,80 @@ impl WeightInfo {
// 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(30_320_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 32_352_000 picoseconds.
+ Weight::from_parts(32_888_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn buy_execution() -> Weight {
- Weight::from_parts(2_776_000 as u64, 0)
+ pub fn buy_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_953_000 picoseconds.
+ Weight::from_parts(3_074_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_396_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_911_000 picoseconds.
+ Weight::from_parts(11_165_000, 3497)
+ .saturating_add(T::DbWeight::get().reads(1))
}
- pub(crate) fn transact() -> Weight {
- Weight::from_parts(11_646_000 as u64, 0)
+ pub fn transact() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 13_130_000 picoseconds.
+ Weight::from_parts(13_550_000, 0)
}
- pub(crate) fn refund_surplus() -> Weight {
- Weight::from_parts(2_853_000 as u64, 0)
+ pub fn refund_surplus() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_254_000 picoseconds.
+ Weight::from_parts(3_371_000, 0)
}
- pub(crate) fn set_error_handler() -> Weight {
- Weight::from_parts(2_746_000 as u64, 0)
+ pub fn set_error_handler() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_729_000 picoseconds.
+ Weight::from_parts(4_785_000, 0)
}
- pub(crate) fn set_appendix() -> Weight {
- Weight::from_parts(2_742_000 as u64, 0)
+ pub fn set_appendix() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_686_000 picoseconds.
+ Weight::from_parts(4_740_000, 0)
}
- pub(crate) fn clear_error() -> Weight {
- Weight::from_parts(2_750_000 as u64, 0)
+ pub fn clear_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_921_000 picoseconds.
+ Weight::from_parts(3_038_000, 0)
}
- pub(crate) fn descend_origin() -> Weight {
- Weight::from_parts(3_512_000 as u64, 0)
+ pub fn descend_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_927_000 picoseconds.
+ Weight::from_parts(4_046_000, 0)
}
- pub(crate) fn clear_origin() -> Weight {
- Weight::from_parts(2_710_000 as u64, 0)
+ pub fn clear_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_990_000 picoseconds.
+ Weight::from_parts(3_109_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -107,20 +148,32 @@ impl WeightInfo {
// 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_834_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 25_335_000 picoseconds.
+ Weight::from_parts(25_862_000, 11244)
+ .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_091_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: 15_097_000 picoseconds.
+ Weight::from_parts(15_401_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_702_000 as u64, 0)
+ pub fn trap() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_693_000 picoseconds.
+ Weight::from_parts(4_750_000, 0)
}
// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
@@ -134,16 +187,24 @@ impl WeightInfo {
// 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_071_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_630_000 picoseconds.
+ Weight::from_parts(27_169_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_648_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_050_000 picoseconds.
+ Weight::from_parts(5_304_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)
@@ -157,25 +218,49 @@ impl WeightInfo {
// 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(26_772_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_942_000 picoseconds.
+ Weight::from_parts(29_475_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn burn_asset() -> Weight {
- Weight::from_parts(4_249_000 as u64, 0)
+ pub fn burn_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_736_000 picoseconds.
+ Weight::from_parts(4_871_000, 0)
}
- pub(crate) fn expect_asset() -> Weight {
- Weight::from_parts(2_860_000 as u64, 0)
+ pub fn expect_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_127_000 picoseconds.
+ Weight::from_parts(3_217_000, 0)
}
- pub(crate) fn expect_origin() -> Weight {
- Weight::from_parts(2_849_000 as u64, 0)
+ pub fn expect_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_972_000 picoseconds.
+ Weight::from_parts(3_073_000, 0)
}
- pub(crate) fn expect_error() -> Weight {
- Weight::from_parts(2_692_000 as u64, 0)
+ pub fn expect_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_737_000 picoseconds.
+ Weight::from_parts(4_810_000, 0)
}
- pub(crate) fn expect_transact_status() -> Weight {
- Weight::from_parts(2_886_000 as u64, 0)
+ pub fn expect_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_166_000 picoseconds.
+ Weight::from_parts(3_240_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -189,13 +274,21 @@ impl WeightInfo {
// 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(28_452_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 44_516_000 picoseconds.
+ Weight::from_parts(45_018_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn expect_pallet() -> Weight {
- Weight::from_parts(4_257_000 as u64, 0)
+ pub fn expect_pallet() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 5_137_000 picoseconds.
+ Weight::from_parts(5_289_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -209,24 +302,48 @@ impl WeightInfo {
// 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(24_235_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 25_978_000 picoseconds.
+ Weight::from_parts(26_490_000, 11244)
+ .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_749_000 as u64, 0)
+ pub fn clear_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_018_000 picoseconds.
+ Weight::from_parts(3_148_000, 0)
}
- pub(crate) fn set_topic() -> Weight {
- Weight::from_parts(2_718_000 as u64, 0)
+ pub fn set_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_667_000 picoseconds.
+ Weight::from_parts(4_737_000, 0)
}
- pub(crate) fn clear_topic() -> Weight {
- Weight::from_parts(2_685_000 as u64, 0)
+ pub fn clear_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_955_000 picoseconds.
+ Weight::from_parts(3_018_000, 0)
}
- pub(crate) fn set_fees_mode() -> Weight {
- Weight::from_parts(2_735_000 as u64, 0)
+ pub fn set_fees_mode() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_008_000 picoseconds.
+ Weight::from_parts(3_113_000, 0)
}
- pub(crate) fn unpaid_execution() -> Weight {
- Weight::from_parts(2_842_000 as u64, 0)
+ pub fn unpaid_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_137_000 picoseconds.
+ Weight::from_parts(3_230_000, 0)
}
}
diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
index fd418500c27..a7527f00baf 100644
--- a/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+++ b/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
@@ -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
@@ -14,29 +14,29 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
//!
//! 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-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-polkadot-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// ./target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=bridge-hub-polkadot-dev
+// --steps=50
+// --repeat=20
+// --extrinsic=
// --execution=wasm
// --wasm-execution=compiled
+// --heap-pages=4096
// --pallet=pallet_xcm_benchmarks::fungible
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=bridge-hub-polkadot-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,17 +50,25 @@ pub struct WeightInfo(PhantomData);
impl WeightInfo {
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn withdraw_asset() -> Weight {
- Weight::from_parts(18_910_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn withdraw_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `3593`
+ // Minimum execution time: 22_155_000 picoseconds.
+ Weight::from_parts(22_991_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn transfer_asset() -> Weight {
- Weight::from_parts(29_462_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ pub fn transfer_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `153`
+ // Estimated: `6196`
+ // Minimum execution time: 48_986_000 picoseconds.
+ Weight::from_parts(49_467_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -76,20 +84,32 @@ impl WeightInfo {
// 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 transfer_reserve_asset() -> Weight {
- Weight::from_parts(51_265_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(8 as u64))
- .saturating_add(T::DbWeight::get().writes(4 as u64))
+ pub fn transfer_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `18205`
+ // Minimum execution time: 72_291_000 picoseconds.
+ Weight::from_parts(72_898_000, 18205)
+ .saturating_add(T::DbWeight::get().reads(8))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- pub(crate) fn receive_teleported_asset() -> Weight {
- Weight::from_parts(3_874_000 as u64, 0)
+ pub fn receive_teleported_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_225_000 picoseconds.
+ Weight::from_parts(4_328_000, 0)
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn deposit_asset() -> Weight {
- Weight::from_parts(23_139_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn deposit_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `52`
+ // Estimated: `3593`
+ // Minimum execution time: 26_357_000 picoseconds.
+ Weight::from_parts(26_841_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -105,10 +125,14 @@ impl WeightInfo {
// 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 deposit_reserve_asset() -> Weight {
- Weight::from_parts(49_375_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(7 as u64))
- .saturating_add(T::DbWeight::get().writes(3 as u64))
+ pub fn deposit_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `122`
+ // Estimated: `15097`
+ // Minimum execution time: 50_981_000 picoseconds.
+ Weight::from_parts(51_488_000, 15097)
+ .saturating_add(T::DbWeight::get().reads(7))
+ .saturating_add(T::DbWeight::get().writes(3))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -122,9 +146,13 @@ impl WeightInfo {
// 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_teleport() -> Weight {
- Weight::from_parts(28_809_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_teleport() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_333_000 picoseconds.
+ Weight::from_parts(28_863_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
index 261efbeb0f1..44bd54ab174 100644
--- a/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+++ b/parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@@ -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
@@ -14,29 +14,30 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! 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-21, 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("bridge-hub-polkadot-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=bridge-hub-polkadot-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=bridge-hub-polkadot-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/bridge-hubs/bridge-hub-polkadot/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -60,40 +61,80 @@ impl WeightInfo {
// 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(30_138_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 47_079_000 picoseconds.
+ Weight::from_parts(47_477_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn buy_execution() -> Weight {
- Weight::from_parts(2_860_000 as u64, 0)
+ pub fn buy_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_810_000 picoseconds.
+ Weight::from_parts(4_856_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_421_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: 11_148_000 picoseconds.
+ Weight::from_parts(17_709_000, 3497)
+ .saturating_add(T::DbWeight::get().reads(1))
}
- pub(crate) fn transact() -> Weight {
- Weight::from_parts(11_744_000 as u64, 0)
+ pub fn transact() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 12_942_000 picoseconds.
+ Weight::from_parts(13_226_000, 0)
}
- pub(crate) fn refund_surplus() -> Weight {
- Weight::from_parts(3_024_000 as u64, 0)
+ pub fn refund_surplus() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_413_000 picoseconds.
+ Weight::from_parts(3_490_000, 0)
}
- pub(crate) fn set_error_handler() -> Weight {
- Weight::from_parts(2_820_000 as u64, 0)
+ pub fn set_error_handler() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_110_000 picoseconds.
+ Weight::from_parts(3_144_000, 0)
}
- pub(crate) fn set_appendix() -> Weight {
- Weight::from_parts(2_869_000 as u64, 0)
+ pub fn set_appendix() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_038_000 picoseconds.
+ Weight::from_parts(3_118_000, 0)
}
- pub(crate) fn clear_error() -> Weight {
- Weight::from_parts(2_838_000 as u64, 0)
+ pub fn clear_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_044_000 picoseconds.
+ Weight::from_parts(4_700_000, 0)
}
- pub(crate) fn descend_origin() -> Weight {
- Weight::from_parts(3_620_000 as u64, 0)
+ pub fn descend_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_936_000 picoseconds.
+ Weight::from_parts(4_039_000, 0)
}
- pub(crate) fn clear_origin() -> Weight {
- Weight::from_parts(2_819_000 as u64, 0)
+ pub fn clear_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_070_000 picoseconds.
+ Weight::from_parts(3_286_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -107,20 +148,32 @@ impl WeightInfo {
// 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_931_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 25_430_000 picoseconds.
+ Weight::from_parts(25_714_000, 11244)
+ .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(13_776_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: 15_180_000 picoseconds.
+ Weight::from_parts(24_431_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_784_000 as u64, 0)
+ pub fn trap() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_682_000 picoseconds.
+ Weight::from_parts(4_753_000, 0)
}
// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
@@ -134,16 +187,24 @@ impl WeightInfo {
// 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(23_940_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_337_000 picoseconds.
+ Weight::from_parts(26_730_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_676_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_260_000 picoseconds.
+ Weight::from_parts(5_417_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)
@@ -157,25 +218,49 @@ impl WeightInfo {
// 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(26_390_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_590_000 picoseconds.
+ Weight::from_parts(28_931_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn burn_asset() -> Weight {
- Weight::from_parts(4_435_000 as u64, 0)
+ pub fn burn_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_745_000 picoseconds.
+ Weight::from_parts(4_853_000, 0)
}
- pub(crate) fn expect_asset() -> Weight {
- Weight::from_parts(2_940_000 as u64, 0)
+ pub fn expect_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_214_000 picoseconds.
+ Weight::from_parts(3_276_000, 0)
}
- pub(crate) fn expect_origin() -> Weight {
- Weight::from_parts(2_898_000 as u64, 0)
+ pub fn expect_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_779_000 picoseconds.
+ Weight::from_parts(4_824_000, 0)
}
- pub(crate) fn expect_error() -> Weight {
- Weight::from_parts(2_795_000 as u64, 0)
+ pub fn expect_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_986_000 picoseconds.
+ Weight::from_parts(3_098_000, 0)
}
- pub(crate) fn expect_transact_status() -> Weight {
- Weight::from_parts(2_908_000 as u64, 0)
+ pub fn expect_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_272_000 picoseconds.
+ Weight::from_parts(3_351_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -189,13 +274,21 @@ impl WeightInfo {
// 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(26_452_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_219_000 picoseconds.
+ Weight::from_parts(28_796_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn expect_pallet() -> Weight {
- Weight::from_parts(4_303_000 as u64, 0)
+ pub fn expect_pallet() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 5_023_000 picoseconds.
+ Weight::from_parts(5_108_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -209,24 +302,48 @@ impl WeightInfo {
// 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_994_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 25_253_000 picoseconds.
+ Weight::from_parts(25_685_000, 11244)
+ .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_789_000 as u64, 0)
+ pub fn clear_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_085_000 picoseconds.
+ Weight::from_parts(3_135_000, 0)
}
- pub(crate) fn set_topic() -> Weight {
- Weight::from_parts(2_789_000 as u64, 0)
+ pub fn set_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_099_000 picoseconds.
+ Weight::from_parts(3_147_000, 0)
}
- pub(crate) fn clear_topic() -> Weight {
- Weight::from_parts(2_836_000 as u64, 0)
+ pub fn clear_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_101_000 picoseconds.
+ Weight::from_parts(3_174_000, 0)
}
- pub(crate) fn set_fees_mode() -> Weight {
- Weight::from_parts(2_763_000 as u64, 0)
+ pub fn set_fees_mode() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_034_000 picoseconds.
+ Weight::from_parts(3_118_000, 0)
}
- pub(crate) fn unpaid_execution() -> Weight {
- Weight::from_parts(2_872_000 as u64, 0)
+ pub fn unpaid_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_156_000 picoseconds.
+ Weight::from_parts(3_254_000, 0)
}
}
diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs b/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
index 6bc6c282c6b..36bcef1cc4a 100644
--- a/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+++ b/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
@@ -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
@@ -14,29 +14,29 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! Autogenerated weights for `pallet_xcm_benchmarks::fungible`
//!
//! 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-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-rococo-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// ./target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=bridge-hub-rococo-dev
+// --steps=50
+// --repeat=20
+// --extrinsic=
// --execution=wasm
// --wasm-execution=compiled
+// --heap-pages=4096
// --pallet=pallet_xcm_benchmarks::fungible
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=bridge-hub-rococo-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_fungible.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -50,17 +50,25 @@ pub struct WeightInfo(PhantomData);
impl WeightInfo {
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn withdraw_asset() -> Weight {
- Weight::from_parts(20_377_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn withdraw_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `101`
+ // Estimated: `3593`
+ // Minimum execution time: 22_222_000 picoseconds.
+ Weight::from_parts(22_591_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn transfer_asset() -> Weight {
- Weight::from_parts(31_004_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(2 as u64))
- .saturating_add(T::DbWeight::get().writes(2 as u64))
+ pub fn transfer_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `153`
+ // Estimated: `6196`
+ // Minimum execution time: 47_612_000 picoseconds.
+ Weight::from_parts(48_901_000, 6196)
+ .saturating_add(T::DbWeight::get().reads(2))
+ .saturating_add(T::DbWeight::get().writes(2))
}
// Storage: System Account (r:2 w:2)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -76,20 +84,32 @@ impl WeightInfo {
// 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 transfer_reserve_asset() -> Weight {
- Weight::from_parts(54_173_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(8 as u64))
- .saturating_add(T::DbWeight::get().writes(4 as u64))
+ pub fn transfer_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `223`
+ // Estimated: `18205`
+ // Minimum execution time: 72_062_000 picoseconds.
+ Weight::from_parts(73_077_000, 18205)
+ .saturating_add(T::DbWeight::get().reads(8))
+ .saturating_add(T::DbWeight::get().writes(4))
}
- pub(crate) fn receive_teleported_asset() -> Weight {
- Weight::from_parts(4_635_000 as u64, 0)
+ pub fn receive_teleported_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_363_000 picoseconds.
+ Weight::from_parts(4_430_000, 0)
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
- pub(crate) fn deposit_asset() -> Weight {
- Weight::from_parts(23_155_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(1 as u64))
- .saturating_add(T::DbWeight::get().writes(1 as u64))
+ pub fn deposit_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `52`
+ // Estimated: `3593`
+ // Minimum execution time: 26_314_000 picoseconds.
+ Weight::from_parts(26_624_000, 3593)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
// Storage: System Account (r:1 w:1)
// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
@@ -105,10 +125,14 @@ impl WeightInfo {
// 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 deposit_reserve_asset() -> Weight {
- Weight::from_parts(52_599_000 as u64, 0)
- .saturating_add(T::DbWeight::get().reads(7 as u64))
- .saturating_add(T::DbWeight::get().writes(3 as u64))
+ pub fn deposit_reserve_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `122`
+ // Estimated: `15097`
+ // Minimum execution time: 51_846_000 picoseconds.
+ Weight::from_parts(52_430_000, 15097)
+ .saturating_add(T::DbWeight::get().reads(7))
+ .saturating_add(T::DbWeight::get().writes(3))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -122,9 +146,13 @@ impl WeightInfo {
// 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_teleport() -> Weight {
- Weight::from_parts(34_004_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_teleport() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_548_000 picoseconds.
+ Weight::from_parts(28_880_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
}
diff --git a/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs b/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
index 9f225ab514f..d3df54c32e5 100644
--- a/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+++ b/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
@@ -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
@@ -14,29 +14,29 @@
// You should have received a copy of the GNU General Public License
// along with Cumulus. If not, see .
-
//! 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-23, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
+//! WORST CASE MAP SIZE: `1000000`
+//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("bridge-hub-rococo-dev"), DB CACHE: 1024
// Executed Command:
-// ./artifacts/polkadot-parachain
+// ./target/production/polkadot-parachain
// benchmark
// pallet
-// --template=./templates/xcm-bench-template.hbs
-// --chain=bridge-hub-rococo-dev
+// --steps=50
+// --repeat=20
+// --extrinsic=
// --execution=wasm
// --wasm-execution=compiled
+// --heap-pages=4096
// --pallet=pallet_xcm_benchmarks::generic
-// --extrinsic=*
-// --steps=50
-// --repeat=20
-// --json
+// --chain=bridge-hub-rococo-dev
// --header=./file_header.txt
-// --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
+// --template=./templates/xcm-bench-template.hbs
+// --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -60,40 +60,80 @@ impl WeightInfo {
// 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(32_598_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 32_220_000 picoseconds.
+ Weight::from_parts(32_574_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn buy_execution() -> Weight {
- Weight::from_parts(3_195_000 as u64, 0)
+ pub fn buy_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_996_000 picoseconds.
+ Weight::from_parts(3_070_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_939_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: 11_181_000 picoseconds.
+ Weight::from_parts(11_426_000, 3497)
+ .saturating_add(T::DbWeight::get().reads(1))
}
- pub(crate) fn transact() -> Weight {
- Weight::from_parts(12_473_000 as u64, 0)
+ pub fn transact() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 13_273_000 picoseconds.
+ Weight::from_parts(13_574_000, 0)
}
- pub(crate) fn refund_surplus() -> Weight {
- Weight::from_parts(3_458_000 as u64, 0)
+ pub fn refund_surplus() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_283_000 picoseconds.
+ Weight::from_parts(3_387_000, 0)
}
- pub(crate) fn set_error_handler() -> Weight {
- Weight::from_parts(3_252_000 as u64, 0)
+ pub fn set_error_handler() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_008_000 picoseconds.
+ Weight::from_parts(3_062_000, 0)
}
- pub(crate) fn set_appendix() -> Weight {
- Weight::from_parts(3_249_000 as u64, 0)
+ pub fn set_appendix() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_901_000 picoseconds.
+ Weight::from_parts(2_989_000, 0)
}
- pub(crate) fn clear_error() -> Weight {
- Weight::from_parts(3_190_000 as u64, 0)
+ pub fn clear_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_924_000 picoseconds.
+ Weight::from_parts(3_008_000, 0)
}
- pub(crate) fn descend_origin() -> Weight {
- Weight::from_parts(4_268_000 as u64, 0)
+ pub fn descend_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_820_000 picoseconds.
+ Weight::from_parts(3_887_000, 0)
}
- pub(crate) fn clear_origin() -> Weight {
- Weight::from_parts(3_255_000 as u64, 0)
+ pub fn clear_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_939_000 picoseconds.
+ Weight::from_parts(3_004_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -107,20 +147,32 @@ impl WeightInfo {
// 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(25_755_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 25_166_000 picoseconds.
+ Weight::from_parts(25_591_000, 11244)
+ .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(15_124_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: 15_169_000 picoseconds.
+ Weight::from_parts(15_391_000, 3555)
+ .saturating_add(T::DbWeight::get().reads(1))
+ .saturating_add(T::DbWeight::get().writes(1))
}
- pub(crate) fn trap() -> Weight {
- Weight::from_parts(3_164_000 as u64, 0)
+ pub fn trap() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_909_000 picoseconds.
+ Weight::from_parts(3_048_000, 0)
}
// Storage: PolkadotXcm VersionNotifyTargets (r:1 w:1)
// Proof Skipped: PolkadotXcm VersionNotifyTargets (max_values: None, max_size: None, mode: Measured)
@@ -134,16 +186,24 @@ impl WeightInfo {
// 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(25_329_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_031_000 picoseconds.
+ Weight::from_parts(26_630_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(5_253_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_011_000 picoseconds.
+ Weight::from_parts(5_237_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)
@@ -157,25 +217,49 @@ impl WeightInfo {
// 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(29_304_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_361_000 picoseconds.
+ Weight::from_parts(28_811_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn burn_asset() -> Weight {
- Weight::from_parts(5_275_000 as u64, 0)
+ pub fn burn_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_542_000 picoseconds.
+ Weight::from_parts(4_636_000, 0)
}
- pub(crate) fn expect_asset() -> Weight {
- Weight::from_parts(3_355_000 as u64, 0)
+ pub fn expect_asset() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_041_000 picoseconds.
+ Weight::from_parts(3_123_000, 0)
}
- pub(crate) fn expect_origin() -> Weight {
- Weight::from_parts(3_391_000 as u64, 0)
+ pub fn expect_origin() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_004_000 picoseconds.
+ Weight::from_parts(3_103_000, 0)
}
- pub(crate) fn expect_error() -> Weight {
- Weight::from_parts(3_192_000 as u64, 0)
+ pub fn expect_error() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_976_000 picoseconds.
+ Weight::from_parts(3_033_000, 0)
}
- pub(crate) fn expect_transact_status() -> Weight {
- Weight::from_parts(3_342_000 as u64, 0)
+ pub fn expect_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_116_000 picoseconds.
+ Weight::from_parts(3_196_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -189,13 +273,21 @@ impl WeightInfo {
// 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(28_426_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 28_513_000 picoseconds.
+ Weight::from_parts(28_839_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn expect_pallet() -> Weight {
- Weight::from_parts(4_826_000 as u64, 0)
+ pub fn expect_pallet() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 4_977_000 picoseconds.
+ Weight::from_parts(5_091_000, 0)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
@@ -209,24 +301,48 @@ impl WeightInfo {
// 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(26_238_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: `70`
+ // Estimated: `11244`
+ // Minimum execution time: 25_256_000 picoseconds.
+ Weight::from_parts(25_827_000, 11244)
+ .saturating_add(T::DbWeight::get().reads(6))
+ .saturating_add(T::DbWeight::get().writes(2))
}
- pub(crate) fn clear_transact_status() -> Weight {
- Weight::from_parts(3_240_000 as u64, 0)
+ pub fn clear_transact_status() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_979_000 picoseconds.
+ Weight::from_parts(3_078_000, 0)
}
- pub(crate) fn set_topic() -> Weight {
- Weight::from_parts(3_181_000 as u64, 0)
+ pub fn set_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_939_000 picoseconds.
+ Weight::from_parts(3_000_000, 0)
}
- pub(crate) fn clear_topic() -> Weight {
- Weight::from_parts(3_142_000 as u64, 0)
+ pub fn clear_topic() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_832_000 picoseconds.
+ Weight::from_parts(2_910_000, 0)
}
- pub(crate) fn set_fees_mode() -> Weight {
- Weight::from_parts(3_216_000 as u64, 0)
+ pub fn set_fees_mode() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 2_901_000 picoseconds.
+ Weight::from_parts(2_977_000, 0)
}
- pub(crate) fn unpaid_execution() -> Weight {
- Weight::from_parts(3_394_000 as u64, 0)
+ pub fn unpaid_execution() -> Weight {
+ // Proof Size summary in bytes:
+ // Measured: `0`
+ // Estimated: `0`
+ // Minimum execution time: 3_031_000 picoseconds.
+ Weight::from_parts(3_128_000, 0)
}
}
diff --git a/templates/xcm-bench-template.hbs b/templates/xcm-bench-template.hbs
index 3c9deb44606..e8e754ca91f 100644
--- a/templates/xcm-bench-template.hbs
+++ b/templates/xcm-bench-template.hbs
@@ -1,24 +1,9 @@
-// Copyright 2022 Parity Technologies (UK) Ltd.
-// This file is part of Cumulus.
-
-// Cumulus 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.
-
-// Cumulus 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 Cumulus. If not, see .
-
-
+{{header}}
//! Autogenerated weights for `{{pallet}}`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}}
-//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: {{cmd.repeat}}, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
+//! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: `{{cmd.repeat}}`, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}`
+//! WORST CASE MAP SIZE: `{{cmd.worst_case_map_values}}`
//! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}`
//! EXECUTION: {{cmd.execution}}, WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}}
@@ -41,27 +26,37 @@ impl WeightInfo {
{{#each benchmark.comments as |comment|}}
// {{comment}}
{{/each}}
- pub(crate) fn {{benchmark.name~}}
+ {{#each benchmark.component_ranges as |range|}}
+ /// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`.
+ {{/each}}
+ pub fn {{benchmark.name~}}
(
{{~#each benchmark.components as |c| ~}}
{{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}}
) -> Weight {
- Weight::from_ref_time({{underscore benchmark.base_weight}} as u64)
+ // Proof Size summary in bytes:
+ // Measured: `{{benchmark.base_recorded_proof_size}}{{#each benchmark.component_recorded_proof_size as |cp|}} + {{cp.name}} * ({{cp.slope}} ±{{underscore cp.error}}){{/each}}`
+ // Estimated: `{{benchmark.base_calculated_proof_size}}{{#each benchmark.component_calculated_proof_size as |cp|}} + {{cp.name}} * ({{cp.slope}} ±{{underscore cp.error}}){{/each}}`
+ // Minimum execution time: {{underscore benchmark.min_execution_time}}_000 picoseconds.
+ Weight::from_parts({{underscore benchmark.base_weight}}, {{benchmark.base_calculated_proof_size}})
{{#each benchmark.component_weight as |cw|}}
// Standard Error: {{underscore cw.error}}
- .saturating_add(Weight::from_ref_time({{underscore cw.slope}}).saturating_mul({{cw.name}} as u64))
+ .saturating_add(Weight::from_parts({{underscore cw.slope}}, 0).saturating_mul({{cw.name}}.into()))
{{/each}}
{{#if (ne benchmark.base_reads "0")}}
- .saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}} as u64))
+ .saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}}))
{{/if}}
{{#each benchmark.component_reads as |cr|}}
- .saturating_add(T::DbWeight::get().reads(({{cr.slope}} as u64).saturating_mul({{cr.name}} as u64)))
+ .saturating_add(T::DbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into())))
{{/each}}
{{#if (ne benchmark.base_writes "0")}}
- .saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}} as u64))
+ .saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}}))
{{/if}}
{{#each benchmark.component_writes as |cw|}}
- .saturating_add(T::DbWeight::get().writes(({{cw.slope}} as u64).saturating_mul({{cw.name}} as u64)))
+ .saturating_add(T::DbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into())))
+ {{/each}}
+ {{#each benchmark.component_calculated_proof_size as |cp|}}
+ .saturating_add(Weight::from_parts(0, {{cp.slope}}).saturating_mul({{cp.name}}.into()))
{{/each}}
}
{{/each}}