Companion for paritytech/polkadot#6578 (#2112)

* Add ExpectTransactStatus benchmarking

* cargo fmt

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
This commit is contained in:
Keith Yeung
2023-01-19 17:43:15 +09:00
committed by GitHub
parent 6d47326a50
commit b6b2c1ccc1
11 changed files with 285 additions and 254 deletions
Generated
+255 -254
View File
File diff suppressed because it is too large Load Diff
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for StatemineXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight { fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error() XcmGeneric::<Runtime>::expect_error()
} }
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight { fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet() XcmGeneric::<Runtime>::query_pallet()
} }
@@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight { pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(5_859_000 as u64) Weight::from_ref_time(5_859_000 as u64)
} }
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(5_859_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0) // Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for StatemintXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight { fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error() XcmGeneric::<Runtime>::expect_error()
} }
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight { fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet() XcmGeneric::<Runtime>::query_pallet()
} }
@@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight { pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(5_758_000 as u64) Weight::from_ref_time(5_758_000 as u64)
} }
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(5_758_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0) // Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for WestmintXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight { fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error() XcmGeneric::<Runtime>::expect_error()
} }
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight { fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet() XcmGeneric::<Runtime>::query_pallet()
} }
@@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight { pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(6_044_000 as u64) Weight::from_ref_time(6_044_000 as u64)
} }
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(6_044_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0) // Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for BridgeHubKusamaXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight { fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error() XcmGeneric::<Runtime>::expect_error()
} }
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight { fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet() XcmGeneric::<Runtime>::query_pallet()
} }
@@ -147,6 +147,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight { pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(6_802_000 as u64) Weight::from_ref_time(6_802_000 as u64)
} }
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(6_802_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0) // Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for BridgeHubRococoXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight { fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error() XcmGeneric::<Runtime>::expect_error()
} }
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight { fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet() XcmGeneric::<Runtime>::query_pallet()
} }
@@ -147,6 +147,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight { pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(5_857_000 as u64) Weight::from_ref_time(5_857_000 as u64)
} }
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(5_857_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0) // Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0) // Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)