Backport collective weights from v9330 to master (#1959)

* [benchmarks] pr with weights (#1945)

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

* Use master for some methods

Co-authored-by: Egor_P <egor@parity.io>
Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
This commit is contained in:
Squirrel
2022-12-08 10:30:48 +00:00
committed by GitHub
parent 77df2b6f58
commit a49d007cc1
11 changed files with 311 additions and 308 deletions
@@ -17,23 +17,22 @@
//! Autogenerated weights for `pallet_alliance`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2022-12-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm6`, 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:
// /home/benchbot/cargo_target_dir/production/polkadot-parachain
// ./artifacts/polkadot-parachain
// benchmark
// pallet
// --steps=50
// --repeat=20
// --extrinsic=*
// --chain=collectives-polkadot-dev
// --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_alliance
// --chain=collectives-polkadot-dev
// --extrinsic=*
// --steps=50
// --repeat=20
// --json
// --header=./file_header.txt
// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_alliance.rs
@@ -189,15 +188,15 @@ 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: 145_000 nanoseconds.
Weight::from_ref_time(147_000_000 as u64)
// Standard Error: 13_290
.saturating_add(Weight::from_ref_time(304_371 as u64).saturating_mul(x as u64))
// Standard Error: 13_226
.saturating_add(Weight::from_ref_time(330_798 as u64).saturating_mul(y as u64))
// Standard Error: 26_428
.saturating_add(Weight::from_ref_time(7_207_748 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
// Minimum execution time: 249_184 nanoseconds.
Weight::from_ref_time(250_681_000 as u64)
// Standard Error: 19_667
.saturating_add(Weight::from_ref_time(455_603 as u64).saturating_mul(x as u64))
// Standard Error: 19_572
.saturating_add(Weight::from_ref_time(495_179 as u64).saturating_mul(y as u64))
// Standard Error: 39_109
.saturating_add(Weight::from_ref_time(9_510_054 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)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(z as u64)))
@@ -206,21 +205,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: 11_000 nanoseconds.
Weight::from_ref_time(12_000_000 as u64)
// Minimum execution time: 19_428 nanoseconds.
Weight::from_ref_time(19_751_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: 13_000 nanoseconds.
Weight::from_ref_time(14_000_000 as u64)
// Minimum execution time: 21_318 nanoseconds.
Weight::from_ref_time(21_687_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: 14_000 nanoseconds.
Weight::from_ref_time(14_000_000 as u64)
// Minimum execution time: 23_694 nanoseconds.
Weight::from_ref_time(24_344_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -229,17 +228,17 @@ 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: 39_000 nanoseconds.
Weight::from_ref_time(41_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
// Minimum execution time: 56_749 nanoseconds.
Weight::from_ref_time(57_576_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:3 w:1)
// Storage: Alliance UnscrupulousAccounts (r:1 w:0)
fn nominate_ally() -> Weight {
// Minimum execution time: 29_000 nanoseconds.
Weight::from_ref_time(30_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
// Minimum execution time: 42_096 nanoseconds.
Weight::from_ref_time(43_313_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Alliance Members (r:2 w:2)
@@ -247,9 +246,9 @@ 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: 23_000 nanoseconds.
Weight::from_ref_time(24_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
// Minimum execution time: 38_364 nanoseconds.
Weight::from_ref_time(38_849_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Alliance Members (r:4 w:2)
@@ -258,8 +257,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: 31_000 nanoseconds.
Weight::from_ref_time(32_000_000 as u64)
// Minimum execution time: 40_735 nanoseconds.
Weight::from_ref_time(42_445_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
}
@@ -268,8 +267,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: 29_000 nanoseconds.
Weight::from_ref_time(30_000_000 as u64)
// Minimum execution time: 45_591 nanoseconds.
Weight::from_ref_time(46_041_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -280,22 +279,22 @@ 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: 45_000 nanoseconds.
Weight::from_ref_time(47_000_000 as u64)
.saturating_add(T::DbWeight::get().reads(6 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
// Minimum execution time: 127_782 nanoseconds.
Weight::from_ref_time(129_150_000 as u64)
.saturating_add(T::DbWeight::get().reads(13 as u64))
.saturating_add(T::DbWeight::get().writes(8 as u64))
}
// Storage: Alliance UnscrupulousAccounts (r:1 w:1)
// Storage: Alliance UnscrupulousWebsites (r:1 w:1)
/// 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: 9_000 nanoseconds.
Weight::from_ref_time(9_512_816 as u64)
// Standard Error: 2_976
.saturating_add(Weight::from_ref_time(560_175 as u64).saturating_mul(n as u64))
// Standard Error: 1_169
.saturating_add(Weight::from_ref_time(24_530 as u64).saturating_mul(l as u64))
// Minimum execution time: 17_614 nanoseconds.
Weight::from_ref_time(17_734_000 as u64)
// Standard Error: 3_794
.saturating_add(Weight::from_ref_time(1_353_109 as u64).saturating_mul(n as u64))
// Standard Error: 1_486
.saturating_add(Weight::from_ref_time(81_145 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))
}
@@ -303,11 +302,13 @@ impl<T: frame_system::Config> pallet_alliance::WeightInfo for WeightInfo<T> {
// Storage: Alliance UnscrupulousWebsites (r:1 w:1)
/// 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: 10_000 nanoseconds.
Weight::from_ref_time(10_000_000 as u64)
// Standard Error: 94_049
.saturating_add(Weight::from_ref_time(10_887_604 as u64).saturating_mul(n as u64))
fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight {
// Minimum execution time: 17_483 nanoseconds.
Weight::from_ref_time(17_695_000 as u64)
// Standard Error: 212_194
.saturating_add(Weight::from_ref_time(14_853_347 as u64).saturating_mul(n as u64))
// Standard Error: 83_104
.saturating_add(Weight::from_ref_time(740_176 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))
}