mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-29 23:07:26 +00:00
ebfe00d590
* Align log Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use max instead of sum Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make comment ordering deterministic Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Dont add Pov overhead when all is ignored Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update test pallet weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Re-run weights on bm2 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Actually use new weights Fucked up the merge for this file... Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
555 lines
28 KiB
Rust
Generated
555 lines
28 KiB
Rust
Generated
// This file is part of Substrate.
|
|
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// 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
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Autogenerated weights for pallet_collective
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-04-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm2`, 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
|
|
// benchmark
|
|
// pallet
|
|
// --chain=dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_collective
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --output=./frame/collective/src/weights.rs
|
|
// --header=./HEADER-APACHE2
|
|
// --template=./.maintain/frame-weight-template.hbs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions needed for pallet_collective.
|
|
pub trait WeightInfo {
|
|
fn set_members(m: u32, n: u32, p: u32, ) -> Weight;
|
|
fn execute(b: u32, m: u32, ) -> Weight;
|
|
fn propose_execute(b: u32, m: u32, ) -> Weight;
|
|
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight;
|
|
fn vote(m: u32, ) -> Weight;
|
|
fn close_early_disapproved(m: u32, p: u32, ) -> Weight;
|
|
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight;
|
|
fn close_disapproved(m: u32, p: u32, ) -> Weight;
|
|
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight;
|
|
fn disapprove_proposal(p: u32, ) -> Weight;
|
|
}
|
|
|
|
/// Weights for pallet_collective using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
/// Storage: Council Members (r:1 w:1)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:0)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:100 w:100)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Prime (r:0 w:1)
|
|
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
|
|
// Estimated: `15861 + m * (1967 ±23) + p * (4332 ±23)`
|
|
// Minimum execution time: 19_398_000 picoseconds.
|
|
Weight::from_parts(19_542_000, 15861)
|
|
// Standard Error: 71_395
|
|
.saturating_add(Weight::from_parts(5_630_062, 0).saturating_mul(m.into()))
|
|
// Standard Error: 71_395
|
|
.saturating_add(Weight::from_parts(8_634_133, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
|
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 1024]`.
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn execute(b: u32, m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `202 + m * (32 ±0)`
|
|
// Estimated: `1688 + m * (32 ±0)`
|
|
// Minimum execution time: 17_579_000 picoseconds.
|
|
Weight::from_parts(16_874_624, 1688)
|
|
// Standard Error: 34
|
|
.saturating_add(Weight::from_parts(1_617, 0).saturating_mul(b.into()))
|
|
// Standard Error: 353
|
|
.saturating_add(Weight::from_parts(19_759, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:0)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 1024]`.
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `202 + m * (32 ±0)`
|
|
// Estimated: `3668 + m * (32 ±0)`
|
|
// Minimum execution time: 20_339_000 picoseconds.
|
|
Weight::from_parts(19_534_549, 3668)
|
|
// Standard Error: 45
|
|
.saturating_add(Weight::from_parts(1_636, 0).saturating_mul(b.into()))
|
|
// Standard Error: 469
|
|
.saturating_add(Weight::from_parts(28_178, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalCount (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:0 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
|
|
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 27_793_000 picoseconds.
|
|
Weight::from_parts(28_095_462, 3884)
|
|
// Standard Error: 82
|
|
.saturating_add(Weight::from_parts(2_646, 0).saturating_mul(b.into()))
|
|
// Standard Error: 861
|
|
.saturating_add(Weight::from_parts(22_332, 0).saturating_mul(m.into()))
|
|
// Standard Error: 850
|
|
.saturating_add(Weight::from_parts(121_560, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[5, 100]`.
|
|
fn vote(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `941 + m * (64 ±0)`
|
|
// Estimated: `4405 + m * (64 ±0)`
|
|
// Minimum execution time: 23_096_000 picoseconds.
|
|
Weight::from_parts(23_793_304, 4405)
|
|
// Standard Error: 675
|
|
.saturating_add(Weight::from_parts(51_741, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
|
|
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 29_635_000 picoseconds.
|
|
Weight::from_parts(29_574_124, 3975)
|
|
// Standard Error: 755
|
|
.saturating_add(Weight::from_parts(29_126, 0).saturating_mul(m.into()))
|
|
// Standard Error: 737
|
|
.saturating_add(Weight::from_parts(123_438, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
|
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 41_934_000 picoseconds.
|
|
Weight::from_parts(44_022_379, 4149)
|
|
// Standard Error: 105
|
|
.saturating_add(Weight::from_parts(2_266, 0).saturating_mul(b.into()))
|
|
// Standard Error: 1_112
|
|
.saturating_add(Weight::from_parts(18_074, 0).saturating_mul(m.into()))
|
|
// Standard Error: 1_084
|
|
.saturating_add(Weight::from_parts(132_405, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
|
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Prime (r:1 w:0)
|
|
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[4, 100]`.
|
|
/// The range of component `p` is `[1, 100]`.
|
|
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
|
|
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 33_146_000 picoseconds.
|
|
Weight::from_parts(31_957_128, 3995)
|
|
// Standard Error: 2_321
|
|
.saturating_add(Weight::from_parts(31_272, 0).saturating_mul(m.into()))
|
|
// Standard Error: 2_264
|
|
.saturating_add(Weight::from_parts(156_129, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Prime (r:1 w:0)
|
|
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
|
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 44_278_000 picoseconds.
|
|
Weight::from_parts(46_039_907, 4169)
|
|
// Standard Error: 100
|
|
.saturating_add(Weight::from_parts(2_257, 0).saturating_mul(b.into()))
|
|
// Standard Error: 1_062
|
|
.saturating_add(Weight::from_parts(25_055, 0).saturating_mul(m.into()))
|
|
// Standard Error: 1_035
|
|
.saturating_add(Weight::from_parts(136_282, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
|
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:0 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `p` is `[1, 100]`.
|
|
fn disapprove_proposal(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `359 + p * (32 ±0)`
|
|
// Estimated: `1844 + p * (32 ±0)`
|
|
// Minimum execution time: 16_500_000 picoseconds.
|
|
Weight::from_parts(18_376_538, 1844)
|
|
// Standard Error: 755
|
|
.saturating_add(Weight::from_parts(113_189, 0).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
/// Storage: Council Members (r:1 w:1)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:0)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:100 w:100)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Prime (r:0 w:1)
|
|
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
|
|
// Estimated: `15861 + m * (1967 ±23) + p * (4332 ±23)`
|
|
// Minimum execution time: 19_398_000 picoseconds.
|
|
Weight::from_parts(19_542_000, 15861)
|
|
// Standard Error: 71_395
|
|
.saturating_add(Weight::from_parts(5_630_062, 0).saturating_mul(m.into()))
|
|
// Standard Error: 71_395
|
|
.saturating_add(Weight::from_parts(8_634_133, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
|
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 1024]`.
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn execute(b: u32, m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `202 + m * (32 ±0)`
|
|
// Estimated: `1688 + m * (32 ±0)`
|
|
// Minimum execution time: 17_579_000 picoseconds.
|
|
Weight::from_parts(16_874_624, 1688)
|
|
// Standard Error: 34
|
|
.saturating_add(Weight::from_parts(1_617, 0).saturating_mul(b.into()))
|
|
// Standard Error: 353
|
|
.saturating_add(Weight::from_parts(19_759, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:0)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 1024]`.
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `202 + m * (32 ±0)`
|
|
// Estimated: `3668 + m * (32 ±0)`
|
|
// Minimum execution time: 20_339_000 picoseconds.
|
|
Weight::from_parts(19_534_549, 3668)
|
|
// Standard Error: 45
|
|
.saturating_add(Weight::from_parts(1_636, 0).saturating_mul(b.into()))
|
|
// Standard Error: 469
|
|
.saturating_add(Weight::from_parts(28_178, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalCount (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:0 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
|
|
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 27_793_000 picoseconds.
|
|
Weight::from_parts(28_095_462, 3884)
|
|
// Standard Error: 82
|
|
.saturating_add(Weight::from_parts(2_646, 0).saturating_mul(b.into()))
|
|
// Standard Error: 861
|
|
.saturating_add(Weight::from_parts(22_332, 0).saturating_mul(m.into()))
|
|
// Standard Error: 850
|
|
.saturating_add(Weight::from_parts(121_560, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[5, 100]`.
|
|
fn vote(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `941 + m * (64 ±0)`
|
|
// Estimated: `4405 + m * (64 ±0)`
|
|
// Minimum execution time: 23_096_000 picoseconds.
|
|
Weight::from_parts(23_793_304, 4405)
|
|
// Standard Error: 675
|
|
.saturating_add(Weight::from_parts(51_741, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
|
|
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 29_635_000 picoseconds.
|
|
Weight::from_parts(29_574_124, 3975)
|
|
// Standard Error: 755
|
|
.saturating_add(Weight::from_parts(29_126, 0).saturating_mul(m.into()))
|
|
// Standard Error: 737
|
|
.saturating_add(Weight::from_parts(123_438, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
|
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 41_934_000 picoseconds.
|
|
Weight::from_parts(44_022_379, 4149)
|
|
// Standard Error: 105
|
|
.saturating_add(Weight::from_parts(2_266, 0).saturating_mul(b.into()))
|
|
// Standard Error: 1_112
|
|
.saturating_add(Weight::from_parts(18_074, 0).saturating_mul(m.into()))
|
|
// Standard Error: 1_084
|
|
.saturating_add(Weight::from_parts(132_405, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
|
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Prime (r:1 w:0)
|
|
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[4, 100]`.
|
|
/// The range of component `p` is `[1, 100]`.
|
|
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
|
|
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 33_146_000 picoseconds.
|
|
Weight::from_parts(31_957_128, 3995)
|
|
// Standard Error: 2_321
|
|
.saturating_add(Weight::from_parts(31_272, 0).saturating_mul(m.into()))
|
|
// Standard Error: 2_264
|
|
.saturating_add(Weight::from_parts(156_129, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Voting (r:1 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Members (r:1 w:0)
|
|
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Prime (r:1 w:0)
|
|
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `b` is `[2, 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 {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
|
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 44_278_000 picoseconds.
|
|
Weight::from_parts(46_039_907, 4169)
|
|
// Standard Error: 100
|
|
.saturating_add(Weight::from_parts(2_257, 0).saturating_mul(b.into()))
|
|
// Standard Error: 1_062
|
|
.saturating_add(Weight::from_parts(25_055, 0).saturating_mul(m.into()))
|
|
// Standard Error: 1_035
|
|
.saturating_add(Weight::from_parts(136_282, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
|
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: Council Proposals (r:1 w:1)
|
|
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: Council Voting (r:0 w:1)
|
|
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: Council ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// The range of component `p` is `[1, 100]`.
|
|
fn disapprove_proposal(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `359 + p * (32 ±0)`
|
|
// Estimated: `1844 + p * (32 ±0)`
|
|
// Minimum execution time: 16_500_000 picoseconds.
|
|
Weight::from_parts(18_376_538, 1844)
|
|
// Standard Error: 755
|
|
.saturating_add(Weight::from_parts(113_189, 0).saturating_mul(p.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
|
|
}
|
|
}
|