mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Collective benchmark respects DefaultVote configuration (#12612)
* Collective benchmark respects DefaultVote configuration * ".git/.scripts/bench-bot.sh" pallet dev pallet_collective Co-authored-by: command-bot <>
This commit is contained in:
@@ -489,9 +489,19 @@ benchmarks_instance_pallet! {
|
||||
let index = p - 1;
|
||||
// Have almost everyone vote aye on last proposal, while keeping it from passing.
|
||||
// A few abstainers will be the nay votes needed to fail the vote.
|
||||
let mut yes_votes: MemberCount = 0;
|
||||
for j in 2 .. m - 1 {
|
||||
let voter = &members[j as usize];
|
||||
let approve = true;
|
||||
yes_votes += 1;
|
||||
// vote aye till a prime nay vote keeps the proposal disapproved.
|
||||
if <<T as Config<I>>::DefaultVote as DefaultVote>::default_vote(
|
||||
Some(false),
|
||||
yes_votes,
|
||||
0,
|
||||
m,) {
|
||||
break;
|
||||
}
|
||||
Collective::<T, I>::vote(
|
||||
SystemOrigin::Signed(voter.clone()).into(),
|
||||
last_hash,
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -18,22 +18,26 @@
|
||||
//! Autogenerated weights for pallet_collective
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-05-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2022-11-03, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// /home/benchbot/cargo_target_dir/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_collective
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_collective
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/collective/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -61,38 +65,46 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Council Members (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(0 as u64)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add(Weight::from_ref_time(10_280_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 12_000
|
||||
.saturating_add(Weight::from_ref_time(126_000 as u64).saturating_mul(n as u64))
|
||||
// Standard Error: 12_000
|
||||
.saturating_add(Weight::from_ref_time(13_310_000 as u64).saturating_mul(p as u64))
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 18_852 nanoseconds.
|
||||
Weight::from_ref_time(19_138_000 as u64)
|
||||
// Standard Error: 65_564
|
||||
.saturating_add(Weight::from_ref_time(5_276_957 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 65_564
|
||||
.saturating_add(Weight::from_ref_time(7_655_866 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn execute(b: u32, m: u32, ) -> Weight {
|
||||
Weight::from_ref_time(16_819_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(33_000 as u64).saturating_mul(m as u64))
|
||||
// Minimum execution time: 23_081 nanoseconds.
|
||||
Weight::from_ref_time(22_608_754 as u64)
|
||||
// Standard Error: 35
|
||||
.saturating_add(Weight::from_ref_time(1_722 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 370
|
||||
.saturating_add(Weight::from_ref_time(23_442 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:0)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
||||
Weight::from_ref_time(18_849_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(56_000 as u64).saturating_mul(m as u64))
|
||||
// Minimum execution time: 25_477 nanoseconds.
|
||||
Weight::from_ref_time(25_478_243 as u64)
|
||||
// Standard Error: 47
|
||||
.saturating_add(Weight::from_ref_time(1_346 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 493
|
||||
.saturating_add(Weight::from_ref_time(27_323 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
@@ -100,23 +112,29 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalCount (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(22_204_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(8_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(49_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(180_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 33_037 nanoseconds.
|
||||
Weight::from_ref_time(29_297_056 as u64)
|
||||
// Standard Error: 180
|
||||
.saturating_add(Weight::from_ref_time(5_899 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_884
|
||||
.saturating_add(Weight::from_ref_time(33_511 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_860
|
||||
.saturating_add(Weight::from_ref_time(195_416 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))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
/// The range of component `m` is `[5, 100]`.
|
||||
fn vote(m: u32, ) -> Weight {
|
||||
Weight::from_ref_time(30_941_000 as u64)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add(Weight::from_ref_time(77_000 as u64).saturating_mul(m as u64))
|
||||
// Minimum execution time: 35_284 nanoseconds.
|
||||
Weight::from_ref_time(38_865_202 as u64)
|
||||
// Standard Error: 2_322
|
||||
.saturating_add(Weight::from_ref_time(53_753 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -124,12 +142,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(32_485_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(39_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(124_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 35_773 nanoseconds.
|
||||
Weight::from_ref_time(36_651_208 as u64)
|
||||
// Standard Error: 1_142
|
||||
.saturating_add(Weight::from_ref_time(27_095 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_114
|
||||
.saturating_add(Weight::from_ref_time(169_747 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))
|
||||
}
|
||||
@@ -137,14 +158,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(33_487_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(5_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(66_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(157_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 46_290 nanoseconds.
|
||||
Weight::from_ref_time(46_176_864 as u64)
|
||||
// Standard Error: 147
|
||||
.saturating_add(Weight::from_ref_time(2_318 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_560
|
||||
.saturating_add(Weight::from_ref_time(31_428 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_520
|
||||
.saturating_add(Weight::from_ref_time(171_822 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))
|
||||
}
|
||||
@@ -153,12 +178,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(33_494_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(58_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(124_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 38_421 nanoseconds.
|
||||
Weight::from_ref_time(40_586_165 as u64)
|
||||
// Standard Error: 1_853
|
||||
.saturating_add(Weight::from_ref_time(20_063 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_807
|
||||
.saturating_add(Weight::from_ref_time(151_494 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))
|
||||
}
|
||||
@@ -167,24 +195,30 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(36_566_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(5_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(63_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(158_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 48_281 nanoseconds.
|
||||
Weight::from_ref_time(47_511_499 as u64)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(1_900 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_429
|
||||
.saturating_add(Weight::from_ref_time(37_612 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_393
|
||||
.saturating_add(Weight::from_ref_time(180_682 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))
|
||||
}
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn disapprove_proposal(p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(20_159_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(173_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 22_534 nanoseconds.
|
||||
Weight::from_ref_time(25_722_688 as u64)
|
||||
// Standard Error: 1_622
|
||||
.saturating_add(Weight::from_ref_time(166_308 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
}
|
||||
@@ -194,38 +228,46 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Council Members (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(0 as u64)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add(Weight::from_ref_time(10_280_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 12_000
|
||||
.saturating_add(Weight::from_ref_time(126_000 as u64).saturating_mul(n as u64))
|
||||
// Standard Error: 12_000
|
||||
.saturating_add(Weight::from_ref_time(13_310_000 as u64).saturating_mul(p as u64))
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 18_852 nanoseconds.
|
||||
Weight::from_ref_time(19_138_000 as u64)
|
||||
// Standard Error: 65_564
|
||||
.saturating_add(Weight::from_ref_time(5_276_957 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 65_564
|
||||
.saturating_add(Weight::from_ref_time(7_655_866 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(p as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn execute(b: u32, m: u32, ) -> Weight {
|
||||
Weight::from_ref_time(16_819_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(33_000 as u64).saturating_mul(m as u64))
|
||||
// Minimum execution time: 23_081 nanoseconds.
|
||||
Weight::from_ref_time(22_608_754 as u64)
|
||||
// Standard Error: 35
|
||||
.saturating_add(Weight::from_ref_time(1_722 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 370
|
||||
.saturating_add(Weight::from_ref_time(23_442 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:0)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
||||
Weight::from_ref_time(18_849_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(56_000 as u64).saturating_mul(m as u64))
|
||||
// Minimum execution time: 25_477 nanoseconds.
|
||||
Weight::from_ref_time(25_478_243 as u64)
|
||||
// Standard Error: 47
|
||||
.saturating_add(Weight::from_ref_time(1_346 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 493
|
||||
.saturating_add(Weight::from_ref_time(27_323 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
@@ -233,23 +275,29 @@ impl WeightInfo for () {
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalCount (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(22_204_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(8_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(49_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(180_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 33_037 nanoseconds.
|
||||
Weight::from_ref_time(29_297_056 as u64)
|
||||
// Standard Error: 180
|
||||
.saturating_add(Weight::from_ref_time(5_899 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_884
|
||||
.saturating_add(Weight::from_ref_time(33_511 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_860
|
||||
.saturating_add(Weight::from_ref_time(195_416 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
}
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
/// The range of component `m` is `[5, 100]`.
|
||||
fn vote(m: u32, ) -> Weight {
|
||||
Weight::from_ref_time(30_941_000 as u64)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add(Weight::from_ref_time(77_000 as u64).saturating_mul(m as u64))
|
||||
// Minimum execution time: 35_284 nanoseconds.
|
||||
Weight::from_ref_time(38_865_202 as u64)
|
||||
// Standard Error: 2_322
|
||||
.saturating_add(Weight::from_ref_time(53_753 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -257,12 +305,15 @@ impl WeightInfo for () {
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(32_485_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(39_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(124_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 35_773 nanoseconds.
|
||||
Weight::from_ref_time(36_651_208 as u64)
|
||||
// Standard Error: 1_142
|
||||
.saturating_add(Weight::from_ref_time(27_095 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_114
|
||||
.saturating_add(Weight::from_ref_time(169_747 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
}
|
||||
@@ -270,14 +321,18 @@ impl WeightInfo for () {
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(33_487_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(5_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(66_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(157_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 46_290 nanoseconds.
|
||||
Weight::from_ref_time(46_176_864 as u64)
|
||||
// Standard Error: 147
|
||||
.saturating_add(Weight::from_ref_time(2_318 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_560
|
||||
.saturating_add(Weight::from_ref_time(31_428 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_520
|
||||
.saturating_add(Weight::from_ref_time(171_822 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
}
|
||||
@@ -286,12 +341,15 @@ impl WeightInfo for () {
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(33_494_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(58_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(124_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 38_421 nanoseconds.
|
||||
Weight::from_ref_time(40_586_165 as u64)
|
||||
// Standard Error: 1_853
|
||||
.saturating_add(Weight::from_ref_time(20_063 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_807
|
||||
.saturating_add(Weight::from_ref_time(151_494 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
}
|
||||
@@ -300,24 +358,30 @@ impl WeightInfo for () {
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(36_566_000 as u64)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(5_000 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(63_000 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(158_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 48_281 nanoseconds.
|
||||
Weight::from_ref_time(47_511_499 as u64)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(1_900 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_429
|
||||
.saturating_add(Weight::from_ref_time(37_612 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_393
|
||||
.saturating_add(Weight::from_ref_time(180_682 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
}
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn disapprove_proposal(p: u32, ) -> Weight {
|
||||
Weight::from_ref_time(20_159_000 as u64)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add(Weight::from_ref_time(173_000 as u64).saturating_mul(p as u64))
|
||||
// Minimum execution time: 22_534 nanoseconds.
|
||||
Weight::from_ref_time(25_722_688 as u64)
|
||||
// Standard Error: 1_622
|
||||
.saturating_add(Weight::from_ref_time(166_308 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user