mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
Companion for Weight v1.5 (#1581)
* cargo test -p cumulus-primitives-utility
* cargo test -p cumulus-pallet-xcmp-queue
* cargo test -p cumulus-pallet-xcm
* cargo test -p cumulus-pallet-dmp-queue
* cargo test -p pallet-template
* cargo test -p cumulus-test-runtime
* fix weights
* fix more weights
* cargo test -p parachains-common
* cargo test -p parachain-template-runtime
* fix weights import
* cargo test -p collectives-polkadot-runtime
* cargo test -p contracts-rococo-runtime
* more
* unused
* fixes
* Update benchmarking.rs
* Update lib.rs
* Update lib.rs
* fix
* fix bug in conversion
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
#![allow(unused_parens)]
|
||||
#![allow(unused_imports)]
|
||||
|
||||
use frame_support::{traits::Get, weights::Weight};
|
||||
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
|
||||
use sp_std::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `pallet_utility`.
|
||||
@@ -48,26 +48,26 @@ pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
(30_959_000 as Weight)
|
||||
Weight::from_ref_time(30_959_000 as RefTimeWeight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((3_220_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(Weight::from_ref_time(3_220_000 as RefTimeWeight).scalar_saturating_mul(c as RefTimeWeight))
|
||||
}
|
||||
fn as_derivative() -> Weight {
|
||||
(4_732_000 as Weight)
|
||||
Weight::from_ref_time(4_732_000 as RefTimeWeight)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
(16_465_000 as Weight)
|
||||
Weight::from_ref_time(16_465_000 as RefTimeWeight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((3_364_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(Weight::from_ref_time(3_364_000 as RefTimeWeight).scalar_saturating_mul(c as RefTimeWeight))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
(11_903_000 as Weight)
|
||||
Weight::from_ref_time(11_903_000 as RefTimeWeight)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn force_batch(c: u32, ) -> Weight {
|
||||
(22_621_000 as Weight)
|
||||
Weight::from_ref_time(22_621_000 as RefTimeWeight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((3_147_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(Weight::from_ref_time(3_147_000 as RefTimeWeight).scalar_saturating_mul(c as RefTimeWeight))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user