Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Co #12558: Update pallet-multisig benches (#6188)
Browse files Browse the repository at this point in the history
* Typo

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Add multisig weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* Update multisig weights

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>

* update lockfile for {"substrate"}

Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
  • Loading branch information
ggwpez authored and coderobe committed Oct 27, 2022
1 parent f34933b commit 5f938d2
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 146 deletions.
74 changes: 37 additions & 37 deletions runtime/kusama/src/weights/pallet_multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! Autogenerated weights for `pallet_multisig`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-10-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2022-10-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024

// Executed Command:
Expand All @@ -28,11 +28,11 @@
// --steps=50
// --repeat=20
// --pallet=pallet_multisig
// --extrinsic=*
// --extrinsic=
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/
// --output=runtime/kusama/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -46,35 +46,35 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
/// The range of component `z` is `[0, 10000]`.
fn as_multi_threshold_1(z: u32, ) -> Weight {
// Minimum execution time: 14_473 nanoseconds.
Weight::from_ref_time(14_857_255 as u64)
// Minimum execution time: 14_233 nanoseconds.
Weight::from_ref_time(14_763_390 as u64)
// Standard Error: 2
.saturating_add(Weight::from_ref_time(524 as u64).saturating_mul(z as u64))
.saturating_add(Weight::from_ref_time(479 as u64).saturating_mul(z as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
/// The range of component `s` is `[2, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_create(s: u32, z: u32, ) -> Weight {
// Minimum execution time: 43_032 nanoseconds.
Weight::from_ref_time(34_993_942 as u64)
// Standard Error: 853
.saturating_add(Weight::from_ref_time(91_914 as u64).saturating_mul(s as u64))
// Standard Error: 8
.saturating_add(Weight::from_ref_time(1_524 as u64).saturating_mul(z as u64))
// Minimum execution time: 42_837 nanoseconds.
Weight::from_ref_time(34_846_149 as u64)
// Standard Error: 646
.saturating_add(Weight::from_ref_time(89_482 as u64).saturating_mul(s as u64))
// Standard Error: 6
.saturating_add(Weight::from_ref_time(1_465 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
/// The range of component `s` is `[3, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
// Minimum execution time: 32_481 nanoseconds.
Weight::from_ref_time(25_907_480 as u64)
// Standard Error: 538
.saturating_add(Weight::from_ref_time(72_827 as u64).saturating_mul(s as u64))
// Standard Error: 5
.saturating_add(Weight::from_ref_time(1_482 as u64).saturating_mul(z as u64))
// Minimum execution time: 32_269 nanoseconds.
Weight::from_ref_time(25_447_784 as u64)
// Standard Error: 499
.saturating_add(Weight::from_ref_time(74_525 as u64).saturating_mul(s as u64))
// Standard Error: 4
.saturating_add(Weight::from_ref_time(1_457 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -83,43 +83,43 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
/// The range of component `s` is `[2, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
// Minimum execution time: 46_390 nanoseconds.
Weight::from_ref_time(37_658_221 as u64)
// Standard Error: 793
.saturating_add(Weight::from_ref_time(102_063 as u64).saturating_mul(s as u64))
// Standard Error: 7
.saturating_add(Weight::from_ref_time(1_527 as u64).saturating_mul(z as u64))
// Minimum execution time: 46_096 nanoseconds.
Weight::from_ref_time(37_139_587 as u64)
// Standard Error: 602
.saturating_add(Weight::from_ref_time(104_199 as u64).saturating_mul(s as u64))
// Standard Error: 5
.saturating_add(Weight::from_ref_time(1_478 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_create(s: u32, ) -> Weight {
// Minimum execution time: 30_798 nanoseconds.
Weight::from_ref_time(33_863_448 as u64)
// Standard Error: 1_061
.saturating_add(Weight::from_ref_time(87_784 as u64).saturating_mul(s as u64))
// Minimum execution time: 31_572 nanoseconds.
Weight::from_ref_time(33_475_485 as u64)
// Standard Error: 972
.saturating_add(Weight::from_ref_time(91_041 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_approve(s: u32, ) -> Weight {
// Minimum execution time: 22_089 nanoseconds.
Weight::from_ref_time(24_103_179 as u64)
// Standard Error: 709
.saturating_add(Weight::from_ref_time(77_314 as u64).saturating_mul(s as u64))
// Minimum execution time: 21_861 nanoseconds.
Weight::from_ref_time(23_986_670 as u64)
// Standard Error: 660
.saturating_add(Weight::from_ref_time(79_765 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
/// The range of component `s` is `[2, 100]`.
fn cancel_as_multi(s: u32, ) -> Weight {
// Minimum execution time: 31_883 nanoseconds.
Weight::from_ref_time(34_362_577 as u64)
// Standard Error: 867
.saturating_add(Weight::from_ref_time(84_122 as u64).saturating_mul(s as u64))
// Minimum execution time: 31_375 nanoseconds.
Weight::from_ref_time(33_657_765 as u64)
// Standard Error: 931
.saturating_add(Weight::from_ref_time(84_177 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand Down
2 changes: 1 addition & 1 deletion runtime/parachains/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ std::thread_local! {
static PROCESSED: RefCell<Vec<(ParaId, UpwardMessage)>> = RefCell::new(vec![]);
}

/// Return which messages have been processed by `pocess_upward_message` and clear the buffer.
/// Return which messages have been processed by `process_upward_message` and clear the buffer.
pub fn take_processed() -> Vec<(ParaId, UpwardMessage)> {
PROCESSED.with(|opt_hook| std::mem::take(&mut *opt_hook.borrow_mut()))
}
Expand Down
72 changes: 36 additions & 36 deletions runtime/polkadot/src/weights/pallet_multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
//! Autogenerated weights for `pallet_multisig`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-10-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! DATE: 2022-10-26, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024

// Executed Command:
Expand All @@ -28,11 +28,11 @@
// --steps=50
// --repeat=20
// --pallet=pallet_multisig
// --extrinsic=*
// --extrinsic=
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/polkadot/src/weights/
// --output=runtime/polkadot/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand All @@ -46,35 +46,35 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
/// The range of component `z` is `[0, 10000]`.
fn as_multi_threshold_1(z: u32, ) -> Weight {
// Minimum execution time: 13_938 nanoseconds.
Weight::from_ref_time(14_379_834 as u64)
// Minimum execution time: 14_333 nanoseconds.
Weight::from_ref_time(14_680_513 as u64)
// Standard Error: 3
.saturating_add(Weight::from_ref_time(539 as u64).saturating_mul(z as u64))
.saturating_add(Weight::from_ref_time(478 as u64).saturating_mul(z as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
/// The range of component `s` is `[2, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_create(s: u32, z: u32, ) -> Weight {
// Minimum execution time: 42_031 nanoseconds.
Weight::from_ref_time(35_480_542 as u64)
// Standard Error: 931
.saturating_add(Weight::from_ref_time(78_428 as u64).saturating_mul(s as u64))
// Standard Error: 9
.saturating_add(Weight::from_ref_time(1_486 as u64).saturating_mul(z as u64))
// Minimum execution time: 41_940 nanoseconds.
Weight::from_ref_time(34_164_952 as u64)
// Standard Error: 758
.saturating_add(Weight::from_ref_time(84_361 as u64).saturating_mul(s as u64))
// Standard Error: 7
.saturating_add(Weight::from_ref_time(1_515 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
/// The range of component `s` is `[3, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
// Minimum execution time: 32_069 nanoseconds.
Weight::from_ref_time(25_964_433 as u64)
// Standard Error: 807
.saturating_add(Weight::from_ref_time(72_808 as u64).saturating_mul(s as u64))
// Standard Error: 7
.saturating_add(Weight::from_ref_time(1_421 as u64).saturating_mul(z as u64))
// Minimum execution time: 32_061 nanoseconds.
Weight::from_ref_time(25_242_175 as u64)
// Standard Error: 488
.saturating_add(Weight::from_ref_time(74_544 as u64).saturating_mul(s as u64))
// Standard Error: 4
.saturating_add(Weight::from_ref_time(1_451 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand All @@ -83,43 +83,43 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
/// The range of component `s` is `[2, 100]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
// Minimum execution time: 45_821 nanoseconds.
Weight::from_ref_time(36_674_491 as u64)
// Standard Error: 588
.saturating_add(Weight::from_ref_time(105_366 as u64).saturating_mul(s as u64))
// Minimum execution time: 45_799 nanoseconds.
Weight::from_ref_time(36_673_371 as u64)
// Standard Error: 602
.saturating_add(Weight::from_ref_time(105_602 as u64).saturating_mul(s as u64))
// Standard Error: 5
.saturating_add(Weight::from_ref_time(1_529 as u64).saturating_mul(z as u64))
.saturating_add(Weight::from_ref_time(1_489 as u64).saturating_mul(z as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_create(s: u32, ) -> Weight {
// Minimum execution time: 30_480 nanoseconds.
Weight::from_ref_time(33_636_540 as u64)
// Standard Error: 1_079
.saturating_add(Weight::from_ref_time(82_676 as u64).saturating_mul(s as u64))
// Minimum execution time: 30_746 nanoseconds.
Weight::from_ref_time(33_495_066 as u64)
// Standard Error: 1_027
.saturating_add(Weight::from_ref_time(85_901 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
/// The range of component `s` is `[2, 100]`.
fn approve_as_multi_approve(s: u32, ) -> Weight {
// Minimum execution time: 21_528 nanoseconds.
Weight::from_ref_time(23_466_616 as u64)
// Standard Error: 788
.saturating_add(Weight::from_ref_time(82_194 as u64).saturating_mul(s as u64))
// Minimum execution time: 21_939 nanoseconds.
Weight::from_ref_time(23_359_812 as u64)
// Standard Error: 626
.saturating_add(Weight::from_ref_time(86_183 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Multisig Multisigs (r:1 w:1)
/// The range of component `s` is `[2, 100]`.
fn cancel_as_multi(s: u32, ) -> Weight {
// Minimum execution time: 31_797 nanoseconds.
Weight::from_ref_time(33_558_759 as u64)
// Standard Error: 988
.saturating_add(Weight::from_ref_time(84_992 as u64).saturating_mul(s as u64))
// Minimum execution time: 32_246 nanoseconds.
Weight::from_ref_time(33_400_827 as u64)
// Standard Error: 746
.saturating_add(Weight::from_ref_time(85_743 as u64).saturating_mul(s as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
Expand Down
Loading

0 comments on commit 5f938d2

Please sign in to comment.