Revert back to bare metal runners for weights generation (#6762)

* Revert back to bare metal runners for weights generation

* new old weights

---------

Co-authored-by: alvicsam <alvicsam@gmail.com>
This commit is contained in:
Oleg Plakida
2023-02-23 10:50:43 +00:00
committed by GitHub
parent e5f65865fe
commit 5e7ade9037
132 changed files with 15202 additions and 7243 deletions
@@ -16,8 +16,9 @@
//! Autogenerated weights for `pallet_democracy`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, 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:
@@ -44,249 +45,469 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_democracy`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_democracy::WeightInfo for WeightInfo<T> {
// Storage: Democracy PublicPropCount (r:1 w:1)
// Storage: Democracy PublicProps (r:1 w:1)
// Storage: Democracy Blacklist (r:1 w:0)
// Storage: Democracy DepositOf (r:0 w:1)
/// Storage: Democracy PublicPropCount (r:1 w:1)
/// Proof: Democracy PublicPropCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy PublicProps (r:1 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:1 w:0)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
/// Storage: Democracy DepositOf (r:0 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
fn propose() -> Weight {
// Minimum execution time: 53_031 nanoseconds.
Weight::from_ref_time(55_864_000)
// Proof Size summary in bytes:
// Measured: `4831`
// Estimated: `23409`
// Minimum execution time: 32_448 nanoseconds.
Weight::from_ref_time(33_263_000)
.saturating_add(Weight::from_proof_size(23409))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy DepositOf (r:1 w:1)
/// Storage: Democracy DepositOf (r:1 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
fn second() -> Weight {
// Minimum execution time: 46_017 nanoseconds.
Weight::from_ref_time(47_880_000)
// Proof Size summary in bytes:
// Measured: `3587`
// Estimated: `5705`
// Minimum execution time: 31_130 nanoseconds.
Weight::from_ref_time(31_618_000)
.saturating_add(Weight::from_proof_size(5705))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
// Storage: Democracy VotingOf (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn vote_new() -> Weight {
// Minimum execution time: 57_992 nanoseconds.
Weight::from_ref_time(60_252_000)
// Proof Size summary in bytes:
// Measured: `3532`
// Estimated: `12720`
// Minimum execution time: 44_480 nanoseconds.
Weight::from_ref_time(45_330_000)
.saturating_add(Weight::from_proof_size(12720))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
// Storage: Democracy VotingOf (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
fn vote_existing() -> Weight {
// Minimum execution time: 60_354 nanoseconds.
Weight::from_ref_time(62_448_000)
// Proof Size summary in bytes:
// Measured: `3554`
// Estimated: `12720`
// Minimum execution time: 44_688 nanoseconds.
Weight::from_ref_time(45_422_000)
.saturating_add(Weight::from_proof_size(12720))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
// Storage: Democracy Cancellations (r:1 w:1)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy Cancellations (r:1 w:1)
/// Proof: Democracy Cancellations (max_values: None, max_size: Some(33), added: 2508, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn emergency_cancel() -> Weight {
// Minimum execution time: 22_119 nanoseconds.
Weight::from_ref_time(22_651_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Democracy PublicProps (r:1 w:1)
// Storage: Democracy DepositOf (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: Democracy NextExternal (r:1 w:1)
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
// Storage: Democracy Blacklist (r:0 w:1)
fn blacklist() -> Weight {
// Minimum execution time: 94_424 nanoseconds.
Weight::from_ref_time(96_984_000)
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(6))
}
// Storage: Democracy NextExternal (r:1 w:1)
// Storage: Democracy Blacklist (r:1 w:0)
fn external_propose() -> Weight {
// Minimum execution time: 17_013 nanoseconds.
Weight::from_ref_time(17_572_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Democracy NextExternal (r:0 w:1)
fn external_propose_majority() -> Weight {
// Minimum execution time: 4_391 nanoseconds.
Weight::from_ref_time(4_561_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Democracy NextExternal (r:0 w:1)
fn external_propose_default() -> Weight {
// Minimum execution time: 4_295 nanoseconds.
Weight::from_ref_time(4_586_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Democracy NextExternal (r:1 w:1)
// Storage: Democracy ReferendumCount (r:1 w:1)
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
fn fast_track() -> Weight {
// Minimum execution time: 21_958 nanoseconds.
Weight::from_ref_time(22_606_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy NextExternal (r:1 w:1)
// Storage: Democracy Blacklist (r:1 w:1)
fn veto_external() -> Weight {
// Minimum execution time: 27_007 nanoseconds.
Weight::from_ref_time(27_693_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Democracy PublicProps (r:1 w:1)
// Storage: Democracy DepositOf (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn cancel_proposal() -> Weight {
// Minimum execution time: 80_566 nanoseconds.
Weight::from_ref_time(82_175_000)
// Proof Size summary in bytes:
// Measured: `365`
// Estimated: `7712`
// Minimum execution time: 23_949 nanoseconds.
Weight::from_ref_time(24_354_000)
.saturating_add(Weight::from_proof_size(7712))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
fn cancel_referendum() -> Weight {
// Minimum execution time: 14_105 nanoseconds.
Weight::from_ref_time(14_330_000)
/// Storage: Democracy PublicProps (r:1 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy DepositOf (r:1 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:3 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:0 w:1)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
fn blacklist() -> Weight {
// Proof Size summary in bytes:
// Measured: `6003`
// Estimated: `36392`
// Minimum execution time: 83_852 nanoseconds.
Weight::from_ref_time(85_197_000)
.saturating_add(Weight::from_proof_size(36392))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(7))
}
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:1 w:0)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
fn external_propose() -> Weight {
// Proof Size summary in bytes:
// Measured: `3415`
// Estimated: `6340`
// Minimum execution time: 11_916 nanoseconds.
Weight::from_ref_time(12_246_000)
.saturating_add(Weight::from_proof_size(6340))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Democracy LowestUnbaked (r:1 w:1)
// Storage: Democracy ReferendumCount (r:1 w:0)
// Storage: Democracy ReferendumInfoOf (r:2 w:0)
/// Storage: Democracy NextExternal (r:0 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
fn external_propose_majority() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_099 nanoseconds.
Weight::from_ref_time(3_237_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:0 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
fn external_propose_default() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_073 nanoseconds.
Weight::from_ref_time(3_218_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumCount (r:1 w:1)
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:2)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
fn fast_track() -> Weight {
// Proof Size summary in bytes:
// Measured: `253`
// Estimated: `3654`
// Minimum execution time: 24_786 nanoseconds.
Weight::from_ref_time(25_163_000)
.saturating_add(Weight::from_proof_size(3654))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(5))
}
/// Storage: Democracy NextExternal (r:1 w:1)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy Blacklist (r:1 w:1)
/// Proof: Democracy Blacklist (max_values: None, max_size: Some(3238), added: 5713, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn veto_external() -> Weight {
// Proof Size summary in bytes:
// Measured: `3518`
// Estimated: `8868`
// Minimum execution time: 29_863 nanoseconds.
Weight::from_ref_time(30_129_000)
.saturating_add(Weight::from_proof_size(8868))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
/// Storage: Democracy PublicProps (r:1 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy DepositOf (r:1 w:1)
/// Proof: Democracy DepositOf (max_values: None, max_size: Some(3230), added: 5705, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn cancel_proposal() -> Weight {
// Proof Size summary in bytes:
// Measured: `5882`
// Estimated: `28033`
// Minimum execution time: 68_445 nanoseconds.
Weight::from_ref_time(69_434_000)
.saturating_add(Weight::from_proof_size(28033))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:0 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
fn cancel_referendum() -> Weight {
// Proof Size summary in bytes:
// Measured: `238`
// Estimated: `2528`
// Minimum execution time: 18_448 nanoseconds.
Weight::from_ref_time(18_737_000)
.saturating_add(Weight::from_proof_size(2528))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Democracy LowestUnbaked (r:1 w:1)
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumCount (r:1 w:0)
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base(r: u32, ) -> Weight {
// Minimum execution time: 6_648 nanoseconds.
Weight::from_ref_time(7_364_590)
// Standard Error: 5_128
.saturating_add(Weight::from_ref_time(2_510_520).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `211 + r * (117 ±0)`
// Estimated: `998 + r * (2676 ±0)`
// Minimum execution time: 6_036 nanoseconds.
Weight::from_ref_time(8_660_219)
.saturating_add(Weight::from_proof_size(998))
// Standard Error: 6_378
.saturating_add(Weight::from_ref_time(2_616_095).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_proof_size(2676).saturating_mul(r.into()))
}
// Storage: Democracy LowestUnbaked (r:1 w:1)
// Storage: Democracy ReferendumCount (r:1 w:0)
// Storage: Democracy LastTabledWasExternal (r:1 w:0)
// Storage: Democracy NextExternal (r:1 w:0)
// Storage: Democracy PublicProps (r:1 w:0)
// Storage: Democracy ReferendumInfoOf (r:2 w:0)
/// Storage: Democracy LowestUnbaked (r:1 w:1)
/// Proof: Democracy LowestUnbaked (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumCount (r:1 w:0)
/// Proof: Democracy ReferendumCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// Storage: Democracy LastTabledWasExternal (r:1 w:0)
/// Proof: Democracy LastTabledWasExternal (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
/// Storage: Democracy NextExternal (r:1 w:0)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy PublicProps (r:1 w:0)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:0)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
// Minimum execution time: 9_093 nanoseconds.
Weight::from_ref_time(9_336_059)
// Standard Error: 5_350
.saturating_add(Weight::from_ref_time(2_532_170).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `211 + r * (117 ±0)`
// Estimated: `19318 + r * (2676 ±0)`
// Minimum execution time: 8_631 nanoseconds.
Weight::from_ref_time(11_561_886)
.saturating_add(Weight::from_proof_size(19318))
// Standard Error: 7_214
.saturating_add(Weight::from_ref_time(2_624_663).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_proof_size(2676).saturating_mul(r.into()))
}
// Storage: Democracy VotingOf (r:3 w:3)
// Storage: Balances Locks (r:1 w:1)
// Storage: Democracy ReferendumInfoOf (r:2 w:2)
/// Storage: Democracy VotingOf (r:3 w:3)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn delegate(r: u32, ) -> Weight {
// Minimum execution time: 43_838 nanoseconds.
Weight::from_ref_time(48_205_620)
// Standard Error: 6_563
.saturating_add(Weight::from_ref_time(3_759_724).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `925 + r * (139 ±0)`
// Estimated: `22584 + r * (2676 ±0)`
// Minimum execution time: 38_364 nanoseconds.
Weight::from_ref_time(40_665_356)
.saturating_add(Weight::from_proof_size(22584))
// Standard Error: 7_334
.saturating_add(Weight::from_ref_time(3_616_029).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(4))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_proof_size(2676).saturating_mul(r.into()))
}
// Storage: Democracy VotingOf (r:2 w:2)
// Storage: Democracy ReferendumInfoOf (r:2 w:2)
/// Storage: Democracy VotingOf (r:2 w:2)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Democracy ReferendumInfoOf (r:99 w:99)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn undelegate(r: u32, ) -> Weight {
// Minimum execution time: 25_985 nanoseconds.
Weight::from_ref_time(26_010_777)
// Standard Error: 5_537
.saturating_add(Weight::from_ref_time(3_730_949).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `524 + r * (139 ±0)`
// Estimated: `12540 + r * (2676 ±0)`
// Minimum execution time: 19_499 nanoseconds.
Weight::from_ref_time(21_959_820)
.saturating_add(Weight::from_proof_size(12540))
// Standard Error: 7_005
.saturating_add(Weight::from_ref_time(3_586_309).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(r.into())))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(r.into())))
.saturating_add(Weight::from_proof_size(2676).saturating_mul(r.into()))
}
// Storage: Democracy PublicProps (r:0 w:1)
/// Storage: Democracy PublicProps (r:0 w:1)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
fn clear_public_proposals() -> Weight {
// Minimum execution time: 4_740 nanoseconds.
Weight::from_ref_time(4_902_000)
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_923 nanoseconds.
Weight::from_ref_time(3_101_000)
.saturating_add(Weight::from_proof_size(0))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Democracy VotingOf (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: System Account (r:1 w:1)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn unlock_remove(r: u32, ) -> Weight {
// Minimum execution time: 26_132 nanoseconds.
Weight::from_ref_time(32_056_980)
// Standard Error: 1_594
.saturating_add(Weight::from_ref_time(98_086).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `594`
// Estimated: `12647`
// Minimum execution time: 18_675 nanoseconds.
Weight::from_ref_time(23_931_039)
.saturating_add(Weight::from_proof_size(12647))
// Standard Error: 1_216
.saturating_add(Weight::from_ref_time(19_479).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy VotingOf (r:1 w:1)
// Storage: Balances Locks (r:1 w:1)
// Storage: System Account (r:1 w:1)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// Storage: Balances Locks (r:1 w:1)
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `r` is `[0, 99]`.
fn unlock_set(r: u32, ) -> Weight {
// Minimum execution time: 30_655 nanoseconds.
Weight::from_ref_time(31_821_090)
// Standard Error: 1_353
.saturating_add(Weight::from_ref_time(136_551).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `595 + r * (22 ±0)`
// Estimated: `12647`
// Minimum execution time: 21_945 nanoseconds.
Weight::from_ref_time(23_334_960)
.saturating_add(Weight::from_proof_size(12647))
// Standard Error: 600
.saturating_add(Weight::from_ref_time(62_939).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
// Storage: Democracy VotingOf (r:1 w:1)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// The range of component `r` is `[1, 100]`.
fn remove_vote(r: u32, ) -> Weight {
// Minimum execution time: 16_010 nanoseconds.
Weight::from_ref_time(17_557_366)
// Standard Error: 1_264
.saturating_add(Weight::from_ref_time(126_455).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `758 + r * (26 ±0)`
// Estimated: `8946`
// Minimum execution time: 14_336 nanoseconds.
Weight::from_ref_time(16_654_029)
.saturating_add(Weight::from_proof_size(8946))
// Standard Error: 1_913
.saturating_add(Weight::from_ref_time(89_192).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
// Storage: Democracy VotingOf (r:1 w:1)
/// Storage: Democracy ReferendumInfoOf (r:1 w:1)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy VotingOf (r:1 w:1)
/// Proof: Democracy VotingOf (max_values: None, max_size: Some(3795), added: 6270, mode: MaxEncodedLen)
/// The range of component `r` is `[1, 100]`.
fn remove_other_vote(r: u32, ) -> Weight {
// Minimum execution time: 15_954 nanoseconds.
Weight::from_ref_time(17_840_992)
// Standard Error: 1_036
.saturating_add(Weight::from_ref_time(122_167).saturating_mul(r.into()))
// Proof Size summary in bytes:
// Measured: `758 + r * (26 ±0)`
// Estimated: `8946`
// Minimum execution time: 14_394 nanoseconds.
Weight::from_ref_time(16_771_177)
.saturating_add(Weight::from_proof_size(8946))
// Standard Error: 2_019
.saturating_add(Weight::from_ref_time(91_328).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: Democracy NextExternal (r:1 w:0)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Preimage StatusFor (r:1 w:0)
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:0 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_external_metadata() -> Weight {
Weight::from_parts(17_946_000, 3193)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Proof Size summary in bytes:
// Measured: `323`
// Estimated: `3193`
// Minimum execution time: 16_795 nanoseconds.
Weight::from_ref_time(17_014_000)
.saturating_add(Weight::from_proof_size(3193))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy NextExternal (r:1 w:0)
/// Proof: Democracy NextExternal (max_values: Some(1), max_size: Some(132), added: 627, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_external_metadata() -> Weight {
Weight::from_parts(15_990_000, 3155)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Proof Size summary in bytes:
// Measured: `253`
// Estimated: `3155`
// Minimum execution time: 15_809 nanoseconds.
Weight::from_ref_time(16_073_000)
.saturating_add(Weight::from_proof_size(3155))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy PublicProps (r:1 w:0)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Preimage StatusFor (r:1 w:0)
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:0 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_proposal_metadata() -> Weight {
Weight::from_parts(37_778_000, 19763)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Proof Size summary in bytes:
// Measured: `4886`
// Estimated: `19763`
// Minimum execution time: 30_378 nanoseconds.
Weight::from_ref_time(30_713_000)
.saturating_add(Weight::from_proof_size(19763))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy PublicProps (r:1 w:0)
/// Proof: Democracy PublicProps (max_values: Some(1), max_size: Some(16702), added: 17197, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_proposal_metadata() -> Weight {
Weight::from_parts(34_737_000, 19725)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Proof Size summary in bytes:
// Measured: `4820`
// Estimated: `19725`
// Minimum execution time: 28_070 nanoseconds.
Weight::from_ref_time(28_476_000)
.saturating_add(Weight::from_proof_size(19725))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Preimage StatusFor (r:1 w:0)
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:0 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn set_referendum_metadata() -> Weight {
Weight::from_parts(13_463_000, 2566)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `2566`
// Minimum execution time: 13_497 nanoseconds.
Weight::from_ref_time(13_735_000)
.saturating_add(Weight::from_proof_size(2566))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Democracy ReferendumInfoOf (r:1 w:0)
/// Proof: Democracy ReferendumInfoOf (max_values: None, max_size: Some(201), added: 2676, mode: MaxEncodedLen)
/// Storage: Democracy MetadataOf (r:1 w:1)
/// Proof: Democracy MetadataOf (max_values: None, max_size: Some(53), added: 2528, mode: MaxEncodedLen)
fn clear_referendum_metadata() -> Weight {
Weight::from_parts(18_399_000, 5204)
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
// Proof Size summary in bytes:
// Measured: `269`
// Estimated: `5204`
// Minimum execution time: 17_343 nanoseconds.
Weight::from_ref_time(17_638_000)
.saturating_add(Weight::from_proof_size(5204))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
}