mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-28 14:27:57 +00:00
9e56e1acdd
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Adapt to Master changes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
362 lines
19 KiB
Rust
362 lines
19 KiB
Rust
// 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_membership
|
|
//!
|
|
//! 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_membership
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --output=./frame/membership/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_membership.
|
|
pub trait WeightInfo {
|
|
fn add_member(m: u32, ) -> Weight;
|
|
fn remove_member(m: u32, ) -> Weight;
|
|
fn swap_member(m: u32, ) -> Weight;
|
|
fn reset_member(m: u32, ) -> Weight;
|
|
fn change_key(m: u32, ) -> Weight;
|
|
fn set_prime(m: u32, ) -> Weight;
|
|
fn clear_prime(m: u32, ) -> Weight;
|
|
}
|
|
|
|
/// Weights for pallet_membership using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 99]`.
|
|
fn add_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `238 + m * (64 ±0)`
|
|
// Estimated: `4903 + m * (192 ±0)`
|
|
// Minimum execution time: 15_673 nanoseconds.
|
|
Weight::from_parts(16_830_288, 4903)
|
|
// Standard Error: 570
|
|
.saturating_add(Weight::from_parts(41_959, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[2, 100]`.
|
|
fn remove_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 18_231 nanoseconds.
|
|
Weight::from_parts(19_081_297, 5742)
|
|
// Standard Error: 571
|
|
.saturating_add(Weight::from_parts(41_331, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[2, 100]`.
|
|
fn swap_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 18_517 nanoseconds.
|
|
Weight::from_parts(19_388_310, 5742)
|
|
// Standard Error: 625
|
|
.saturating_add(Weight::from_parts(51_422, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn reset_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 17_628 nanoseconds.
|
|
Weight::from_parts(19_258_882, 5742)
|
|
// Standard Error: 820
|
|
.saturating_add(Weight::from_parts(153_956, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:1)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn change_key(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 19_031 nanoseconds.
|
|
Weight::from_parts(20_264_948, 5742)
|
|
// Standard Error: 707
|
|
.saturating_add(Weight::from_parts(51_060, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:0)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn set_prime(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `64 + m * (32 ±0)`
|
|
// Estimated: `3761 + m * (32 ±0)`
|
|
// Minimum execution time: 6_897 nanoseconds.
|
|
Weight::from_parts(7_455_387, 3761)
|
|
// Standard Error: 326
|
|
.saturating_add(Weight::from_parts(16_653, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn clear_prime(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_400 nanoseconds.
|
|
Weight::from_parts(3_703_421, 0)
|
|
// Standard Error: 119
|
|
.saturating_add(Weight::from_parts(915, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests
|
|
impl WeightInfo for () {
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 99]`.
|
|
fn add_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `238 + m * (64 ±0)`
|
|
// Estimated: `4903 + m * (192 ±0)`
|
|
// Minimum execution time: 15_673 nanoseconds.
|
|
Weight::from_parts(16_830_288, 4903)
|
|
// Standard Error: 570
|
|
.saturating_add(Weight::from_parts(41_959, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[2, 100]`.
|
|
fn remove_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 18_231 nanoseconds.
|
|
Weight::from_parts(19_081_297, 5742)
|
|
// Standard Error: 571
|
|
.saturating_add(Weight::from_parts(41_331, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[2, 100]`.
|
|
fn swap_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 18_517 nanoseconds.
|
|
Weight::from_parts(19_388_310, 5742)
|
|
// Standard Error: 625
|
|
.saturating_add(Weight::from_parts(51_422, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn reset_member(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 17_628 nanoseconds.
|
|
Weight::from_parts(19_258_882, 5742)
|
|
// Standard Error: 820
|
|
.saturating_add(Weight::from_parts(153_956, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:1)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalMembership Prime (r:1 w:1)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn change_key(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `342 + m * (64 ±0)`
|
|
// Estimated: `5742 + m * (192 ±0)`
|
|
// Minimum execution time: 19_031 nanoseconds.
|
|
Weight::from_parts(20_264_948, 5742)
|
|
// Standard Error: 707
|
|
.saturating_add(Weight::from_parts(51_060, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
.saturating_add(Weight::from_parts(0, 192).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Members (r:1 w:0)
|
|
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn set_prime(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `64 + m * (32 ±0)`
|
|
// Estimated: `3761 + m * (32 ±0)`
|
|
// Minimum execution time: 6_897 nanoseconds.
|
|
Weight::from_parts(7_455_387, 3761)
|
|
// Standard Error: 326
|
|
.saturating_add(Weight::from_parts(16_653, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
|
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn clear_prime(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_400 nanoseconds.
|
|
Weight::from_parts(3_703_421, 0)
|
|
// Standard Error: 119
|
|
.saturating_add(Weight::from_parts(915, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
}
|