[Backport] weights from v9320 release branch (#1890)

* [benchmarks] pr with weights (#1857)

Co-authored-by: paritytech-ci <paritytech-ci@parity.io>

* [benchmarks] Update weights for statemine/t (#1859)

* [benchmarks] pr with weights

* Update parachains/runtimes/assets/westmint/src/weights/pallet_uniques.rs

* Update parachains/runtimes/assets/westmint/src/weights/pallet_assets.rs

* Update parachains/runtimes/assets/statemine/src/weights/pallet_assets.rs

Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
Co-authored-by: Squirrel <gilescope@gmail.com>

* fix weights for destroy

Co-authored-by: Paritytech CI <52199148+paritytech-ci@users.noreply.github.com>
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
Co-authored-by: Squirrel <gilescope@gmail.com>
Co-authored-by: parity-processbot <>
Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com>
This commit is contained in:
Egor_P
2022-11-21 15:06:32 +01:00
committed by GitHub
parent 82fd8d1ae3
commit 693440673f
45 changed files with 1282 additions and 978 deletions
@@ -17,8 +17,8 @@
//! Autogenerated weights for `pallet_alliance`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2022-11-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("collectives-polkadot-dev"), DB CACHE: 1024
// Executed Command:
@@ -35,7 +35,7 @@
// --pallet=pallet_alliance
// --chain=collectives-polkadot-dev
// --header=./file_header.txt
// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/
// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_alliance.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -57,12 +57,12 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `y` is `[0, 90]`.
/// The range of component `p` is `[1, 100]`.
fn propose_proposed(_b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 41_862 nanoseconds.
Weight::from_ref_time(44_475_938 as u64)
// Standard Error: 2_412
.saturating_add(Weight::from_ref_time(39_913 as u64).saturating_mul(y as u64))
// Standard Error: 2_201
.saturating_add(Weight::from_ref_time(175_874 as u64).saturating_mul(p as u64))
// Minimum execution time: 43_327 nanoseconds.
Weight::from_ref_time(47_831_441 as u64)
// Standard Error: 2_335
.saturating_add(Weight::from_ref_time(49_915 as u64).saturating_mul(y as u64))
// Standard Error: 2_131
.saturating_add(Weight::from_ref_time(167_914 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -70,11 +70,13 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: AllianceMotion Voting (r:1 w:1)
/// The range of component `x` is `[3, 10]`.
/// The range of component `y` is `[2, 90]`.
fn vote(_x: u32, y: u32, ) -> Weight {
// Minimum execution time: 44_943 nanoseconds.
Weight::from_ref_time(47_476_239 as u64)
// Standard Error: 3_021
.saturating_add(Weight::from_ref_time(111_095 as u64).saturating_mul(y as u64))
fn vote(x: u32, y: u32, ) -> Weight {
// Minimum execution time: 46_818 nanoseconds.
Weight::from_ref_time(48_355_703 as u64)
// Standard Error: 38_083
.saturating_add(Weight::from_ref_time(199_036 as u64).saturating_mul(x as u64))
// Standard Error: 3_223
.saturating_add(Weight::from_ref_time(54_377 as u64).saturating_mul(y as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -84,10 +86,10 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: AllianceMotion Voting (r:0 w:1)
/// The range of component `p` is `[1, 100]`.
fn veto(p: u32, ) -> Weight {
// Minimum execution time: 31_655 nanoseconds.
Weight::from_ref_time(35_486_028 as u64)
// Standard Error: 1_602
.saturating_add(Weight::from_ref_time(177_740 as u64).saturating_mul(p as u64))
// Minimum execution time: 33_781 nanoseconds.
Weight::from_ref_time(37_103_051 as u64)
// Standard Error: 1_592
.saturating_add(Weight::from_ref_time(181_767 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -100,14 +102,14 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_disapproved(x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 48_595 nanoseconds.
Weight::from_ref_time(43_160_052 as u64)
// Standard Error: 24_167
.saturating_add(Weight::from_ref_time(18_121 as u64).saturating_mul(x as u64))
// Standard Error: 2_354
.saturating_add(Weight::from_ref_time(80_608 as u64).saturating_mul(y as u64))
// Standard Error: 2_103
.saturating_add(Weight::from_ref_time(170_852 as u64).saturating_mul(p as u64))
// Minimum execution time: 48_244 nanoseconds.
Weight::from_ref_time(47_895_181 as u64)
// Standard Error: 31_033
.saturating_add(Weight::from_ref_time(233_652 as u64).saturating_mul(x as u64))
// Standard Error: 3_023
.saturating_add(Weight::from_ref_time(34_551 as u64).saturating_mul(y as u64))
// Standard Error: 2_701
.saturating_add(Weight::from_ref_time(124_837 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -120,15 +122,17 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `x` is `[2, 10]`.
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_early_approved(b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 59_651 nanoseconds.
Weight::from_ref_time(55_415_708 as u64)
// Standard Error: 216
.saturating_add(Weight::from_ref_time(2_458 as u64).saturating_mul(b as u64))
// Standard Error: 2_503
.saturating_add(Weight::from_ref_time(62_857 as u64).saturating_mul(y as u64))
// Standard Error: 2_236
.saturating_add(Weight::from_ref_time(187_234 as u64).saturating_mul(p as u64))
fn close_early_approved(b: u32, x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 61_015 nanoseconds.
Weight::from_ref_time(57_149_992 as u64)
// Standard Error: 246
.saturating_add(Weight::from_ref_time(2_998 as u64).saturating_mul(b as u64))
// Standard Error: 29_174
.saturating_add(Weight::from_ref_time(14_515 as u64).saturating_mul(x as u64))
// Standard Error: 2_847
.saturating_add(Weight::from_ref_time(38_233 as u64).saturating_mul(y as u64))
// Standard Error: 2_543
.saturating_add(Weight::from_ref_time(174_542 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -143,12 +147,12 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(_x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 64_871 nanoseconds.
Weight::from_ref_time(62_783_382 as u64)
// Standard Error: 2_394
.saturating_add(Weight::from_ref_time(75_872 as u64).saturating_mul(y as u64))
// Standard Error: 2_139
.saturating_add(Weight::from_ref_time(197_924 as u64).saturating_mul(p as u64))
// Minimum execution time: 67_605 nanoseconds.
Weight::from_ref_time(66_773_651 as u64)
// Standard Error: 3_250
.saturating_add(Weight::from_ref_time(58_552 as u64).saturating_mul(y as u64))
// Standard Error: 2_903
.saturating_add(Weight::from_ref_time(183_936 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -162,15 +166,13 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `x` is `[2, 10]`.
/// The range of component `y` is `[2, 90]`.
/// The range of component `p` is `[1, 100]`.
fn close_approved(b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 49_900 nanoseconds.
Weight::from_ref_time(45_150_540 as u64)
// Standard Error: 197
.saturating_add(Weight::from_ref_time(412 as u64).saturating_mul(b as u64))
// Standard Error: 2_284
.saturating_add(Weight::from_ref_time(73_832 as u64).saturating_mul(y as u64))
// Standard Error: 2_040
.saturating_add(Weight::from_ref_time(190_434 as u64).saturating_mul(p as u64))
fn close_approved(_b: u32, _x: u32, y: u32, p: u32, ) -> Weight {
// Minimum execution time: 51_748 nanoseconds.
Weight::from_ref_time(48_865_836 as u64)
// Standard Error: 2_633
.saturating_add(Weight::from_ref_time(75_701 as u64).saturating_mul(y as u64))
// Standard Error: 2_351
.saturating_add(Weight::from_ref_time(194_721 as u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -180,14 +182,14 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `y` is `[0, 90]`.
/// The range of component `z` is `[0, 100]`.
fn init_members(x: u32, y: u32, z: u32, ) -> Weight {
// Minimum execution time: 46_750 nanoseconds.
Weight::from_ref_time(31_805_458 as u64)
// Standard Error: 10_486
.saturating_add(Weight::from_ref_time(114_892 as u64).saturating_mul(x as u64))
// Standard Error: 1_110
.saturating_add(Weight::from_ref_time(179_285 as u64).saturating_mul(y as u64))
// Standard Error: 1_001
.saturating_add(Weight::from_ref_time(149_906 as u64).saturating_mul(z as u64))
// Minimum execution time: 48_081 nanoseconds.
Weight::from_ref_time(31_894_957 as u64)
// Standard Error: 8_667
.saturating_add(Weight::from_ref_time(160_266 as u64).saturating_mul(x as u64))
// Standard Error: 917
.saturating_add(Weight::from_ref_time(186_970 as u64).saturating_mul(y as u64))
// Standard Error: 827
.saturating_add(Weight::from_ref_time(155_921 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -201,14 +203,14 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `y` is `[0, 100]`.
/// The range of component `z` is `[0, 50]`.
fn disband(x: u32, y: u32, z: u32, ) -> Weight {
// Minimum execution time: 254_550 nanoseconds.
Weight::from_ref_time(255_691_000 as u64)
// Standard Error: 20_111
.saturating_add(Weight::from_ref_time(418_055 as u64).saturating_mul(x as u64))
// Standard Error: 20_014
.saturating_add(Weight::from_ref_time(500_742 as u64).saturating_mul(y as u64))
// Standard Error: 39_992
.saturating_add(Weight::from_ref_time(9_058_238 as u64).saturating_mul(z as u64))
// Minimum execution time: 256_705 nanoseconds.
Weight::from_ref_time(257_735_000 as u64)
// Standard Error: 20_427
.saturating_add(Weight::from_ref_time(442_424 as u64).saturating_mul(x as u64))
// Standard Error: 20_329
.saturating_add(Weight::from_ref_time(508_022 as u64).saturating_mul(y as u64))
// Standard Error: 40_620
.saturating_add(Weight::from_ref_time(9_490_608 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(y as u64)))
@@ -218,21 +220,21 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
}
// Storage: Alliance Rule (r:0 w:1)
fn set_rule() -> Weight {
// Minimum execution time: 18_103 nanoseconds.
Weight::from_ref_time(18_546_000 as u64)
// Minimum execution time: 19_171 nanoseconds.
Weight::from_ref_time(19_395_000 as u64)
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Alliance Announcements (r:1 w:1)
fn announce() -> Weight {
// Minimum execution time: 20_188 nanoseconds.
Weight::from_ref_time(20_474_000 as u64)
// Minimum execution time: 21_640 nanoseconds.
Weight::from_ref_time(21_983_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Alliance Announcements (r:1 w:1)
fn remove_announcement() -> Weight {
// Minimum execution time: 22_146 nanoseconds.
Weight::from_ref_time(24_837_000 as u64)
// Minimum execution time: 23_224 nanoseconds.
Weight::from_ref_time(23_606_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -241,16 +243,16 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: System Account (r:1 w:1)
// Storage: Alliance DepositOf (r:0 w:1)
fn join_alliance() -> Weight {
// Minimum execution time: 54_380 nanoseconds.
Weight::from_ref_time(55_406_000 as u64)
// Minimum execution time: 57_718 nanoseconds.
Weight::from_ref_time(58_601_000 as u64)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Alliance Members (r:4 w:1)
// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
fn nominate_ally() -> Weight {
// Minimum execution time: 40_764 nanoseconds.
Weight::from_ref_time(41_560_000 as u64)
// Minimum execution time: 42_740 nanoseconds.
Weight::from_ref_time(44_169_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -259,8 +261,8 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
fn elevate_ally() -> Weight {
// Minimum execution time: 36_303 nanoseconds.
Weight::from_ref_time(36_952_000 as u64)
// Minimum execution time: 38_511 nanoseconds.
Weight::from_ref_time(39_563_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -270,8 +272,8 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: AllianceMotion Prime (r:0 w:1)
// Storage: Alliance RetiringMembers (r:0 w:1)
fn give_retirement_notice() -> Weight {
// Minimum execution time: 38_922 nanoseconds.
Weight::from_ref_time(39_294_000 as u64)
// Minimum execution time: 41_316 nanoseconds.
Weight::from_ref_time(42_071_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -280,8 +282,8 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: Alliance DepositOf (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn retire() -> Weight {
// Minimum execution time: 43_402 nanoseconds.
Weight::from_ref_time(43_837_000 as u64)
// Minimum execution time: 45_235 nanoseconds.
Weight::from_ref_time(45_813_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -298,8 +300,8 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: AllianceMotion Members (r:0 w:1)
// Storage: AllianceMotion Prime (r:0 w:1)
fn kick_member() -> Weight {
// Minimum execution time: 120_039 nanoseconds.
Weight::from_ref_time(121_205_000 as u64)
// Minimum execution time: 123_722 nanoseconds.
Weight::from_ref_time(127_594_000 as u64)
.saturating_add(T::DbWeight::get().reads(13 as u64))
.saturating_add(T::DbWeight::get().writes(8 as u64))
}
@@ -308,12 +310,12 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[0, 100]`.
/// The range of component `l` is `[0, 255]`.
fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Minimum execution time: 16_702 nanoseconds.
Weight::from_ref_time(16_779_000 as u64)
// Standard Error: 2_712
.saturating_add(Weight::from_ref_time(1_285_845 as u64).saturating_mul(n as u64))
// Standard Error: 1_062
.saturating_add(Weight::from_ref_time(68_045 as u64).saturating_mul(l as u64))
// Minimum execution time: 17_548 nanoseconds.
Weight::from_ref_time(17_664_000 as u64)
// Standard Error: 2_843
.saturating_add(Weight::from_ref_time(1_306_867 as u64).saturating_mul(n as u64))
// Standard Error: 1_113
.saturating_add(Weight::from_ref_time(69_708 as u64).saturating_mul(l as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -322,12 +324,12 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[0, 100]`.
/// The range of component `l` is `[0, 255]`.
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Minimum execution time: 16_760 nanoseconds.
Weight::from_ref_time(16_907_000 as u64)
// Standard Error: 165_970
.saturating_add(Weight::from_ref_time(12_792_975 as u64).saturating_mul(n as u64))
// Standard Error: 65_001
.saturating_add(Weight::from_ref_time(512_791 as u64).saturating_mul(l as u64))
// Minimum execution time: 17_220 nanoseconds.
Weight::from_ref_time(17_391_000 as u64)
// Standard Error: 177_554
.saturating_add(Weight::from_ref_time(13_714_190 as u64).saturating_mul(n as u64))
// Standard Error: 69_538
.saturating_add(Weight::from_ref_time(526_760 as u64).saturating_mul(l as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}