// 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-01-24, 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(PhantomData); impl WeightInfo for SubstrateWeight { /// 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 * (3233 ±0) + p * (3223 ±0)` // Estimated: `16586 + m * (7809 ±24) + p * (10238 ±24)` // Minimum execution time: 17_093 nanoseconds. Weight::from_parts(17_284_000, 16586) // Standard Error: 64_700 .saturating_add(Weight::from_ref_time(5_143_145).saturating_mul(m.into())) // Standard Error: 64_700 .saturating_add(Weight::from_ref_time(7_480_941).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_proof_size(7809).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(10238).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: `234 + m * (32 ±0)` // Estimated: `730 + m * (32 ±0)` // Minimum execution time: 15_972 nanoseconds. Weight::from_parts(14_971_445, 730) // Standard Error: 32 .saturating_add(Weight::from_ref_time(1_775).saturating_mul(b.into())) // Standard Error: 334 .saturating_add(Weight::from_ref_time(17_052).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(Weight::from_proof_size(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: `234 + m * (32 ±0)` // Estimated: `3440 + m * (64 ±0)` // Minimum execution time: 17_950 nanoseconds. Weight::from_parts(17_019_558, 3440) // Standard Error: 41 .saturating_add(Weight::from_ref_time(1_807).saturating_mul(b.into())) // Standard Error: 432 .saturating_add(Weight::from_ref_time(27_986).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(Weight::from_proof_size(64).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: `556 + m * (32 ±0) + p * (36 ±0)` // Estimated: `6355 + m * (165 ±0) + p * (180 ±0)` // Minimum execution time: 24_817 nanoseconds. Weight::from_parts(24_778_955, 6355) // Standard Error: 73 .saturating_add(Weight::from_ref_time(2_355).saturating_mul(b.into())) // Standard Error: 765 .saturating_add(Weight::from_ref_time(20_518).saturating_mul(m.into())) // Standard Error: 755 .saturating_add(Weight::from_ref_time(85_670).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) .saturating_add(Weight::from_proof_size(165).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(180).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: `1006 + m * (64 ±0)` // Estimated: `4980 + m * (128 ±0)` // Minimum execution time: 19_790 nanoseconds. Weight::from_parts(20_528_275, 4980) // Standard Error: 651 .saturating_add(Weight::from_ref_time(48_856).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2_u64)) .saturating_add(T::DbWeight::get().writes(1_u64)) .saturating_add(Weight::from_proof_size(128).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: `626 + m * (64 ±0) + p * (36 ±0)` // Estimated: `5893 + m * (260 ±0) + p * (144 ±0)` // Minimum execution time: 25_564 nanoseconds. Weight::from_parts(25_535_497, 5893) // Standard Error: 610 .saturating_add(Weight::from_ref_time(27_956).saturating_mul(m.into())) // Standard Error: 595 .saturating_add(Weight::from_ref_time(84_835).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(260).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(144).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: `962 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` // Estimated: `9164 + b * (4 ±0) + m * (264 ±0) + p * (160 ±0)` // Minimum execution time: 36_515 nanoseconds. Weight::from_parts(36_626_648, 9164) // Standard Error: 98 .saturating_add(Weight::from_ref_time(2_295).saturating_mul(b.into())) // Standard Error: 1_036 .saturating_add(Weight::from_ref_time(22_182).saturating_mul(m.into())) // Standard Error: 1_010 .saturating_add(Weight::from_ref_time(100_034).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(4).saturating_mul(b.into())) .saturating_add(Weight::from_proof_size(264).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(160).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: `646 + m * (64 ±0) + p * (36 ±0)` // Estimated: `7095 + m * (325 ±0) + p * (180 ±0)` // Minimum execution time: 28_858 nanoseconds. Weight::from_parts(28_050_047, 7095) // Standard Error: 614 .saturating_add(Weight::from_ref_time(34_031).saturating_mul(m.into())) // Standard Error: 599 .saturating_add(Weight::from_ref_time(85_744).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(325).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(180).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: `982 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` // Estimated: `10565 + b * (5 ±0) + m * (330 ±0) + p * (200 ±0)` // Minimum execution time: 38_608 nanoseconds. Weight::from_parts(39_948_329, 10565) // Standard Error: 84 .saturating_add(Weight::from_ref_time(2_045).saturating_mul(b.into())) // Standard Error: 895 .saturating_add(Weight::from_ref_time(22_669).saturating_mul(m.into())) // Standard Error: 872 .saturating_add(Weight::from_ref_time(95_525).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(5).saturating_mul(b.into())) .saturating_add(Weight::from_proof_size(330).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(200).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: `391 + p * (32 ±0)` // Estimated: `1668 + p * (96 ±0)` // Minimum execution time: 14_785 nanoseconds. Weight::from_parts(16_393_818, 1668) // Standard Error: 612 .saturating_add(Weight::from_ref_time(76_786).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(96).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 * (3233 ±0) + p * (3223 ±0)` // Estimated: `16586 + m * (7809 ±24) + p * (10238 ±24)` // Minimum execution time: 17_093 nanoseconds. Weight::from_parts(17_284_000, 16586) // Standard Error: 64_700 .saturating_add(Weight::from_ref_time(5_143_145).saturating_mul(m.into())) // Standard Error: 64_700 .saturating_add(Weight::from_ref_time(7_480_941).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_proof_size(7809).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(10238).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: `234 + m * (32 ±0)` // Estimated: `730 + m * (32 ±0)` // Minimum execution time: 15_972 nanoseconds. Weight::from_parts(14_971_445, 730) // Standard Error: 32 .saturating_add(Weight::from_ref_time(1_775).saturating_mul(b.into())) // Standard Error: 334 .saturating_add(Weight::from_ref_time(17_052).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(Weight::from_proof_size(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: `234 + m * (32 ±0)` // Estimated: `3440 + m * (64 ±0)` // Minimum execution time: 17_950 nanoseconds. Weight::from_parts(17_019_558, 3440) // Standard Error: 41 .saturating_add(Weight::from_ref_time(1_807).saturating_mul(b.into())) // Standard Error: 432 .saturating_add(Weight::from_ref_time(27_986).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(Weight::from_proof_size(64).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: `556 + m * (32 ±0) + p * (36 ±0)` // Estimated: `6355 + m * (165 ±0) + p * (180 ±0)` // Minimum execution time: 24_817 nanoseconds. Weight::from_parts(24_778_955, 6355) // Standard Error: 73 .saturating_add(Weight::from_ref_time(2_355).saturating_mul(b.into())) // Standard Error: 765 .saturating_add(Weight::from_ref_time(20_518).saturating_mul(m.into())) // Standard Error: 755 .saturating_add(Weight::from_ref_time(85_670).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) .saturating_add(Weight::from_proof_size(165).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(180).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: `1006 + m * (64 ±0)` // Estimated: `4980 + m * (128 ±0)` // Minimum execution time: 19_790 nanoseconds. Weight::from_parts(20_528_275, 4980) // Standard Error: 651 .saturating_add(Weight::from_ref_time(48_856).saturating_mul(m.into())) .saturating_add(RocksDbWeight::get().reads(2_u64)) .saturating_add(RocksDbWeight::get().writes(1_u64)) .saturating_add(Weight::from_proof_size(128).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: `626 + m * (64 ±0) + p * (36 ±0)` // Estimated: `5893 + m * (260 ±0) + p * (144 ±0)` // Minimum execution time: 25_564 nanoseconds. Weight::from_parts(25_535_497, 5893) // Standard Error: 610 .saturating_add(Weight::from_ref_time(27_956).saturating_mul(m.into())) // Standard Error: 595 .saturating_add(Weight::from_ref_time(84_835).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(3_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(260).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(144).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: `962 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` // Estimated: `9164 + b * (4 ±0) + m * (264 ±0) + p * (160 ±0)` // Minimum execution time: 36_515 nanoseconds. Weight::from_parts(36_626_648, 9164) // Standard Error: 98 .saturating_add(Weight::from_ref_time(2_295).saturating_mul(b.into())) // Standard Error: 1_036 .saturating_add(Weight::from_ref_time(22_182).saturating_mul(m.into())) // Standard Error: 1_010 .saturating_add(Weight::from_ref_time(100_034).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(4).saturating_mul(b.into())) .saturating_add(Weight::from_proof_size(264).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(160).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: `646 + m * (64 ±0) + p * (36 ±0)` // Estimated: `7095 + m * (325 ±0) + p * (180 ±0)` // Minimum execution time: 28_858 nanoseconds. Weight::from_parts(28_050_047, 7095) // Standard Error: 614 .saturating_add(Weight::from_ref_time(34_031).saturating_mul(m.into())) // Standard Error: 599 .saturating_add(Weight::from_ref_time(85_744).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(325).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(180).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: `982 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)` // Estimated: `10565 + b * (5 ±0) + m * (330 ±0) + p * (200 ±0)` // Minimum execution time: 38_608 nanoseconds. Weight::from_parts(39_948_329, 10565) // Standard Error: 84 .saturating_add(Weight::from_ref_time(2_045).saturating_mul(b.into())) // Standard Error: 895 .saturating_add(Weight::from_ref_time(22_669).saturating_mul(m.into())) // Standard Error: 872 .saturating_add(Weight::from_ref_time(95_525).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(5).saturating_mul(b.into())) .saturating_add(Weight::from_proof_size(330).saturating_mul(m.into())) .saturating_add(Weight::from_proof_size(200).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: `391 + p * (32 ±0)` // Estimated: `1668 + p * (96 ±0)` // Minimum execution time: 14_785 nanoseconds. Weight::from_parts(16_393_818, 1668) // Standard Error: 612 .saturating_add(Weight::from_ref_time(76_786).saturating_mul(p.into())) .saturating_add(RocksDbWeight::get().reads(1_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) .saturating_add(Weight::from_proof_size(96).saturating_mul(p.into())) } }