mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 17:41:01 +00:00
Add Proof Size to Weight Output (#11637)
* initial impl * add template test * linear fit proof size * always record proof when tracking storage * calculate worst case pov * remove duplicate worst case * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * more comment output * add cli for worst case map size * update name * clap does not support underscores * rename * expose worst case map values * improve some comments * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * update template * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fix fmt * more fmt * more fmt * Dont panic when there is no proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Whitelist :extrinsic_index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use whitelist when recording proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add logs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Deploy PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Storage benches reside in the PoV pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Linear regress PoV per component Splits the PoV calculation into "measured" and "estimated". The measured part is reported by the Proof recorder and linear regressed over all components at once. The estimated part is calculated as worst-case by using the max PoV size per storage access and calculating one linear regress per component. This gives each component a (possibly) independent PoV. For now the measured size will always be lower than the PoV on Polkadot since it is measured on an empty snapshot. The measured part is therefor only used as diagnostic for debugging. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Put PoV into the weight templates Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Extra alanysis choise for PoV Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add+Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make benches faster Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Cleanup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use same template comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_balances * ".git/.scripts/bench-bot.sh" pallet dev pallet_democracy * Update referenda mock BlockWeights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Take measured value size into account Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_scheduler * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * proof_size: None Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ugly, but works Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * wup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add pov_mode attribute to the benchmarks! macro Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use pov_mode attribute in PoV benchmarking Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Scheduler, Whitelist: Add pov_mode attr Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update PoV weights * Add CLI arg: default-pov-mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Update PoV weights" This reverts commit 2f3ac2387396470b118122a6ff8fa4ee12216f4b. * Revert "WIP" This reverts commit c34b538cd2bc45da4544e887180184e30957904a. * Revert first approach This reverts commit range 8ddaa2fffe5930f225a30bee314d0b7c94c344dd^..4c84f8748e5395852a9e0e25b0404953fee1a59e Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add extra benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_alliance * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_whitelist * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_scheduler * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy 🤦 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add reference benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix doc comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Undo logging Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add 'Ignored' pov_mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Allow multiple attributes per benchmark Turns out that the current benchmarking syntax does not support multiple attributes per bench 🤦. Changing it to support that since otherwise the `pov_mode` would conflict with the others. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Validate pov_mode syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Ignore PoV for all contract benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Bump macro recursion limit Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights They dont have a PoV component anymore. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix test ffs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * pov_mode is unsupported in V2 syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update pallet ui Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update weights 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: Parity Bot <admin@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Your Name <you@example.com>
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_bags_list
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -55,70 +56,114 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_bags_list using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: VoterList ListNodes (r:4 w:4)
|
||||
// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:4 w:4)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
||||
fn rebag_non_terminal() -> Weight {
|
||||
// Minimum execution time: 73_553 nanoseconds.
|
||||
Weight::from_ref_time(74_366_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1916`
|
||||
// Estimated: `19186`
|
||||
// Minimum execution time: 54_348 nanoseconds.
|
||||
Weight::from_parts(55_024_000, 19186)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: VoterList ListNodes (r:3 w:3)
|
||||
// Storage: VoterList ListBags (r:2 w:2)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:3 w:3)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:2 w:2)
|
||||
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
||||
fn rebag_terminal() -> Weight {
|
||||
// Minimum execution time: 72_700 nanoseconds.
|
||||
Weight::from_ref_time(73_322_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1810`
|
||||
// Estimated: `19114`
|
||||
// Minimum execution time: 53_306 nanoseconds.
|
||||
Weight::from_parts(54_263_000, 19114)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: VoterList ListNodes (r:4 w:4)
|
||||
// Storage: Staking Bonded (r:2 w:0)
|
||||
// Storage: Staking Ledger (r:2 w:0)
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Storage: VoterList ListNodes (r:4 w:4)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Bonded (r:2 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:2 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
||||
fn put_in_front_of() -> Weight {
|
||||
// Minimum execution time: 71_691 nanoseconds.
|
||||
Weight::from_ref_time(72_798_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(10 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2154`
|
||||
// Estimated: `25798`
|
||||
// Minimum execution time: 59_513 nanoseconds.
|
||||
Weight::from_parts(60_717_000, 25798)
|
||||
.saturating_add(T::DbWeight::get().reads(10_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: VoterList ListNodes (r:4 w:4)
|
||||
// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:4 w:4)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
||||
fn rebag_non_terminal() -> Weight {
|
||||
// Minimum execution time: 73_553 nanoseconds.
|
||||
Weight::from_ref_time(74_366_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1916`
|
||||
// Estimated: `19186`
|
||||
// Minimum execution time: 54_348 nanoseconds.
|
||||
Weight::from_parts(55_024_000, 19186)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: VoterList ListNodes (r:3 w:3)
|
||||
// Storage: VoterList ListBags (r:2 w:2)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:3 w:3)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:2 w:2)
|
||||
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
||||
fn rebag_terminal() -> Weight {
|
||||
// Minimum execution time: 72_700 nanoseconds.
|
||||
Weight::from_ref_time(73_322_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1810`
|
||||
// Estimated: `19114`
|
||||
// Minimum execution time: 53_306 nanoseconds.
|
||||
Weight::from_parts(54_263_000, 19114)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: VoterList ListNodes (r:4 w:4)
|
||||
// Storage: Staking Bonded (r:2 w:0)
|
||||
// Storage: Staking Ledger (r:2 w:0)
|
||||
// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Storage: VoterList ListNodes (r:4 w:4)
|
||||
/// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Bonded (r:2 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:2 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListBags (r:1 w:1)
|
||||
/// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
|
||||
fn put_in_front_of() -> Weight {
|
||||
// Minimum execution time: 71_691 nanoseconds.
|
||||
Weight::from_ref_time(72_798_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(10 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2154`
|
||||
// Estimated: `25798`
|
||||
// Minimum execution time: 59_513 nanoseconds.
|
||||
Weight::from_parts(60_717_000, 25798)
|
||||
.saturating_add(RocksDbWeight::get().reads(10_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_balances
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -59,106 +60,162 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_balances using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer() -> Weight {
|
||||
// Minimum execution time: 48_134 nanoseconds.
|
||||
Weight::from_ref_time(48_811_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1723`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 47_557 nanoseconds.
|
||||
Weight::from_parts(48_314_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
// Minimum execution time: 36_586 nanoseconds.
|
||||
Weight::from_ref_time(36_966_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1607`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 36_372 nanoseconds.
|
||||
Weight::from_parts(37_432_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn set_balance_creating() -> Weight {
|
||||
// Minimum execution time: 28_486 nanoseconds.
|
||||
Weight::from_ref_time(28_940_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1757`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 26_671 nanoseconds.
|
||||
Weight::from_parts(28_287_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn set_balance_killing() -> Weight {
|
||||
// Minimum execution time: 31_225 nanoseconds.
|
||||
Weight::from_ref_time(31_946_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1757`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 30_122 nanoseconds.
|
||||
Weight::from_parts(30_615_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:2 w:2)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn force_transfer() -> Weight {
|
||||
// Minimum execution time: 47_347 nanoseconds.
|
||||
Weight::from_ref_time(48_005_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1719`
|
||||
// Estimated: `5206`
|
||||
// Minimum execution time: 47_891 nanoseconds.
|
||||
Weight::from_parts(48_496_000, 5206)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer_all() -> Weight {
|
||||
// Minimum execution time: 41_668 nanoseconds.
|
||||
Weight::from_ref_time(42_232_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1607`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 42_470 nanoseconds.
|
||||
Weight::from_parts(42_950_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn force_unreserve() -> Weight {
|
||||
// Minimum execution time: 23_741 nanoseconds.
|
||||
Weight::from_ref_time(24_073_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1641`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 23_230 nanoseconds.
|
||||
Weight::from_parts(23_951_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer() -> Weight {
|
||||
// Minimum execution time: 48_134 nanoseconds.
|
||||
Weight::from_ref_time(48_811_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1723`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 47_557 nanoseconds.
|
||||
Weight::from_parts(48_314_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
// Minimum execution time: 36_586 nanoseconds.
|
||||
Weight::from_ref_time(36_966_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1607`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 36_372 nanoseconds.
|
||||
Weight::from_parts(37_432_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn set_balance_creating() -> Weight {
|
||||
// Minimum execution time: 28_486 nanoseconds.
|
||||
Weight::from_ref_time(28_940_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1757`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 26_671 nanoseconds.
|
||||
Weight::from_parts(28_287_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn set_balance_killing() -> Weight {
|
||||
// Minimum execution time: 31_225 nanoseconds.
|
||||
Weight::from_ref_time(31_946_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1757`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 30_122 nanoseconds.
|
||||
Weight::from_parts(30_615_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:2 w:2)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn force_transfer() -> Weight {
|
||||
// Minimum execution time: 47_347 nanoseconds.
|
||||
Weight::from_ref_time(48_005_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1719`
|
||||
// Estimated: `5206`
|
||||
// Minimum execution time: 47_891 nanoseconds.
|
||||
Weight::from_parts(48_496_000, 5206)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer_all() -> Weight {
|
||||
// Minimum execution time: 41_668 nanoseconds.
|
||||
Weight::from_ref_time(42_232_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1607`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 42_470 nanoseconds.
|
||||
Weight::from_parts(42_950_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn force_unreserve() -> Weight {
|
||||
// Minimum execution time: 23_741 nanoseconds.
|
||||
Weight::from_ref_time(24_073_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1641`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 23_230 nanoseconds.
|
||||
Weight::from_parts(23_951_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,4 +56,5 @@ std = [
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-system/runtime-benchmarks",
|
||||
"frame-support/runtime-benchmarks",
|
||||
]
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
[package]
|
||||
name = "frame-benchmarking-pallet-pov"
|
||||
version = "4.0.0-dev"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
description = "Pallet for testing FRAME PoV benchmarking"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false }
|
||||
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
|
||||
frame-benchmarking = { version = "4.0.0-dev", default-features = false, path = "../" }
|
||||
frame-support = { version = "4.0.0-dev", default-features = false, path = "../../support" }
|
||||
frame-system = { version = "4.0.0-dev", default-features = false, path = "../../system" }
|
||||
sp-io = { version = "7.0.0", default-features = false, path = "../../../primitives/io" }
|
||||
sp-runtime = { version = "7.0.0", default-features = false, path = "../../../primitives/runtime" }
|
||||
sp-std = { version = "5.0.0", default-features = false, path = "../../../primitives/std" }
|
||||
|
||||
[features]
|
||||
default = ["std"]
|
||||
std = [
|
||||
"codec/std",
|
||||
"frame-benchmarking/std",
|
||||
"frame-support/std",
|
||||
"frame-system/std",
|
||||
"scale-info/std",
|
||||
"sp-io/std",
|
||||
"sp-runtime/std",
|
||||
"sp-std/std",
|
||||
]
|
||||
runtime-benchmarks = [
|
||||
"frame-system/runtime-benchmarks",
|
||||
"frame-benchmarking/runtime-benchmarks",
|
||||
]
|
||||
try-runtime = [
|
||||
"frame-support/try-runtime",
|
||||
"frame-system/try-runtime",
|
||||
]
|
||||
@@ -0,0 +1,371 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 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.
|
||||
|
||||
//! All benchmarks in this file are just for debugging the PoV calculation logic, they are unused.
|
||||
|
||||
#![cfg(feature = "runtime-benchmarks")]
|
||||
|
||||
use super::*;
|
||||
|
||||
use frame_support::traits::UnfilteredDispatchable;
|
||||
use frame_system::{Pallet as System, RawOrigin};
|
||||
use sp_runtime::traits::Hash;
|
||||
|
||||
frame_benchmarking::benchmarks! {
|
||||
storage_single_value_read {
|
||||
Value::<T>::put(123);
|
||||
}: {
|
||||
assert_eq!(Value::<T>::get(), Some(123));
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
storage_single_value_ignored_read {
|
||||
Value::<T>::put(123);
|
||||
}: {
|
||||
assert_eq!(Value::<T>::get(), Some(123));
|
||||
}
|
||||
|
||||
storage_single_value_read_twice {
|
||||
Value::<T>::put(123);
|
||||
}: {
|
||||
assert_eq!(Value::<T>::get(), Some(123));
|
||||
assert_eq!(Value::<T>::get(), Some(123));
|
||||
}
|
||||
|
||||
storage_single_value_write {
|
||||
}: {
|
||||
Value::<T>::put(123);
|
||||
} verify {
|
||||
assert_eq!(Value::<T>::get(), Some(123));
|
||||
}
|
||||
|
||||
storage_single_value_kill {
|
||||
Value::<T>::put(123);
|
||||
}: {
|
||||
Value::<T>::kill();
|
||||
} verify {
|
||||
assert!(!Value::<T>::exists());
|
||||
}
|
||||
|
||||
// This benchmark and the following are testing a storage map with adjacent storage items.
|
||||
//
|
||||
// First a storage map is filled and a specific number of other storage items is
|
||||
// created. Then the one value is read from the map. This demonstrates that the number of other
|
||||
// nodes in the Trie influences the proof size. The number of inserted nodes can be interpreted
|
||||
// as the number of `StorageMap`/`StorageValue` in the whole runtime.
|
||||
#[pov_mode = Measured]
|
||||
storage_1m_map_read_one_value_two_additional_layers {
|
||||
(0..(1<<10)).for_each(|i| Map1M::<T>::insert(i, i));
|
||||
// Assume there are 16-256 other storage items.
|
||||
(0..(1u32<<4)).for_each(|i| {
|
||||
let k = T::Hashing::hash(&i.to_be_bytes());
|
||||
frame_support::storage::unhashed::put(k.as_ref(), &i);
|
||||
});
|
||||
}: {
|
||||
assert_eq!(Map1M::<T>::get(1<<9), Some(1<<9));
|
||||
}
|
||||
|
||||
#[pov_mode = Measured]
|
||||
storage_1m_map_read_one_value_three_additional_layers {
|
||||
(0..(1<<10)).for_each(|i| Map1M::<T>::insert(i, i));
|
||||
// Assume there are 256-4096 other storage items.
|
||||
(0..(1u32<<8)).for_each(|i| {
|
||||
let k = T::Hashing::hash(&i.to_be_bytes());
|
||||
frame_support::storage::unhashed::put(k.as_ref(), &i);
|
||||
});
|
||||
}: {
|
||||
assert_eq!(Map1M::<T>::get(1<<9), Some(1<<9));
|
||||
}
|
||||
|
||||
#[pov_mode = Measured]
|
||||
storage_1m_map_read_one_value_four_additional_layers {
|
||||
(0..(1<<10)).for_each(|i| Map1M::<T>::insert(i, i));
|
||||
// Assume there are 4096-65536 other storage items.
|
||||
(0..(1u32<<12)).for_each(|i| {
|
||||
let k = T::Hashing::hash(&i.to_be_bytes());
|
||||
frame_support::storage::unhashed::put(k.as_ref(), &i);
|
||||
});
|
||||
}: {
|
||||
assert_eq!(Map1M::<T>::get(1<<9), Some(1<<9));
|
||||
}
|
||||
|
||||
// Reads from both storage maps each `n` and `m` times. Should result in two linear components.
|
||||
storage_map_read_per_component {
|
||||
let n in 0 .. 100;
|
||||
let m in 0 .. 100;
|
||||
|
||||
(0..m*10).for_each(|i| Map1M::<T>::insert(i, i));
|
||||
(0..n*10).for_each(|i| Map16M::<T>::insert(i, i));
|
||||
}: {
|
||||
(0..m).for_each(|i|
|
||||
assert_eq!(Map1M::<T>::get(i*10), Some(i*10)));
|
||||
(0..n).for_each(|i|
|
||||
assert_eq!(Map16M::<T>::get(i*10), Some(i*10)));
|
||||
}
|
||||
|
||||
#[pov_mode = MaxEncodedLen {
|
||||
Pov::Map1M: Ignored
|
||||
}]
|
||||
storage_map_read_per_component_one_ignored {
|
||||
let n in 0 .. 100;
|
||||
let m in 0 .. 100;
|
||||
|
||||
(0..m*10).for_each(|i| Map1M::<T>::insert(i, i));
|
||||
(0..n*10).for_each(|i| Map16M::<T>::insert(i, i));
|
||||
}: {
|
||||
(0..m).for_each(|i|
|
||||
assert_eq!(Map1M::<T>::get(i*10), Some(i*10)));
|
||||
(0..n).for_each(|i|
|
||||
assert_eq!(Map16M::<T>::get(i*10), Some(i*10)));
|
||||
}
|
||||
|
||||
// Reads the same value from a storage map. Should not result in a component.
|
||||
storage_1m_map_one_entry_repeated_read {
|
||||
let n in 0 .. 100;
|
||||
Map1M::<T>::insert(0, 0);
|
||||
}: {
|
||||
(0..n).for_each(|i|
|
||||
assert_eq!(Map1M::<T>::get(0), Some(0)));
|
||||
}
|
||||
|
||||
// Reads the same values from a storage map. Should result in a `1x` linear component.
|
||||
storage_1m_map_multiple_entry_repeated_read {
|
||||
let n in 0 .. 100;
|
||||
(0..n).for_each(|i| Map1M::<T>::insert(i, i));
|
||||
}: {
|
||||
(0..n).for_each(|i| {
|
||||
// Reading the same value 10 times does nothing.
|
||||
(0..10).for_each(|j|
|
||||
assert_eq!(Map1M::<T>::get(i), Some(i)));
|
||||
});
|
||||
}
|
||||
|
||||
storage_1m_double_map_read_per_component {
|
||||
let n in 0 .. 1024;
|
||||
(0..(1<<10)).for_each(|i| DoubleMap1M::<T>::insert(i, i, i));
|
||||
}: {
|
||||
(0..n).for_each(|i|
|
||||
assert_eq!(DoubleMap1M::<T>::get(i, i), Some(i)));
|
||||
}
|
||||
|
||||
storage_value_bounded_read {
|
||||
}: {
|
||||
assert!(BoundedValue::<T>::get().is_none());
|
||||
}
|
||||
|
||||
// Reading unbounded values will produce no mathematical worst case PoV size for this component.
|
||||
storage_value_unbounded_read {
|
||||
}: {
|
||||
assert!(UnboundedValue::<T>::get().is_none());
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
storage_value_unbounded_ignored_read {
|
||||
}: {
|
||||
assert!(UnboundedValue::<T>::get().is_none());
|
||||
}
|
||||
|
||||
// Same as above, but we still expect a mathematical worst case PoV size for the bounded one.
|
||||
storage_value_bounded_and_unbounded_read {
|
||||
}: {
|
||||
assert!(UnboundedValue::<T>::get().is_none());
|
||||
assert!(BoundedValue::<T>::get().is_none());
|
||||
}
|
||||
|
||||
#[pov_mode = Measured]
|
||||
measured_storage_value_read_linear_size {
|
||||
let l in 0 .. 1<<22;
|
||||
let v: sp_runtime::BoundedVec<u8, _> = sp_std::vec![0u8; l as usize].try_into().unwrap();
|
||||
LargeValue::<T>::put(&v);
|
||||
}: {
|
||||
assert!(LargeValue::<T>::get().is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = MaxEncodedLen]
|
||||
mel_storage_value_read_linear_size {
|
||||
let l in 0 .. 1<<22;
|
||||
let v: sp_runtime::BoundedVec<u8, _> = sp_std::vec![0u8; l as usize].try_into().unwrap();
|
||||
LargeValue::<T>::put(&v);
|
||||
}: {
|
||||
assert!(LargeValue::<T>::get().is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = Measured]
|
||||
measured_storage_double_value_read_linear_size {
|
||||
let l in 0 .. 1<<22;
|
||||
let v: sp_runtime::BoundedVec<u8, _> = sp_std::vec![0u8; l as usize].try_into().unwrap();
|
||||
LargeValue::<T>::put(&v);
|
||||
LargeValue2::<T>::put(&v);
|
||||
}: {
|
||||
assert!(LargeValue::<T>::get().is_some());
|
||||
assert!(LargeValue2::<T>::get().is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = MaxEncodedLen]
|
||||
mel_storage_double_value_read_linear_size {
|
||||
let l in 0 .. 1<<22;
|
||||
let v: sp_runtime::BoundedVec<u8, _> = sp_std::vec![0u8; l as usize].try_into().unwrap();
|
||||
LargeValue::<T>::put(&v);
|
||||
LargeValue2::<T>::put(&v);
|
||||
}: {
|
||||
assert!(LargeValue::<T>::get().is_some());
|
||||
assert!(LargeValue2::<T>::get().is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = MaxEncodedLen {
|
||||
Pov::LargeValue2: Measured
|
||||
}]
|
||||
mel_mixed_storage_double_value_read_linear_size {
|
||||
let l in 0 .. 1<<22;
|
||||
let v: sp_runtime::BoundedVec<u8, _> = sp_std::vec![0u8; l as usize].try_into().unwrap();
|
||||
LargeValue::<T>::put(&v);
|
||||
LargeValue2::<T>::put(&v);
|
||||
}: {
|
||||
assert!(LargeValue::<T>::get().is_some());
|
||||
assert!(LargeValue2::<T>::get().is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = Measured {
|
||||
Pov::LargeValue2: MaxEncodedLen
|
||||
}]
|
||||
measured_mixed_storage_double_value_read_linear_size {
|
||||
let l in 0 .. 1<<22;
|
||||
let v: sp_runtime::BoundedVec<u8, _> = sp_std::vec![0u8; l as usize].try_into().unwrap();
|
||||
LargeValue::<T>::put(&v);
|
||||
LargeValue2::<T>::put(&v);
|
||||
}: {
|
||||
assert!(LargeValue::<T>::get().is_some());
|
||||
assert!(LargeValue2::<T>::get().is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = Measured]
|
||||
storage_map_unbounded_both_measured_read {
|
||||
let i in 0 .. 1000;
|
||||
|
||||
UnboundedMap::<T>::insert(i, sp_std::vec![0; i as usize]);
|
||||
UnboundedMap2::<T>::insert(i, sp_std::vec![0; i as usize]);
|
||||
}: {
|
||||
assert!(UnboundedMap::<T>::get(i).is_some());
|
||||
assert!(UnboundedMap2::<T>::get(i).is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = MaxEncodedLen {
|
||||
Pov::UnboundedMap: Measured
|
||||
}]
|
||||
storage_map_partial_unbounded_read {
|
||||
let i in 0 .. 1000;
|
||||
|
||||
Map1M::<T>::insert(i, 0);
|
||||
UnboundedMap::<T>::insert(i, sp_std::vec![0; i as usize]);
|
||||
}: {
|
||||
assert!(Map1M::<T>::get(i).is_some());
|
||||
assert!(UnboundedMap::<T>::get(i).is_some());
|
||||
}
|
||||
|
||||
#[pov_mode = MaxEncodedLen {
|
||||
Pov::UnboundedMap: Ignored
|
||||
}]
|
||||
storage_map_partial_unbounded_ignored_read {
|
||||
let i in 0 .. 1000;
|
||||
|
||||
Map1M::<T>::insert(i, 0);
|
||||
UnboundedMap::<T>::insert(i, sp_std::vec![0; i as usize]);
|
||||
}: {
|
||||
assert!(Map1M::<T>::get(i).is_some());
|
||||
assert!(UnboundedMap::<T>::get(i).is_some());
|
||||
}
|
||||
|
||||
// Emitting an event will not incur any PoV.
|
||||
emit_event {
|
||||
// Emit a single event.
|
||||
let call = Call::<T>::emit_event { };
|
||||
}: { call.dispatch_bypass_filter(RawOrigin::Root.into()).unwrap(); }
|
||||
verify {
|
||||
assert_eq!(System::<T>::events().len(), 1);
|
||||
}
|
||||
|
||||
// A No-OP will not incur any PoV.
|
||||
noop {
|
||||
let call = Call::<T>::noop { };
|
||||
}: {
|
||||
call.dispatch_bypass_filter(RawOrigin::Root.into()).unwrap();
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite!(
|
||||
Pallet,
|
||||
mock::new_test_ext(),
|
||||
mock::Test,
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod mock {
|
||||
use sp_runtime::testing::H256;
|
||||
|
||||
type AccountId = u64;
|
||||
type AccountIndex = u32;
|
||||
type BlockNumber = u64;
|
||||
|
||||
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test where
|
||||
Block = Block,
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Baseline: crate::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
impl frame_system::Config for Test {
|
||||
type BaseCallFilter = frame_support::traits::Everything;
|
||||
type BlockWeights = ();
|
||||
type BlockLength = ();
|
||||
type DbWeight = ();
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
type Index = AccountIndex;
|
||||
type BlockNumber = BlockNumber;
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type Hash = H256;
|
||||
type Hashing = ::sp_runtime::traits::BlakeTwo256;
|
||||
type AccountId = AccountId;
|
||||
type Lookup = sp_runtime::traits::IdentityLookup<Self::AccountId>;
|
||||
type Header = sp_runtime::testing::Header;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type BlockHashCount = ();
|
||||
type Version = ();
|
||||
type PalletInfo = PalletInfo;
|
||||
type AccountData = ();
|
||||
type OnNewAccount = ();
|
||||
type OnKilledAccount = ();
|
||||
type SystemWeightInfo = ();
|
||||
type SS58Prefix = ();
|
||||
type OnSetCode = ();
|
||||
type MaxConsumers = frame_support::traits::ConstU32<16>;
|
||||
}
|
||||
|
||||
impl crate::Config for Test {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
}
|
||||
|
||||
pub fn new_test_ext() -> sp_io::TestExternalities {
|
||||
frame_system::GenesisConfig::default().build_storage::<Test>().unwrap().into()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2020-2022 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.
|
||||
|
||||
//! End-to-end testing pallet for PoV benchmarking. Should only be deployed in a testing runtime.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
mod benchmarking;
|
||||
mod tests;
|
||||
mod weights;
|
||||
|
||||
pub use pallet::*;
|
||||
|
||||
#[frame_support::pallet]
|
||||
pub mod pallet {
|
||||
use frame_support::pallet_prelude::*;
|
||||
use frame_system::pallet_prelude::*;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
#[pallet::pallet]
|
||||
#[pallet::generate_store(pub(super) trait Store)]
|
||||
pub struct Pallet<T>(PhantomData<T>);
|
||||
|
||||
#[pallet::config]
|
||||
pub trait Config: frame_system::Config {
|
||||
type RuntimeEvent: From<Event<Self>> + IsType<<Self as frame_system::Config>::RuntimeEvent>;
|
||||
}
|
||||
|
||||
#[pallet::storage]
|
||||
pub(crate) type Value<T: Config> = StorageValue<Value = u32, QueryKind = OptionQuery>;
|
||||
|
||||
#[pallet::storage]
|
||||
pub(crate) type Value2<T: Config> = StorageValue<Value = u32, QueryKind = OptionQuery>;
|
||||
|
||||
/// A value without a MEL bound.
|
||||
#[pallet::storage]
|
||||
#[pallet::unbounded]
|
||||
pub(crate) type UnboundedValue<T: Config> =
|
||||
StorageValue<Value = Vec<u8>, QueryKind = OptionQuery>;
|
||||
|
||||
/// A value with a MEL bound of 32 byte.
|
||||
#[pallet::storage]
|
||||
pub(crate) type BoundedValue<T: Config> =
|
||||
StorageValue<Value = BoundedVec<u8, ConstU32<32>>, QueryKind = OptionQuery>;
|
||||
|
||||
/// 4MiB value.
|
||||
#[pallet::storage]
|
||||
pub(crate) type LargeValue<T: Config> =
|
||||
StorageValue<Value = BoundedVec<u8, ConstU32<{ 1 << 22 }>>, QueryKind = OptionQuery>;
|
||||
|
||||
#[pallet::storage]
|
||||
pub(crate) type LargeValue2<T: Config> =
|
||||
StorageValue<Value = BoundedVec<u8, ConstU32<{ 1 << 22 }>>, QueryKind = OptionQuery>;
|
||||
|
||||
/// A map with a maximum of 1M entries.
|
||||
#[pallet::storage]
|
||||
pub(crate) type Map1M<T: Config> = StorageMap<
|
||||
Hasher = Blake2_256,
|
||||
Key = u32,
|
||||
Value = u32,
|
||||
QueryKind = OptionQuery,
|
||||
MaxValues = ConstU32<1_000_000>,
|
||||
>;
|
||||
|
||||
/// A map with a maximum of 16M entries.
|
||||
#[pallet::storage]
|
||||
pub(crate) type Map16M<T: Config> = StorageMap<
|
||||
Hasher = Blake2_256,
|
||||
Key = u32,
|
||||
Value = u32,
|
||||
QueryKind = OptionQuery,
|
||||
MaxValues = ConstU32<16_000_000>,
|
||||
>;
|
||||
|
||||
#[pallet::storage]
|
||||
pub(crate) type DoubleMap1M<T: Config> = StorageDoubleMap<
|
||||
Hasher1 = Blake2_256,
|
||||
Hasher2 = Blake2_256,
|
||||
Key1 = u32,
|
||||
Key2 = u32,
|
||||
Value = u32,
|
||||
QueryKind = OptionQuery,
|
||||
MaxValues = ConstU32<1_000_000>,
|
||||
>;
|
||||
|
||||
#[pallet::storage]
|
||||
#[pallet::unbounded]
|
||||
pub(crate) type UnboundedMap<T: Config> =
|
||||
StorageMap<Hasher = Blake2_256, Key = u32, Value = Vec<u32>, QueryKind = OptionQuery>;
|
||||
|
||||
#[pallet::storage]
|
||||
#[pallet::unbounded]
|
||||
pub(crate) type UnboundedMap2<T: Config> =
|
||||
StorageMap<Hasher = Blake2_256, Key = u32, Value = Vec<u32>, QueryKind = OptionQuery>;
|
||||
|
||||
#[pallet::event]
|
||||
#[pallet::generate_deposit(pub(super) fn deposit_event)]
|
||||
pub enum Event<T: Config> {
|
||||
TestEvent,
|
||||
}
|
||||
|
||||
#[pallet::call]
|
||||
impl<T: Config> Pallet<T> {
|
||||
#[pallet::call_index(0)]
|
||||
#[pallet::weight(0)]
|
||||
pub fn emit_event(_origin: OriginFor<T>) -> DispatchResult {
|
||||
Self::deposit_event(Event::TestEvent);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[pallet::call_index(1)]
|
||||
#[pallet::weight(0)]
|
||||
pub fn noop(_origin: OriginFor<T>) -> DispatchResult {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 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.
|
||||
|
||||
//! Test the produces weight functions.
|
||||
|
||||
#![cfg(test)]
|
||||
|
||||
use super::weights::WeightInfo;
|
||||
use mock::Test as T;
|
||||
type W = crate::weights::SubstrateWeight<T>;
|
||||
|
||||
#[test]
|
||||
fn writing_is_free() {
|
||||
let w = W::storage_single_value_write().proof_size();
|
||||
assert_eq!(w, 0, "Writing is free");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn killing_is_free() {
|
||||
// NOTE: This only applies to state version 1.
|
||||
let w = W::storage_single_value_kill().proof_size();
|
||||
assert_eq!(w, 0, "Killing is free");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn reading_twice_is_the_same_as_once() {
|
||||
let w = W::storage_single_value_read().proof_size();
|
||||
let w2 = W::storage_single_value_read_twice().proof_size();
|
||||
assert_eq!(w, w2, "Reading twice is the same as once");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn storage_single_value_ignored_read_no_pov() {
|
||||
let w = W::storage_single_value_ignored_read();
|
||||
assert_eq!(w.proof_size(), 0, "Ignored PoV does not result in PoV");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn storage_single_value_ignored_some_read_has_pov() {
|
||||
let w = W::storage_single_value_ignored_some_read();
|
||||
assert!(w.proof_size() != 0, "Ignored some does result in PoV");
|
||||
}
|
||||
|
||||
/// Reading the same value from a map does not increase the PoV.
|
||||
#[test]
|
||||
fn storage_1m_map_one_entry_repeated_read_const() {
|
||||
let weight = W::storage_1m_map_one_entry_repeated_read;
|
||||
let w0 = weight(0).proof_size();
|
||||
assert!(w0 > 0, "There is a base weight");
|
||||
|
||||
let w1 = weight(1).proof_size();
|
||||
assert_eq!(w0, w1, "Component does not matter");
|
||||
}
|
||||
|
||||
/// Reading multiple values multiple times from a map increases the PoV by the number of reads.
|
||||
#[test]
|
||||
fn storage_1m_map_multiple_entry_repeated_read_single_linear() {
|
||||
let weight = W::storage_1m_map_multiple_entry_repeated_read;
|
||||
let w0 = weight(0).proof_size();
|
||||
|
||||
let w1 = weight(1).proof_size() - w0;
|
||||
assert!(w1 > 0, "Component matters");
|
||||
|
||||
let wm = weight(1000).proof_size();
|
||||
assert_eq!(w1 * 1000 + w0, wm, "x scales linearly");
|
||||
}
|
||||
|
||||
/// Check that reading two maps at once increases the PoV linearly per map.
|
||||
#[test]
|
||||
fn storage_map_read_per_component_double_linear() {
|
||||
let weight = W::storage_map_read_per_component;
|
||||
let w00 = weight(0, 0).proof_size();
|
||||
|
||||
let w10 = weight(1, 0).proof_size() - w00;
|
||||
let w01 = weight(0, 1).proof_size() - w00;
|
||||
assert!(w10 > 0 && w01 > 0, "Components matter");
|
||||
assert!(w10 != w01, "Each map has its own component");
|
||||
|
||||
let wm0 = weight(1000, 0).proof_size();
|
||||
let w0m = weight(0, 1000).proof_size();
|
||||
assert_eq!(w00 + w10 * 1000, wm0, "x scales linearly");
|
||||
assert_eq!(w00 + w01 * 1000, w0m, "y scales linearly");
|
||||
|
||||
let wmm = weight(1000, 1000).proof_size();
|
||||
assert_eq!(wmm + w00, wm0 + w0m, "x + y scales linearly");
|
||||
}
|
||||
|
||||
/// The proof size estimation takes the measured sizes into account and therefore increases with the
|
||||
/// number of layers.
|
||||
#[test]
|
||||
fn additional_layers_do_not_matter() {
|
||||
let w2 = W::storage_1m_map_read_one_value_two_additional_layers().proof_size();
|
||||
let w3 = W::storage_1m_map_read_one_value_three_additional_layers().proof_size();
|
||||
let w4 = W::storage_1m_map_read_one_value_four_additional_layers().proof_size();
|
||||
assert!(w3 > w2 && w4 > w3, "Additional layers do matter");
|
||||
}
|
||||
|
||||
/// Check that the measured value size instead of the MEL is used.
|
||||
#[test]
|
||||
fn linear_measured_size_works() {
|
||||
let weight = W::measured_storage_value_read_linear_size;
|
||||
|
||||
let w0 = weight(0).proof_size();
|
||||
let w1 = weight(1).proof_size() - w0;
|
||||
|
||||
assert_eq!(w1, 1, "x scales with a factor of 1");
|
||||
let wm = weight(1000).proof_size();
|
||||
assert_eq!(w1 * 1000 + w0, wm, "x scales linearly");
|
||||
}
|
||||
|
||||
// vice-versa of above `linear_measured_size_works`.
|
||||
#[test]
|
||||
fn linear_mel_size_works() {
|
||||
let weight = W::mel_storage_value_read_linear_size;
|
||||
|
||||
let w1 = weight(1).proof_size();
|
||||
let wm = weight(1000).proof_size();
|
||||
assert_eq!(w1, wm, "PoV size is const");
|
||||
}
|
||||
|
||||
/// Although there is no estimation possible, it uses the recorded proof size as best effort.
|
||||
#[test]
|
||||
fn unbounded_read_best_effort() {
|
||||
let w = W::storage_value_unbounded_read().proof_size();
|
||||
assert!(w > 0, "There is a weight");
|
||||
}
|
||||
|
||||
/// For mixed unbounded and bounded reads, the bounded part still increases the PoV.
|
||||
#[test]
|
||||
fn partial_unbounded_read_best_effort() {
|
||||
let w_unbounded = W::storage_value_unbounded_read().proof_size();
|
||||
let w_bounded = W::storage_value_bounded_read().proof_size();
|
||||
let w_partial = W::storage_value_bounded_and_unbounded_read().proof_size();
|
||||
|
||||
assert_eq!(w_bounded + w_unbounded, w_partial, "The bounded part increases the PoV");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn emit_event_is_free() {
|
||||
let w = W::emit_event().proof_size();
|
||||
assert_eq!(w, 0, "Emitting an event is free");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn noop_is_free() {
|
||||
let w = W::noop().proof_size();
|
||||
assert_eq!(w, 0, "Noop is free");
|
||||
}
|
||||
|
||||
mod mock {
|
||||
use sp_runtime::testing::H256;
|
||||
|
||||
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
|
||||
type Block = frame_system::mocking::MockBlock<Test>;
|
||||
|
||||
frame_support::construct_runtime!(
|
||||
pub enum Test where
|
||||
Block = Block,
|
||||
NodeBlock = Block,
|
||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||
{
|
||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
||||
Baseline: crate::{Pallet, Call, Storage, Event<T>},
|
||||
}
|
||||
);
|
||||
|
||||
impl frame_system::Config for Test {
|
||||
type BaseCallFilter = frame_support::traits::Everything;
|
||||
type BlockWeights = ();
|
||||
type BlockLength = ();
|
||||
type DbWeight = ();
|
||||
type RuntimeOrigin = RuntimeOrigin;
|
||||
type Index = u32;
|
||||
type BlockNumber = u64;
|
||||
type RuntimeCall = RuntimeCall;
|
||||
type Hash = H256;
|
||||
type Hashing = ::sp_runtime::traits::BlakeTwo256;
|
||||
type AccountId = u32;
|
||||
type Lookup = sp_runtime::traits::IdentityLookup<Self::AccountId>;
|
||||
type Header = sp_runtime::testing::Header;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type BlockHashCount = ();
|
||||
type Version = ();
|
||||
type PalletInfo = PalletInfo;
|
||||
type AccountData = ();
|
||||
type OnNewAccount = ();
|
||||
type OnKilledAccount = ();
|
||||
type SystemWeightInfo = ();
|
||||
type SS58Prefix = ();
|
||||
type OnSetCode = ();
|
||||
type MaxConsumers = frame_support::traits::ConstU32<16>;
|
||||
}
|
||||
|
||||
impl crate::Config for Test {
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,807 @@
|
||||
|
||||
//! Autogenerated weights for frame_benchmarking_pallet_pov
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `oty-parity`, CPU: `11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz`
|
||||
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/release/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --dev
|
||||
// --pallet
|
||||
// frame-benchmarking-pallet-pov
|
||||
// --extrinsic
|
||||
//
|
||||
// --steps
|
||||
// 50
|
||||
// --repeat
|
||||
// 1
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --output=frame/benchmarking/pov/src/weights.rs
|
||||
|
||||
#![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 frame_benchmarking_pallet_pov.
|
||||
pub trait WeightInfo {
|
||||
fn storage_single_value_read() -> Weight;
|
||||
fn storage_single_value_ignored_read() -> Weight;
|
||||
fn storage_single_value_ignored_some_read() -> Weight;
|
||||
fn storage_single_value_read_twice() -> Weight;
|
||||
fn storage_single_value_write() -> Weight;
|
||||
fn storage_single_value_kill() -> Weight;
|
||||
fn storage_1m_map_read_one_value_two_additional_layers() -> Weight;
|
||||
fn storage_1m_map_read_one_value_three_additional_layers() -> Weight;
|
||||
fn storage_1m_map_read_one_value_four_additional_layers() -> Weight;
|
||||
fn storage_map_read_per_component(n: u32, m: u32, ) -> Weight;
|
||||
fn storage_map_read_per_component_one_ignored(n: u32, m: u32, ) -> Weight;
|
||||
fn storage_1m_map_one_entry_repeated_read(n: u32, ) -> Weight;
|
||||
fn storage_1m_map_multiple_entry_repeated_read(n: u32, ) -> Weight;
|
||||
fn storage_1m_double_map_read_per_component(n: u32, ) -> Weight;
|
||||
fn storage_value_bounded_read() -> Weight;
|
||||
fn storage_value_unbounded_read() -> Weight;
|
||||
fn storage_value_unbounded_ignored_read() -> Weight;
|
||||
fn storage_value_bounded_and_unbounded_read() -> Weight;
|
||||
fn measured_storage_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn mel_storage_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn measured_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn mel_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn mel_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn measured_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight;
|
||||
fn storage_map_unbounded_both_measured_read(i: u32, ) -> Weight;
|
||||
fn storage_map_partial_unbounded_read(i: u32, ) -> Weight;
|
||||
fn storage_map_partial_unbounded_ignored_read(i: u32, ) -> Weight;
|
||||
fn emit_event() -> Weight;
|
||||
fn noop() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for frame_benchmarking_pallet_pov using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 3_291 nanoseconds.
|
||||
Weight::from_parts(3_291_000, 499)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
fn storage_single_value_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_918 nanoseconds.
|
||||
Weight::from_ref_time(2_918_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Value2 (r:1 w:0)
|
||||
/// Proof: Pov Value2 (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
fn storage_single_value_ignored_some_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `160`
|
||||
// Estimated: `659`
|
||||
// Minimum execution time: 4_056 nanoseconds.
|
||||
Weight::from_parts(4_056_000, 659)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_read_twice() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 3_552 nanoseconds.
|
||||
Weight::from_parts(3_552_000, 499)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_write() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 795 nanoseconds.
|
||||
Weight::from_ref_time(795_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_kill() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 865 nanoseconds.
|
||||
Weight::from_ref_time(865_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
fn storage_1m_map_read_one_value_two_additional_layers() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1275`
|
||||
// Estimated: `3750`
|
||||
// Minimum execution time: 9_571 nanoseconds.
|
||||
Weight::from_parts(9_571_000, 3750)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
fn storage_1m_map_read_one_value_three_additional_layers() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1544`
|
||||
// Estimated: `4019`
|
||||
// Minimum execution time: 14_597 nanoseconds.
|
||||
Weight::from_parts(14_597_000, 4019)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
fn storage_1m_map_read_one_value_four_additional_layers() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2044`
|
||||
// Estimated: `4519`
|
||||
// Minimum execution time: 19_793 nanoseconds.
|
||||
Weight::from_parts(19_793_000, 4519)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
fn storage_map_read_per_component(n: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
|
||||
// Estimated: `0 + n * (3006 ±0) + m * (2511 ±0)`
|
||||
// Minimum execution time: 266_160 nanoseconds.
|
||||
Weight::from_ref_time(190_477_747)
|
||||
// Standard Error: 96_405
|
||||
.saturating_add(Weight::from_ref_time(1_049_993).saturating_mul(n.into()))
|
||||
// Standard Error: 96_405
|
||||
.saturating_add(Weight::from_ref_time(1_202_546).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(Weight::from_proof_size(3006).saturating_mul(n.into()))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Ignored)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
fn storage_map_read_per_component_one_ignored(n: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
|
||||
// Estimated: `695 + n * (3195 ±2) + m * (189 ±2)`
|
||||
// Minimum execution time: 265_113 nanoseconds.
|
||||
Weight::from_parts(215_943_973, 695)
|
||||
// Standard Error: 199_907
|
||||
.saturating_add(Weight::from_ref_time(988_371).saturating_mul(n.into()))
|
||||
// Standard Error: 199_907
|
||||
.saturating_add(Weight::from_ref_time(1_145_693).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(Weight::from_proof_size(3195).saturating_mul(n.into()))
|
||||
.saturating_add(Weight::from_proof_size(189).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn storage_1m_map_one_entry_repeated_read(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `170`
|
||||
// Estimated: `2511`
|
||||
// Minimum execution time: 119 nanoseconds.
|
||||
Weight::from_parts(3_649_405, 2511)
|
||||
// Standard Error: 4_472
|
||||
.saturating_add(Weight::from_ref_time(432_147).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn storage_1m_map_multiple_entry_repeated_read(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `147 + n * (40 ±0)`
|
||||
// Estimated: `0 + n * (2511 ±0)`
|
||||
// Minimum execution time: 106 nanoseconds.
|
||||
Weight::from_ref_time(59_892_609)
|
||||
// Standard Error: 418_004
|
||||
.saturating_add(Weight::from_ref_time(5_919_793).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov DoubleMap1M (r:1024 w:0)
|
||||
/// Proof: Pov DoubleMap1M (max_values: Some(1000000), max_size: Some(68), added: 2543, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 1024]`.
|
||||
fn storage_1m_double_map_read_per_component(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `21938 + n * (57 ±0)`
|
||||
// Estimated: `0 + n * (2543 ±0)`
|
||||
// Minimum execution time: 550 nanoseconds.
|
||||
Weight::from_ref_time(65_431_603)
|
||||
// Standard Error: 66_935
|
||||
.saturating_add(Weight::from_ref_time(2_825_371).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2543).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
fn storage_value_bounded_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `528`
|
||||
// Minimum execution time: 2_541 nanoseconds.
|
||||
Weight::from_parts(2_541_000, 528)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn storage_value_unbounded_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `604`
|
||||
// Minimum execution time: 2_226 nanoseconds.
|
||||
Weight::from_parts(2_226_000, 604)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Ignored)
|
||||
fn storage_value_unbounded_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_100 nanoseconds.
|
||||
Weight::from_ref_time(2_100_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
fn storage_value_bounded_and_unbounded_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `1132`
|
||||
// Minimum execution time: 2_808 nanoseconds.
|
||||
Weight::from_parts(2_808_000, 1132)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn measured_storage_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174 + l * (1 ±0)`
|
||||
// Estimated: `666 + l * (1 ±0)`
|
||||
// Minimum execution time: 3_385 nanoseconds.
|
||||
Weight::from_parts(3_385_000, 666)
|
||||
// Standard Error: 10
|
||||
.saturating_add(Weight::from_ref_time(356).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn mel_storage_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174 + l * (1 ±0)`
|
||||
// Estimated: `4194803`
|
||||
// Minimum execution time: 3_342 nanoseconds.
|
||||
Weight::from_parts(3_342_000, 4194803)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(345).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn measured_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `1448 + l * (4 ±0)`
|
||||
// Minimum execution time: 4_519 nanoseconds.
|
||||
Weight::from_parts(4_519_000, 1448)
|
||||
// Standard Error: 9
|
||||
.saturating_add(Weight::from_ref_time(560).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn mel_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `8389606`
|
||||
// Minimum execution time: 4_462 nanoseconds.
|
||||
Weight::from_parts(4_462_000, 8389606)
|
||||
// Standard Error: 7
|
||||
.saturating_add(Weight::from_ref_time(538).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn mel_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `4195527 + l * (2 ±0)`
|
||||
// Minimum execution time: 4_552 nanoseconds.
|
||||
Weight::from_parts(4_552_000, 4195527)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(507).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn measured_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `4195527 + l * (2 ±0)`
|
||||
// Minimum execution time: 4_236 nanoseconds.
|
||||
Weight::from_parts(4_236_000, 4195527)
|
||||
// Standard Error: 8
|
||||
.saturating_add(Weight::from_ref_time(517).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Pov UnboundedMap2 (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap2 (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_map_unbounded_both_measured_read(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `293 + i * (8 ±0)`
|
||||
// Estimated: `5524 + i * (16 ±0)`
|
||||
// Minimum execution time: 5_649 nanoseconds.
|
||||
Weight::from_parts(6_111_237, 5524)
|
||||
// Standard Error: 1_060
|
||||
.saturating_add(Weight::from_ref_time(2_693).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(16).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_map_partial_unbounded_read(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `260 + i * (4 ±0)`
|
||||
// Estimated: `5243 + i * (4 ±0)`
|
||||
// Minimum execution time: 5_997 nanoseconds.
|
||||
Weight::from_parts(7_996_508, 5243)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Ignored)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_map_partial_unbounded_ignored_read(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `260 + i * (4 ±0)`
|
||||
// Estimated: `2768 + i * (4 ±0)`
|
||||
// Minimum execution time: 5_679 nanoseconds.
|
||||
Weight::from_parts(6_496_804, 2768)
|
||||
// Standard Error: 611
|
||||
.saturating_add(Weight::from_ref_time(930).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
fn emit_event() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_087 nanoseconds.
|
||||
Weight::from_ref_time(7_087_000)
|
||||
}
|
||||
fn noop() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_719 nanoseconds.
|
||||
Weight::from_ref_time(2_719_000)
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 3_291 nanoseconds.
|
||||
Weight::from_parts(3_291_000, 499)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
fn storage_single_value_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_918 nanoseconds.
|
||||
Weight::from_ref_time(2_918_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Value2 (r:1 w:0)
|
||||
/// Proof: Pov Value2 (max_values: Some(1), max_size: Some(4), added: 499, mode: Ignored)
|
||||
fn storage_single_value_ignored_some_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `160`
|
||||
// Estimated: `659`
|
||||
// Minimum execution time: 4_056 nanoseconds.
|
||||
Weight::from_parts(4_056_000, 659)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:1 w:0)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_read_twice() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 3_552 nanoseconds.
|
||||
Weight::from_parts(3_552_000, 499)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_write() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 795 nanoseconds.
|
||||
Weight::from_ref_time(795_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Value (r:0 w:1)
|
||||
/// Proof: Pov Value (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn storage_single_value_kill() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 865 nanoseconds.
|
||||
Weight::from_ref_time(865_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
fn storage_1m_map_read_one_value_two_additional_layers() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1275`
|
||||
// Estimated: `3750`
|
||||
// Minimum execution time: 9_571 nanoseconds.
|
||||
Weight::from_parts(9_571_000, 3750)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
fn storage_1m_map_read_one_value_three_additional_layers() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1544`
|
||||
// Estimated: `4019`
|
||||
// Minimum execution time: 14_597 nanoseconds.
|
||||
Weight::from_parts(14_597_000, 4019)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Measured)
|
||||
fn storage_1m_map_read_one_value_four_additional_layers() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2044`
|
||||
// Estimated: `4519`
|
||||
// Minimum execution time: 19_793 nanoseconds.
|
||||
Weight::from_parts(19_793_000, 4519)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
fn storage_map_read_per_component(n: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
|
||||
// Estimated: `0 + n * (3006 ±0) + m * (2511 ±0)`
|
||||
// Minimum execution time: 266_160 nanoseconds.
|
||||
Weight::from_ref_time(190_477_747)
|
||||
// Standard Error: 96_405
|
||||
.saturating_add(Weight::from_ref_time(1_049_993).saturating_mul(n.into()))
|
||||
// Standard Error: 96_405
|
||||
.saturating_add(Weight::from_ref_time(1_202_546).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(Weight::from_proof_size(3006).saturating_mul(n.into()))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: Ignored)
|
||||
/// Storage: Pov Map16M (r:100 w:0)
|
||||
/// Proof: Pov Map16M (max_values: Some(16000000), max_size: Some(36), added: 3006, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
fn storage_map_read_per_component_one_ignored(n: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `515 + n * (188 ±0) + m * (188 ±0)`
|
||||
// Estimated: `695 + n * (3195 ±2) + m * (189 ±2)`
|
||||
// Minimum execution time: 265_113 nanoseconds.
|
||||
Weight::from_parts(215_943_973, 695)
|
||||
// Standard Error: 199_907
|
||||
.saturating_add(Weight::from_ref_time(988_371).saturating_mul(n.into()))
|
||||
// Standard Error: 199_907
|
||||
.saturating_add(Weight::from_ref_time(1_145_693).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(Weight::from_proof_size(3195).saturating_mul(n.into()))
|
||||
.saturating_add(Weight::from_proof_size(189).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn storage_1m_map_one_entry_repeated_read(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `170`
|
||||
// Estimated: `2511`
|
||||
// Minimum execution time: 119 nanoseconds.
|
||||
Weight::from_parts(3_649_405, 2511)
|
||||
// Standard Error: 4_472
|
||||
.saturating_add(Weight::from_ref_time(432_147).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:100 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn storage_1m_map_multiple_entry_repeated_read(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `147 + n * (40 ±0)`
|
||||
// Estimated: `0 + n * (2511 ±0)`
|
||||
// Minimum execution time: 106 nanoseconds.
|
||||
Weight::from_ref_time(59_892_609)
|
||||
// Standard Error: 418_004
|
||||
.saturating_add(Weight::from_ref_time(5_919_793).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2511).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov DoubleMap1M (r:1024 w:0)
|
||||
/// Proof: Pov DoubleMap1M (max_values: Some(1000000), max_size: Some(68), added: 2543, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 1024]`.
|
||||
fn storage_1m_double_map_read_per_component(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `21938 + n * (57 ±0)`
|
||||
// Estimated: `0 + n * (2543 ±0)`
|
||||
// Minimum execution time: 550 nanoseconds.
|
||||
Weight::from_ref_time(65_431_603)
|
||||
// Standard Error: 66_935
|
||||
.saturating_add(Weight::from_ref_time(2_825_371).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_proof_size(2543).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
fn storage_value_bounded_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `528`
|
||||
// Minimum execution time: 2_541 nanoseconds.
|
||||
Weight::from_parts(2_541_000, 528)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn storage_value_unbounded_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `604`
|
||||
// Minimum execution time: 2_226 nanoseconds.
|
||||
Weight::from_parts(2_226_000, 604)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Ignored)
|
||||
fn storage_value_unbounded_ignored_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_100 nanoseconds.
|
||||
Weight::from_ref_time(2_100_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov UnboundedValue (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedValue (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Pov BoundedValue (r:1 w:0)
|
||||
/// Proof: Pov BoundedValue (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
|
||||
fn storage_value_bounded_and_unbounded_read() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `1132`
|
||||
// Minimum execution time: 2_808 nanoseconds.
|
||||
Weight::from_parts(2_808_000, 1132)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn measured_storage_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174 + l * (1 ±0)`
|
||||
// Estimated: `666 + l * (1 ±0)`
|
||||
// Minimum execution time: 3_385 nanoseconds.
|
||||
Weight::from_parts(3_385_000, 666)
|
||||
// Standard Error: 10
|
||||
.saturating_add(Weight::from_ref_time(356).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn mel_storage_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174 + l * (1 ±0)`
|
||||
// Estimated: `4194803`
|
||||
// Minimum execution time: 3_342 nanoseconds.
|
||||
Weight::from_parts(3_342_000, 4194803)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(345).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn measured_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `1448 + l * (4 ±0)`
|
||||
// Minimum execution time: 4_519 nanoseconds.
|
||||
Weight::from_parts(4_519_000, 1448)
|
||||
// Standard Error: 9
|
||||
.saturating_add(Weight::from_ref_time(560).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn mel_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `8389606`
|
||||
// Minimum execution time: 4_462 nanoseconds.
|
||||
Weight::from_parts(4_462_000, 8389606)
|
||||
// Standard Error: 7
|
||||
.saturating_add(Weight::from_ref_time(538).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn mel_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `4195527 + l * (2 ±0)`
|
||||
// Minimum execution time: 4_552 nanoseconds.
|
||||
Weight::from_parts(4_552_000, 4195527)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(507).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov LargeValue (r:1 w:0)
|
||||
/// Proof: Pov LargeValue (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: Measured)
|
||||
/// Storage: Pov LargeValue2 (r:1 w:0)
|
||||
/// Proof: Pov LargeValue2 (max_values: Some(1), max_size: Some(4194308), added: 4194803, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 4194304]`.
|
||||
fn measured_mixed_storage_double_value_read_linear_size(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `235 + l * (2 ±0)`
|
||||
// Estimated: `4195527 + l * (2 ±0)`
|
||||
// Minimum execution time: 4_236 nanoseconds.
|
||||
Weight::from_parts(4_236_000, 4195527)
|
||||
// Standard Error: 8
|
||||
.saturating_add(Weight::from_ref_time(517).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(2).saturating_mul(l.into()))
|
||||
}
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Pov UnboundedMap2 (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap2 (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_map_unbounded_both_measured_read(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `293 + i * (8 ±0)`
|
||||
// Estimated: `5524 + i * (16 ±0)`
|
||||
// Minimum execution time: 5_649 nanoseconds.
|
||||
Weight::from_parts(6_111_237, 5524)
|
||||
// Standard Error: 1_060
|
||||
.saturating_add(Weight::from_ref_time(2_693).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(16).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_map_partial_unbounded_read(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `260 + i * (4 ±0)`
|
||||
// Estimated: `5243 + i * (4 ±0)`
|
||||
// Minimum execution time: 5_997 nanoseconds.
|
||||
Weight::from_parts(7_996_508, 5243)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Pov Map1M (r:1 w:0)
|
||||
/// Proof: Pov Map1M (max_values: Some(1000000), max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Pov UnboundedMap (r:1 w:0)
|
||||
/// Proof Skipped: Pov UnboundedMap (max_values: None, max_size: None, mode: Ignored)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_map_partial_unbounded_ignored_read(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `260 + i * (4 ±0)`
|
||||
// Estimated: `2768 + i * (4 ±0)`
|
||||
// Minimum execution time: 5_679 nanoseconds.
|
||||
Weight::from_parts(6_496_804, 2768)
|
||||
// Standard Error: 611
|
||||
.saturating_add(Weight::from_ref_time(930).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(4).saturating_mul(i.into()))
|
||||
}
|
||||
fn emit_event() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_087 nanoseconds.
|
||||
Weight::from_ref_time(7_087_000)
|
||||
}
|
||||
fn noop() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_719 nanoseconds.
|
||||
Weight::from_ref_time(2_719_000)
|
||||
}
|
||||
}
|
||||
@@ -16,29 +16,25 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! A set of benchmarks which can establish a global baseline for all other
|
||||
//! benchmarking.
|
||||
//! benchmarking. These benchmarks do not require a pallet to be deployed.
|
||||
|
||||
#![cfg(feature = "runtime-benchmarks")]
|
||||
|
||||
use super::*;
|
||||
use crate::benchmarks;
|
||||
use codec::Encode;
|
||||
use frame_system::Pallet as System;
|
||||
use sp_application_crypto::KeyTypeId;
|
||||
use sp_runtime::{
|
||||
traits::{AppVerify, Hash},
|
||||
RuntimeAppPublic,
|
||||
};
|
||||
use sp_std::prelude::*;
|
||||
|
||||
pub const TEST_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"test");
|
||||
mod crypto {
|
||||
use sp_application_crypto::{app_crypto, sr25519, KeyTypeId};
|
||||
|
||||
mod app_sr25519 {
|
||||
use super::TEST_KEY_TYPE_ID;
|
||||
use sp_application_crypto::{app_crypto, sr25519};
|
||||
pub const TEST_KEY_TYPE_ID: KeyTypeId = KeyTypeId(*b"test");
|
||||
app_crypto!(sr25519, TEST_KEY_TYPE_ID);
|
||||
}
|
||||
|
||||
type SignerId = app_sr25519::Public;
|
||||
pub type SignerId = crypto::Public;
|
||||
|
||||
pub struct Pallet<T: Config>(System<T>);
|
||||
pub trait Config: frame_system::Config {}
|
||||
@@ -81,7 +77,6 @@ benchmarks! {
|
||||
}
|
||||
|
||||
hashing {
|
||||
let i in 0 .. 100;
|
||||
let mut hash = T::Hash::default();
|
||||
}: {
|
||||
(0..=100_000u32).for_each(|j| hash = T::Hashing::hash(&j.to_be_bytes()));
|
||||
@@ -106,53 +101,17 @@ benchmarks! {
|
||||
});
|
||||
}
|
||||
|
||||
#[skip_meta]
|
||||
storage_read {
|
||||
let i in 0 .. 1_000;
|
||||
let mut people = Vec::new();
|
||||
(0..i).for_each(|j| {
|
||||
let hash = T::Hashing::hash(&j.to_be_bytes()).encode();
|
||||
frame_support::storage::unhashed::put(&hash, &hash);
|
||||
people.push(hash);
|
||||
});
|
||||
}: {
|
||||
people.iter().for_each(|hash| {
|
||||
// This does a storage read
|
||||
let value = frame_support::storage::unhashed::get(hash);
|
||||
assert_eq!(value, Some(hash.to_vec()));
|
||||
});
|
||||
}
|
||||
|
||||
#[skip_meta]
|
||||
storage_write {
|
||||
let i in 0 .. 1_000;
|
||||
let mut hashes = Vec::new();
|
||||
(0..i).for_each(|j| {
|
||||
let hash = T::Hashing::hash(&j.to_be_bytes());
|
||||
hashes.push(hash.encode());
|
||||
});
|
||||
}: {
|
||||
hashes.iter().for_each(|hash| {
|
||||
// This does a storage write
|
||||
frame_support::storage::unhashed::put(hash, hash);
|
||||
});
|
||||
} verify {
|
||||
hashes.iter().for_each(|hash| {
|
||||
let value = frame_support::storage::unhashed::get(hash);
|
||||
assert_eq!(value, Some(hash.to_vec()));
|
||||
});
|
||||
}
|
||||
|
||||
impl_benchmark_test_suite!(
|
||||
Pallet,
|
||||
crate::baseline::mock::new_test_ext(),
|
||||
crate::baseline::mock::Test,
|
||||
mock::new_test_ext(),
|
||||
mock::Test,
|
||||
);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod mock {
|
||||
use sp_runtime::{testing::H256, traits::IdentityLookup};
|
||||
use super::*;
|
||||
use sp_runtime::testing::H256;
|
||||
|
||||
type AccountId = u64;
|
||||
type AccountIndex = u32;
|
||||
@@ -183,7 +142,7 @@ pub mod mock {
|
||||
type Hash = H256;
|
||||
type Hashing = ::sp_runtime::traits::BlakeTwo256;
|
||||
type AccountId = AccountId;
|
||||
type Lookup = IdentityLookup<Self::AccountId>;
|
||||
type Lookup = sp_runtime::traits::IdentityLookup<Self::AccountId>;
|
||||
type Header = sp_runtime::testing::Header;
|
||||
type RuntimeEvent = RuntimeEvent;
|
||||
type BlockHashCount = ();
|
||||
|
||||
@@ -47,7 +47,7 @@ pub use sp_runtime::traits::Zero;
|
||||
pub use sp_runtime::StateVersion;
|
||||
#[doc(hidden)]
|
||||
pub use sp_std::{self, boxed::Box, prelude::Vec, str, vec};
|
||||
pub use sp_storage::TrackedStorageKey;
|
||||
pub use sp_storage::{well_known_keys, TrackedStorageKey};
|
||||
pub use utils::*;
|
||||
|
||||
/// Whitelist the given account.
|
||||
@@ -211,6 +211,7 @@ macro_rules! benchmarks {
|
||||
( )
|
||||
( )
|
||||
( )
|
||||
( )
|
||||
$( $rest )*
|
||||
);
|
||||
}
|
||||
@@ -231,6 +232,7 @@ macro_rules! benchmarks_instance {
|
||||
( )
|
||||
( )
|
||||
( )
|
||||
( )
|
||||
$( $rest )*
|
||||
);
|
||||
}
|
||||
@@ -251,6 +253,7 @@ macro_rules! benchmarks_instance_pallet {
|
||||
( )
|
||||
( )
|
||||
( )
|
||||
( )
|
||||
$( $rest )*
|
||||
);
|
||||
}
|
||||
@@ -268,6 +271,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
impl_benchmark_test_suite!(
|
||||
$bench_module:ident,
|
||||
$new_test_ext:expr,
|
||||
@@ -282,6 +286,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$( $rest )*
|
||||
}
|
||||
};
|
||||
@@ -293,6 +298,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
impl_benchmark_test_suite!(
|
||||
$bench_module:ident,
|
||||
$new_test_ext:expr,
|
||||
@@ -307,6 +313,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$( $rest )*
|
||||
}
|
||||
};
|
||||
@@ -318,6 +325,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
where_clause { where $( $where_bound:tt )* }
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
@@ -328,6 +336,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$( $rest )*
|
||||
}
|
||||
};
|
||||
@@ -339,7 +348,9 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
#[skip_meta]
|
||||
$( #[ $($attributes:tt)+ ] )*
|
||||
$name:ident
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
@@ -350,6 +361,8 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* $name )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$( #[ $( $attributes )+ ] )*
|
||||
$name
|
||||
$( $rest )*
|
||||
}
|
||||
@@ -362,7 +375,9 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
#[extra]
|
||||
$( #[ $($attributes:tt)+ ] )*
|
||||
$name:ident
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
@@ -373,6 +388,35 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* $name )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$( #[ $( $attributes )+ ] )*
|
||||
$name
|
||||
$( $rest )*
|
||||
}
|
||||
};
|
||||
// detect and extract `#[pov_mode = Mode { Pallet::Storage: Mode ... }]` tag:
|
||||
(
|
||||
{ $($bench_module:ident, $new_test_ext:expr, $test:path $(, $( $args:tt )* )?)? }
|
||||
{ $( $instance:ident: $instance_bound:tt )? }
|
||||
{ $( $where_clause:tt )* }
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $old_pov_name:ident: $( $old_storage:path = $old_pov_mode:ident )*; )* )
|
||||
#[pov_mode = $mode:ident $( { $( $storage:path: $pov_mode:ident )* } )?]
|
||||
$( #[ $($attributes:tt)+ ] )*
|
||||
$name:ident
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
$crate::benchmarks_iter! {
|
||||
{ $($bench_module, $new_test_ext, $test $(, $( $args )* )?)? }
|
||||
{ $( $instance: $instance_bound )? }
|
||||
{ $( $where_clause )* }
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $name: ALL = $mode $($( $storage = $pov_mode )*)?; $( $old_pov_name: $( $old_storage = $old_pov_mode )*; )* )
|
||||
$( #[ $( $attributes )+ ] )*
|
||||
$name
|
||||
$( $rest )*
|
||||
}
|
||||
@@ -385,6 +429,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* ) // This contains $( $( { $instance } )? $name:ident )*
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
$name:ident { $( $code:tt )* }: _ $(< $origin_type:ty>)? ( $origin:expr $( , $arg:expr )* )
|
||||
verify $postcode:block
|
||||
$( $rest:tt )*
|
||||
@@ -396,6 +441,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$name { $( $code )* }: $name $(< $origin_type >)? ( $origin $( , $arg )* )
|
||||
verify $postcode
|
||||
$( $rest )*
|
||||
@@ -409,6 +455,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
$name:ident { $( $code:tt )* }: $dispatch:ident $(<$origin_type:ty>)? ( $origin:expr $( , $arg:expr )* )
|
||||
verify $postcode:block
|
||||
$( $rest:tt )*
|
||||
@@ -421,6 +468,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$name {
|
||||
$( $code )*
|
||||
let __call = Call::<
|
||||
@@ -455,6 +503,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
$name:ident { $( $code:tt )* }: $eval:block
|
||||
verify $postcode:block
|
||||
$( $rest:tt )*
|
||||
@@ -483,6 +532,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* { $( $instance )? } $name )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$( $rest )*
|
||||
);
|
||||
};
|
||||
@@ -494,6 +544,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
) => {
|
||||
$crate::selected_benchmark!(
|
||||
{ $( $where_clause)* }
|
||||
@@ -506,6 +557,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra ),* )
|
||||
( $( $names_skip_meta ),* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
);
|
||||
$crate::impl_test_function!(
|
||||
( $( $names )* )
|
||||
@@ -525,6 +577,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
) => {
|
||||
$crate::selected_benchmark!(
|
||||
{ $( $where_clause)* }
|
||||
@@ -537,6 +590,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra ),* )
|
||||
( $( $names_skip_meta ),* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
);
|
||||
};
|
||||
// add verify block to _() format
|
||||
@@ -547,6 +601,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
$name:ident { $( $code:tt )* }: _ $(<$origin_type:ty>)? ( $origin:expr $( , $arg:expr )* )
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
@@ -557,6 +612,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$name { $( $code )* }: _ $(<$origin_type>)? ( $origin $( , $arg )* )
|
||||
verify { }
|
||||
$( $rest )*
|
||||
@@ -570,6 +626,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
$name:ident { $( $code:tt )* }: $dispatch:ident $(<$origin_type:ty>)? ( $origin:expr $( , $arg:expr )* )
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
@@ -580,6 +637,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$name { $( $code )* }: $dispatch $(<$origin_type>)? ( $origin $( , $arg )* )
|
||||
verify { }
|
||||
$( $rest )*
|
||||
@@ -593,6 +651,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names:tt )* )
|
||||
( $( $names_extra:tt )* )
|
||||
( $( $names_skip_meta:tt )* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
$name:ident { $( $code:tt )* }: $(<$origin_type:ty>)? $eval:block
|
||||
$( $rest:tt )*
|
||||
) => {
|
||||
@@ -603,6 +662,7 @@ macro_rules! benchmarks_iter {
|
||||
( $( $names )* )
|
||||
( $( $names_extra )* )
|
||||
( $( $names_skip_meta )* )
|
||||
( $( $pov_name: $( $storage = $pov_mode )*; )* )
|
||||
$name { $( $code )* }: $(<$origin_type>)? $eval
|
||||
verify { }
|
||||
$( $rest )*
|
||||
@@ -981,6 +1041,7 @@ macro_rules! impl_benchmark {
|
||||
( $( { $( $name_inst:ident )? } $name:ident )* )
|
||||
( $( $name_extra:ident ),* )
|
||||
( $( $name_skip_meta:ident ),* )
|
||||
( $( $pov_name:ident: $( $storage:path = $pov_mode:ident )*; )* )
|
||||
) => {
|
||||
// We only need to implement benchmarks for the runtime-benchmarks feature or testing.
|
||||
#[cfg(any(feature = "runtime-benchmarks", test))]
|
||||
@@ -989,23 +1050,37 @@ macro_rules! impl_benchmark {
|
||||
where T: frame_system::Config, $( $where_clause )*
|
||||
{
|
||||
fn benchmarks(extra: bool) -> $crate::Vec<$crate::BenchmarkMetadata> {
|
||||
$($crate::validate_pov_mode!(
|
||||
$pov_name: $( $storage = $pov_mode )*;
|
||||
);)*
|
||||
let mut all_names = $crate::vec![ $( stringify!($name).as_ref() ),* ];
|
||||
if !extra {
|
||||
let extra = [ $( stringify!($name_extra).as_ref() ),* ];
|
||||
all_names.retain(|x| !extra.contains(x));
|
||||
}
|
||||
let pov_modes: $crate::Vec<($crate::Vec<u8>, $crate::Vec<($crate::Vec<u8>, $crate::Vec<u8>)>)> = $crate::vec![
|
||||
$(
|
||||
(stringify!($pov_name).as_bytes().to_vec(),
|
||||
$crate::vec![
|
||||
$( ( stringify!($storage).as_bytes().to_vec(),
|
||||
stringify!($pov_mode).as_bytes().to_vec() ), )*
|
||||
]),
|
||||
)*
|
||||
];
|
||||
all_names.into_iter().map(|benchmark| {
|
||||
let selected_benchmark = match benchmark {
|
||||
$( stringify!($name) => SelectedBenchmark::$name, )*
|
||||
_ => panic!("all benchmarks should be selectable"),
|
||||
};
|
||||
let name = benchmark.as_bytes().to_vec();
|
||||
let components = <
|
||||
SelectedBenchmark as $crate::BenchmarkingSetup<T $(, $instance)?>
|
||||
>::components(&selected_benchmark);
|
||||
|
||||
$crate::BenchmarkMetadata {
|
||||
name: benchmark.as_bytes().to_vec(),
|
||||
name: name.clone(),
|
||||
components,
|
||||
pov_modes: pov_modes.iter().find(|p| p.0 == name).map(|p| p.1.clone()).unwrap_or_default(),
|
||||
}
|
||||
}).collect::<$crate::Vec<_>>()
|
||||
}
|
||||
@@ -1037,8 +1112,13 @@ macro_rules! impl_benchmark {
|
||||
$crate::frame_support::storage::transactional::TRANSACTION_LEVEL_KEY.into()
|
||||
);
|
||||
whitelist.push(transactional_layer_key);
|
||||
// Whitelist the `:extrinsic_index`.
|
||||
let extrinsic_index = $crate::TrackedStorageKey::new(
|
||||
$crate::well_known_keys::EXTRINSIC_INDEX.into()
|
||||
);
|
||||
whitelist.push(extrinsic_index);
|
||||
|
||||
$crate::benchmarking::set_whitelist(whitelist);
|
||||
$crate::benchmarking::set_whitelist(whitelist.clone());
|
||||
|
||||
let mut results: $crate::Vec<$crate::BenchmarkResult> = $crate::Vec::new();
|
||||
|
||||
@@ -1062,15 +1142,22 @@ macro_rules! impl_benchmark {
|
||||
// This will enable worst case scenario for reading from the database.
|
||||
$crate::benchmarking::commit_db();
|
||||
|
||||
// Access all whitelisted keys to get them into the proof recorder since the
|
||||
// recorder does now have a whitelist.
|
||||
for key in &whitelist {
|
||||
$crate::frame_support::storage::unhashed::get_raw(&key.key);
|
||||
}
|
||||
|
||||
// Reset the read/write counter so we don't count operations in the setup process.
|
||||
$crate::benchmarking::reset_read_write_count();
|
||||
|
||||
// Time the extrinsic logic.
|
||||
$crate::log::trace!(
|
||||
target: "benchmark",
|
||||
"Start Benchmark: {} ({:?})",
|
||||
"Start Benchmark: {} ({:?}) verify {}",
|
||||
extrinsic,
|
||||
c
|
||||
c,
|
||||
verify
|
||||
);
|
||||
|
||||
let start_pov = $crate::benchmarking::proof_size();
|
||||
@@ -1099,6 +1186,10 @@ macro_rules! impl_benchmark {
|
||||
target: "benchmark",
|
||||
"Read/Write Count {:?}", read_write_count
|
||||
);
|
||||
$crate::log::trace!(
|
||||
target: "benchmark",
|
||||
"Proof sizes: before {:?} after {:?} diff {}", &start_pov, &end_pov, &diff_pov
|
||||
);
|
||||
|
||||
// Time the storage root recalculation.
|
||||
let start_storage_root = $crate::benchmarking::current_time();
|
||||
@@ -1421,6 +1512,37 @@ macro_rules! impl_benchmark_test_suite {
|
||||
}
|
||||
}
|
||||
|
||||
/// Validates the passed `pov_mode`s.
|
||||
///
|
||||
/// Checks that:
|
||||
/// - a top-level `ignored` is exclusive
|
||||
/// - all modes are valid
|
||||
#[macro_export]
|
||||
macro_rules! validate_pov_mode {
|
||||
() => {};
|
||||
( $_bench:ident: ; ) => { };
|
||||
( $_bench:ident: $_car:path = Ignored ; ) => { };
|
||||
( $bench:ident: $_car:path = Ignored $( $storage:path = $_pov_mode:ident )+; ) => {
|
||||
compile_error!(
|
||||
concat!(concat!("`pov_mode = Ignored` is exclusive. Please remove the attribute from keys: ", $( stringify!($storage) )+), " on benchmark '", stringify!($bench), "'"));
|
||||
};
|
||||
( $bench:ident: $car:path = Measured $( $storage:path = $pov_mode:ident )*; ) => {
|
||||
$crate::validate_pov_mode!(
|
||||
$bench: $( $storage = $pov_mode )*;
|
||||
);
|
||||
};
|
||||
( $bench:ident: $car:path = MaxEncodedLen $( $storage:path = $pov_mode:ident )*; ) => {
|
||||
$crate::validate_pov_mode!(
|
||||
$bench: $( $storage = $pov_mode )*;
|
||||
);
|
||||
};
|
||||
( $bench:ident: $key:path = $unknown:ident $( $_storage:path = $_pov_mode:ident )*; ) => {
|
||||
compile_error!(
|
||||
concat!("Unknown pov_mode '", stringify!($unknown) ,"' for benchmark '", stringify!($bench), "' on key '", stringify!($key), "'. Must be one of: Ignored, Measured, MaxEncodedLen")
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
// Takes all arguments from `impl_benchmark_test_suite` and three additional arguments.
|
||||
//
|
||||
// Can be configured to generate one #[test] fn per bench case or
|
||||
|
||||
@@ -227,6 +227,7 @@ pub struct BenchmarkList {
|
||||
pub struct BenchmarkMetadata {
|
||||
pub name: Vec<u8>,
|
||||
pub components: Vec<(BenchmarkParameter, u32, u32)>,
|
||||
pub pov_modes: Vec<(Vec<u8>, Vec<u8>)>,
|
||||
}
|
||||
|
||||
sp_api::decl_runtime_apis! {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for frame_benchmarking
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -51,10 +52,8 @@ pub trait WeightInfo {
|
||||
fn subtraction(i: u32, ) -> Weight;
|
||||
fn multiplication(i: u32, ) -> Weight;
|
||||
fn division(i: u32, ) -> Weight;
|
||||
fn hashing(i: u32, ) -> Weight;
|
||||
fn hashing() -> Weight;
|
||||
fn sr25519_verification(i: u32, ) -> Weight;
|
||||
fn storage_read(i: u32, ) -> Weight;
|
||||
fn storage_write(i: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for frame_benchmarking using the Substrate node and recommended hardware.
|
||||
@@ -62,53 +61,52 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn addition(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 108 nanoseconds.
|
||||
Weight::from_ref_time(137_610 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 138 nanoseconds.
|
||||
Weight::from_ref_time(199_805)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn subtraction(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 104 nanoseconds.
|
||||
Weight::from_ref_time(133_508 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 142 nanoseconds.
|
||||
Weight::from_ref_time(201_435)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn multiplication(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 110 nanoseconds.
|
||||
Weight::from_ref_time(140_230 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 138 nanoseconds.
|
||||
Weight::from_ref_time(207_037)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn division(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 96 nanoseconds.
|
||||
Weight::from_ref_time(136_059 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 151 nanoseconds.
|
||||
Weight::from_ref_time(205_150)
|
||||
}
|
||||
/// The range of component `i` is `[0, 100]`.
|
||||
fn hashing(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 21_804_747 nanoseconds.
|
||||
Weight::from_ref_time(22_013_681_386 as u64)
|
||||
fn hashing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 21_950_884 nanoseconds.
|
||||
Weight::from_ref_time(21_994_001_000)
|
||||
}
|
||||
/// The range of component `i` is `[0, 100]`.
|
||||
fn sr25519_verification(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 136 nanoseconds.
|
||||
Weight::from_ref_time(156_000 as u64)
|
||||
// Standard Error: 4_531
|
||||
.saturating_add(Weight::from_ref_time(46_817_640 as u64).saturating_mul(i as u64))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_read(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 125 nanoseconds.
|
||||
Weight::from_ref_time(135_000 as u64)
|
||||
// Standard Error: 3_651
|
||||
.saturating_add(Weight::from_ref_time(2_021_172 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_write(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 120 nanoseconds.
|
||||
Weight::from_ref_time(131_000 as u64)
|
||||
// Standard Error: 348
|
||||
.saturating_add(Weight::from_ref_time(377_243 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 168 nanoseconds.
|
||||
Weight::from_ref_time(1_680_898)
|
||||
// Standard Error: 10_291
|
||||
.saturating_add(Weight::from_ref_time(46_867_301).saturating_mul(i.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,52 +114,51 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn addition(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 108 nanoseconds.
|
||||
Weight::from_ref_time(137_610 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 138 nanoseconds.
|
||||
Weight::from_ref_time(199_805)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn subtraction(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 104 nanoseconds.
|
||||
Weight::from_ref_time(133_508 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 142 nanoseconds.
|
||||
Weight::from_ref_time(201_435)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn multiplication(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 110 nanoseconds.
|
||||
Weight::from_ref_time(140_230 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 138 nanoseconds.
|
||||
Weight::from_ref_time(207_037)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn division(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 96 nanoseconds.
|
||||
Weight::from_ref_time(136_059 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 151 nanoseconds.
|
||||
Weight::from_ref_time(205_150)
|
||||
}
|
||||
/// The range of component `i` is `[0, 100]`.
|
||||
fn hashing(_i: u32, ) -> Weight {
|
||||
// Minimum execution time: 21_804_747 nanoseconds.
|
||||
Weight::from_ref_time(22_013_681_386 as u64)
|
||||
fn hashing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 21_950_884 nanoseconds.
|
||||
Weight::from_ref_time(21_994_001_000)
|
||||
}
|
||||
/// The range of component `i` is `[0, 100]`.
|
||||
fn sr25519_verification(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 136 nanoseconds.
|
||||
Weight::from_ref_time(156_000 as u64)
|
||||
// Standard Error: 4_531
|
||||
.saturating_add(Weight::from_ref_time(46_817_640 as u64).saturating_mul(i as u64))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_read(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 125 nanoseconds.
|
||||
Weight::from_ref_time(135_000 as u64)
|
||||
// Standard Error: 3_651
|
||||
.saturating_add(Weight::from_ref_time(2_021_172 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(i as u64)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn storage_write(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 120 nanoseconds.
|
||||
Weight::from_ref_time(131_000 as u64)
|
||||
// Standard Error: 348
|
||||
.saturating_add(Weight::from_ref_time(377_243 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 168 nanoseconds.
|
||||
Weight::from_ref_time(1_680_898)
|
||||
// Standard Error: 10_291
|
||||
.saturating_add(Weight::from_ref_time(46_867_301).saturating_mul(i.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,25 +18,25 @@
|
||||
//! Autogenerated weights for pallet_bounties
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! 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:
|
||||
// /home/benchbot/cargo_target_dir/production/substrate
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_bounties
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_bounties
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/bounties/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -64,214 +64,340 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_bounties using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Bounties BountyCount (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
// Storage: Bounties Bounties (r:0 w:1)
|
||||
/// Storage: Bounties BountyCount (r:1 w:1)
|
||||
/// Proof: Bounties BountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:0 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// The range of component `d` is `[0, 300]`.
|
||||
fn propose_bounty(d: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_366 nanoseconds.
|
||||
Weight::from_ref_time(34_444_773)
|
||||
// Standard Error: 1_161
|
||||
.saturating_add(Weight::from_ref_time(4_723).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `308`
|
||||
// Estimated: `3102`
|
||||
// Minimum execution time: 22_787 nanoseconds.
|
||||
Weight::from_parts(23_898_632, 3102)
|
||||
// Standard Error: 141
|
||||
.saturating_add(Weight::from_ref_time(568).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
fn approve_bounty() -> Weight {
|
||||
// Minimum execution time: 14_478 nanoseconds.
|
||||
Weight::from_ref_time(14_763_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `400`
|
||||
// Estimated: `3549`
|
||||
// Minimum execution time: 10_526 nanoseconds.
|
||||
Weight::from_parts(10_729_000, 3549)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
fn propose_curator() -> Weight {
|
||||
// Minimum execution time: 13_376 nanoseconds.
|
||||
Weight::from_ref_time(13_705_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `420`
|
||||
// Estimated: `2652`
|
||||
// Minimum execution time: 9_193 nanoseconds.
|
||||
Weight::from_parts(9_455_000, 2652)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn unassign_curator() -> Weight {
|
||||
// Minimum execution time: 38_072 nanoseconds.
|
||||
Weight::from_ref_time(38_676_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628`
|
||||
// Estimated: `5255`
|
||||
// Minimum execution time: 22_592 nanoseconds.
|
||||
Weight::from_parts(22_952_000, 5255)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn accept_curator() -> Weight {
|
||||
// Minimum execution time: 33_207 nanoseconds.
|
||||
Weight::from_ref_time(34_415_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `624`
|
||||
// Estimated: `5255`
|
||||
// Minimum execution time: 20_920 nanoseconds.
|
||||
Weight::from_parts(21_369_000, 5255)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
fn award_bounty() -> Weight {
|
||||
// Minimum execution time: 28_033 nanoseconds.
|
||||
Weight::from_ref_time(28_343_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `570`
|
||||
// Estimated: `5143`
|
||||
// Minimum execution time: 17_853 nanoseconds.
|
||||
Weight::from_parts(18_280_000, 5143)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:3 w:3)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:3 w:3)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn claim_bounty() -> Weight {
|
||||
// Minimum execution time: 75_855 nanoseconds.
|
||||
Weight::from_ref_time(76_318_000)
|
||||
.saturating_add(T::DbWeight::get().reads(5))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `998`
|
||||
// Estimated: `12964`
|
||||
// Minimum execution time: 67_538 nanoseconds.
|
||||
Weight::from_parts(67_974_000, 12964)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_bounty_proposed() -> Weight {
|
||||
// Minimum execution time: 41_955 nanoseconds.
|
||||
Weight::from_ref_time(42_733_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `646`
|
||||
// Estimated: `7746`
|
||||
// Minimum execution time: 28_380 nanoseconds.
|
||||
Weight::from_parts(28_859_000, 7746)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_bounty_active() -> Weight {
|
||||
// Minimum execution time: 58_267 nanoseconds.
|
||||
Weight::from_ref_time(59_604_000)
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `914`
|
||||
// Estimated: `10349`
|
||||
// Minimum execution time: 47_739 nanoseconds.
|
||||
Weight::from_parts(48_388_000, 10349)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
fn extend_bounty_expiry() -> Weight {
|
||||
// Minimum execution time: 24_893 nanoseconds.
|
||||
Weight::from_ref_time(25_299_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `456`
|
||||
// Estimated: `2652`
|
||||
// Minimum execution time: 14_188 nanoseconds.
|
||||
Weight::from_parts(14_801_000, 2652)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
// Storage: Bounties Bounties (r:2 w:2)
|
||||
// Storage: System Account (r:4 w:4)
|
||||
/// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:100 w:100)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:200 w:200)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `b` is `[0, 100]`.
|
||||
fn spend_funds(b: u32, ) -> Weight {
|
||||
// Minimum execution time: 8_846 nanoseconds.
|
||||
Weight::from_ref_time(20_166_004)
|
||||
// Standard Error: 28_485
|
||||
.saturating_add(Weight::from_ref_time(26_712_253).saturating_mul(b.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `31 + b * (360 ±0)`
|
||||
// Estimated: `897 + b * (7858 ±0)`
|
||||
// Minimum execution time: 4_685 nanoseconds.
|
||||
Weight::from_parts(9_932_840, 897)
|
||||
// Standard Error: 14_301
|
||||
.saturating_add(Weight::from_ref_time(27_178_347).saturating_mul(b.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(b.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(b.into())))
|
||||
.saturating_add(Weight::from_proof_size(7858).saturating_mul(b.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Bounties BountyCount (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
// Storage: Bounties Bounties (r:0 w:1)
|
||||
/// Storage: Bounties BountyCount (r:1 w:1)
|
||||
/// Proof: Bounties BountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:0 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// The range of component `d` is `[0, 300]`.
|
||||
fn propose_bounty(d: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_366 nanoseconds.
|
||||
Weight::from_ref_time(34_444_773)
|
||||
// Standard Error: 1_161
|
||||
.saturating_add(Weight::from_ref_time(4_723).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `308`
|
||||
// Estimated: `3102`
|
||||
// Minimum execution time: 22_787 nanoseconds.
|
||||
Weight::from_parts(23_898_632, 3102)
|
||||
// Standard Error: 141
|
||||
.saturating_add(Weight::from_ref_time(568).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
fn approve_bounty() -> Weight {
|
||||
// Minimum execution time: 14_478 nanoseconds.
|
||||
Weight::from_ref_time(14_763_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `400`
|
||||
// Estimated: `3549`
|
||||
// Minimum execution time: 10_526 nanoseconds.
|
||||
Weight::from_parts(10_729_000, 3549)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
fn propose_curator() -> Weight {
|
||||
// Minimum execution time: 13_376 nanoseconds.
|
||||
Weight::from_ref_time(13_705_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `420`
|
||||
// Estimated: `2652`
|
||||
// Minimum execution time: 9_193 nanoseconds.
|
||||
Weight::from_parts(9_455_000, 2652)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn unassign_curator() -> Weight {
|
||||
// Minimum execution time: 38_072 nanoseconds.
|
||||
Weight::from_ref_time(38_676_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628`
|
||||
// Estimated: `5255`
|
||||
// Minimum execution time: 22_592 nanoseconds.
|
||||
Weight::from_parts(22_952_000, 5255)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn accept_curator() -> Weight {
|
||||
// Minimum execution time: 33_207 nanoseconds.
|
||||
Weight::from_ref_time(34_415_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `624`
|
||||
// Estimated: `5255`
|
||||
// Minimum execution time: 20_920 nanoseconds.
|
||||
Weight::from_parts(21_369_000, 5255)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
fn award_bounty() -> Weight {
|
||||
// Minimum execution time: 28_033 nanoseconds.
|
||||
Weight::from_ref_time(28_343_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `570`
|
||||
// Estimated: `5143`
|
||||
// Minimum execution time: 17_853 nanoseconds.
|
||||
Weight::from_parts(18_280_000, 5143)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:3 w:3)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:3 w:3)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn claim_bounty() -> Weight {
|
||||
// Minimum execution time: 75_855 nanoseconds.
|
||||
Weight::from_ref_time(76_318_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(5))
|
||||
.saturating_add(RocksDbWeight::get().writes(6))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `998`
|
||||
// Estimated: `12964`
|
||||
// Minimum execution time: 67_538 nanoseconds.
|
||||
Weight::from_parts(67_974_000, 12964)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_bounty_proposed() -> Weight {
|
||||
// Minimum execution time: 41_955 nanoseconds.
|
||||
Weight::from_ref_time(42_733_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `646`
|
||||
// Estimated: `7746`
|
||||
// Minimum execution time: 28_380 nanoseconds.
|
||||
Weight::from_parts(28_859_000, 7746)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
/// Proof: Bounties BountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_bounty_active() -> Weight {
|
||||
// Minimum execution time: 58_267 nanoseconds.
|
||||
Weight::from_ref_time(59_604_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(4))
|
||||
.saturating_add(RocksDbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `914`
|
||||
// Estimated: `10349`
|
||||
// Minimum execution time: 47_739 nanoseconds.
|
||||
Weight::from_parts(48_388_000, 10349)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
fn extend_bounty_expiry() -> Weight {
|
||||
// Minimum execution time: 24_893 nanoseconds.
|
||||
Weight::from_ref_time(25_299_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `456`
|
||||
// Estimated: `2652`
|
||||
// Minimum execution time: 14_188 nanoseconds.
|
||||
Weight::from_parts(14_801_000, 2652)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
// Storage: Bounties Bounties (r:2 w:2)
|
||||
// Storage: System Account (r:4 w:4)
|
||||
/// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:100 w:100)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:200 w:200)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `b` is `[0, 100]`.
|
||||
fn spend_funds(b: u32, ) -> Weight {
|
||||
// Minimum execution time: 8_846 nanoseconds.
|
||||
Weight::from_ref_time(20_166_004)
|
||||
// Standard Error: 28_485
|
||||
.saturating_add(Weight::from_ref_time(26_712_253).saturating_mul(b.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `31 + b * (360 ±0)`
|
||||
// Estimated: `897 + b * (7858 ±0)`
|
||||
// Minimum execution time: 4_685 nanoseconds.
|
||||
Weight::from_parts(9_932_840, 897)
|
||||
// Standard Error: 14_301
|
||||
.saturating_add(Weight::from_ref_time(27_178_347).saturating_mul(b.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(b.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(b.into())))
|
||||
.saturating_add(Weight::from_proof_size(7858).saturating_mul(b.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_child_bounties
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -60,176 +61,290 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_child_bounties using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: ChildBounties ChildBountyCount (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
// Storage: ChildBounties ChildBounties (r:0 w:1)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyCount (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// The range of component `d` is `[0, 300]`.
|
||||
fn add_child_bounty(d: u32, ) -> Weight {
|
||||
// Minimum execution time: 59_121 nanoseconds.
|
||||
Weight::from_ref_time(60_212_235 as u64)
|
||||
// Standard Error: 149
|
||||
.saturating_add(Weight::from_ref_time(412 as u64).saturating_mul(d as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `742`
|
||||
// Estimated: `10848`
|
||||
// Minimum execution time: 46_743 nanoseconds.
|
||||
Weight::from_parts(47_762_924, 10848)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(599).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
fn propose_curator() -> Weight {
|
||||
// Minimum execution time: 20_785 nanoseconds.
|
||||
Weight::from_ref_time(21_000_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `796`
|
||||
// Estimated: `7775`
|
||||
// Minimum execution time: 16_417 nanoseconds.
|
||||
Weight::from_parts(16_712_000, 7775)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn accept_curator() -> Weight {
|
||||
// Minimum execution time: 37_874 nanoseconds.
|
||||
Weight::from_ref_time(38_322_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `974`
|
||||
// Estimated: `7875`
|
||||
// Minimum execution time: 25_548 nanoseconds.
|
||||
Weight::from_parts(25_919_000, 7875)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn unassign_curator() -> Weight {
|
||||
// Minimum execution time: 43_385 nanoseconds.
|
||||
Weight::from_ref_time(43_774_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `974`
|
||||
// Estimated: `7875`
|
||||
// Minimum execution time: 27_645 nanoseconds.
|
||||
Weight::from_parts(27_947_000, 7875)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
fn award_child_bounty() -> Weight {
|
||||
// Minimum execution time: 31_390 nanoseconds.
|
||||
Weight::from_ref_time(31_802_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `839`
|
||||
// Estimated: `5272`
|
||||
// Minimum execution time: 20_002 nanoseconds.
|
||||
Weight::from_parts(20_512_000, 5272)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:3 w:3)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:3 w:3)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn claim_child_bounty() -> Weight {
|
||||
// Minimum execution time: 74_956 nanoseconds.
|
||||
Weight::from_ref_time(75_850_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `744`
|
||||
// Estimated: `12920`
|
||||
// Minimum execution time: 63_752 nanoseconds.
|
||||
Weight::from_parts(64_179_000, 12920)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_child_bounty_added() -> Weight {
|
||||
// Minimum execution time: 57_215 nanoseconds.
|
||||
Weight::from_ref_time(58_285_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1106`
|
||||
// Estimated: `15472`
|
||||
// Minimum execution time: 47_388 nanoseconds.
|
||||
Weight::from_parts(47_946_000, 15472)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:3 w:3)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:3 w:3)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_child_bounty_active() -> Weight {
|
||||
// Minimum execution time: 67_641 nanoseconds.
|
||||
Weight::from_ref_time(69_184_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1325`
|
||||
// Estimated: `18075`
|
||||
// Minimum execution time: 58_008 nanoseconds.
|
||||
Weight::from_parts(58_586_000, 18075)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: ChildBounties ChildBountyCount (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
// Storage: ChildBounties ChildBounties (r:0 w:1)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyCount (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBountyCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// The range of component `d` is `[0, 300]`.
|
||||
fn add_child_bounty(d: u32, ) -> Weight {
|
||||
// Minimum execution time: 59_121 nanoseconds.
|
||||
Weight::from_ref_time(60_212_235 as u64)
|
||||
// Standard Error: 149
|
||||
.saturating_add(Weight::from_ref_time(412 as u64).saturating_mul(d as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `742`
|
||||
// Estimated: `10848`
|
||||
// Minimum execution time: 46_743 nanoseconds.
|
||||
Weight::from_parts(47_762_924, 10848)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(599).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
fn propose_curator() -> Weight {
|
||||
// Minimum execution time: 20_785 nanoseconds.
|
||||
Weight::from_ref_time(21_000_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `796`
|
||||
// Estimated: `7775`
|
||||
// Minimum execution time: 16_417 nanoseconds.
|
||||
Weight::from_parts(16_712_000, 7775)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn accept_curator() -> Weight {
|
||||
// Minimum execution time: 37_874 nanoseconds.
|
||||
Weight::from_ref_time(38_322_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `974`
|
||||
// Estimated: `7875`
|
||||
// Minimum execution time: 25_548 nanoseconds.
|
||||
Weight::from_parts(25_919_000, 7875)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn unassign_curator() -> Weight {
|
||||
// Minimum execution time: 43_385 nanoseconds.
|
||||
Weight::from_ref_time(43_774_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `974`
|
||||
// Estimated: `7875`
|
||||
// Minimum execution time: 27_645 nanoseconds.
|
||||
Weight::from_parts(27_947_000, 7875)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
fn award_child_bounty() -> Weight {
|
||||
// Minimum execution time: 31_390 nanoseconds.
|
||||
Weight::from_ref_time(31_802_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `839`
|
||||
// Estimated: `5272`
|
||||
// Minimum execution time: 20_002 nanoseconds.
|
||||
Weight::from_parts(20_512_000, 5272)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:3 w:3)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:3 w:3)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn claim_child_bounty() -> Weight {
|
||||
// Minimum execution time: 74_956 nanoseconds.
|
||||
Weight::from_ref_time(75_850_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `744`
|
||||
// Estimated: `12920`
|
||||
// Minimum execution time: 63_752 nanoseconds.
|
||||
Weight::from_parts(64_179_000, 12920)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_child_bounty_added() -> Weight {
|
||||
// Minimum execution time: 57_215 nanoseconds.
|
||||
Weight::from_ref_time(58_285_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1106`
|
||||
// Estimated: `15472`
|
||||
// Minimum execution time: 47_388 nanoseconds.
|
||||
Weight::from_parts(47_946_000, 15472)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:3 w:3)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Storage: Bounties Bounties (r:1 w:0)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildBounties (max_values: None, max_size: Some(145), added: 2620, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:3 w:3)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
/// Proof: ChildBounties ChildrenCuratorFees (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
/// Proof: ChildBounties ParentChildBounties (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
/// Proof: ChildBounties ChildBountyDescriptions (max_values: None, max_size: Some(314), added: 2789, mode: MaxEncodedLen)
|
||||
fn close_child_bounty_active() -> Weight {
|
||||
// Minimum execution time: 67_641 nanoseconds.
|
||||
Weight::from_ref_time(69_184_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1325`
|
||||
// Estimated: `18075`
|
||||
// Minimum execution time: 58_008 nanoseconds.
|
||||
Weight::from_parts(58_586_000, 18075)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_collective
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -62,326 +63,492 @@ pub trait WeightInfo {
|
||||
/// 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)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
/// 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 {
|
||||
// Minimum execution time: 18_895 nanoseconds.
|
||||
Weight::from_ref_time(19_254_000 as u64)
|
||||
// Standard Error: 63_540
|
||||
.saturating_add(Weight::from_ref_time(5_061_801 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 63_540
|
||||
.saturating_add(Weight::from_ref_time(7_588_981 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)))
|
||||
// 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)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 24_469 nanoseconds.
|
||||
Weight::from_ref_time(23_961_134 as u64)
|
||||
// Standard Error: 43
|
||||
.saturating_add(Weight::from_ref_time(1_677 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 450
|
||||
.saturating_add(Weight::from_ref_time(18_645 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
// 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)
|
||||
// Storage: Council ProposalOf (r:1 w:0)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 26_476 nanoseconds.
|
||||
Weight::from_ref_time(25_829_298 as u64)
|
||||
// Standard Error: 49
|
||||
.saturating_add(Weight::from_ref_time(1_741 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 515
|
||||
.saturating_add(Weight::from_ref_time(29_436 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
// 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)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// 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]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 33_585 nanoseconds.
|
||||
Weight::from_ref_time(33_092_289 as u64)
|
||||
// Standard Error: 173
|
||||
.saturating_add(Weight::from_ref_time(4_266 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_812
|
||||
.saturating_add(Weight::from_ref_time(29_262 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_789
|
||||
.saturating_add(Weight::from_ref_time(181_285 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))
|
||||
// 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)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 36_374 nanoseconds.
|
||||
Weight::from_ref_time(38_950_243 as u64)
|
||||
// Standard Error: 2_583
|
||||
.saturating_add(Weight::from_ref_time(65_345 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))
|
||||
// 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)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 36_066 nanoseconds.
|
||||
Weight::from_ref_time(38_439_655 as u64)
|
||||
// Standard Error: 1_281
|
||||
.saturating_add(Weight::from_ref_time(17_045 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_249
|
||||
.saturating_add(Weight::from_ref_time(164_998 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))
|
||||
// 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)
|
||||
// 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]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 47_753 nanoseconds.
|
||||
Weight::from_ref_time(46_507_829 as u64)
|
||||
// Standard Error: 149
|
||||
.saturating_add(Weight::from_ref_time(2_159 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_581
|
||||
.saturating_add(Weight::from_ref_time(37_842 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_541
|
||||
.saturating_add(Weight::from_ref_time(173_395 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))
|
||||
// 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)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 39_416 nanoseconds.
|
||||
Weight::from_ref_time(39_610_161 as u64)
|
||||
// Standard Error: 1_231
|
||||
.saturating_add(Weight::from_ref_time(32_991 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_200
|
||||
.saturating_add(Weight::from_ref_time(170_773 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))
|
||||
// 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)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// 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]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 49_840 nanoseconds.
|
||||
Weight::from_ref_time(48_542_914 as u64)
|
||||
// Standard Error: 136
|
||||
.saturating_add(Weight::from_ref_time(2_650 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_442
|
||||
.saturating_add(Weight::from_ref_time(37_898 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_406
|
||||
.saturating_add(Weight::from_ref_time(182_176 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))
|
||||
// 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)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 24_199 nanoseconds.
|
||||
Weight::from_ref_time(26_869_176 as u64)
|
||||
// Standard Error: 1_609
|
||||
.saturating_add(Weight::from_ref_time(163_341 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))
|
||||
// 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)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
/// 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 {
|
||||
// Minimum execution time: 18_895 nanoseconds.
|
||||
Weight::from_ref_time(19_254_000 as u64)
|
||||
// Standard Error: 63_540
|
||||
.saturating_add(Weight::from_ref_time(5_061_801 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 63_540
|
||||
.saturating_add(Weight::from_ref_time(7_588_981 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)))
|
||||
// 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)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 24_469 nanoseconds.
|
||||
Weight::from_ref_time(23_961_134 as u64)
|
||||
// Standard Error: 43
|
||||
.saturating_add(Weight::from_ref_time(1_677 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 450
|
||||
.saturating_add(Weight::from_ref_time(18_645 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
// 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)
|
||||
// Storage: Council ProposalOf (r:1 w:0)
|
||||
/// The range of component `b` is `[1, 1024]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 26_476 nanoseconds.
|
||||
Weight::from_ref_time(25_829_298 as u64)
|
||||
// Standard Error: 49
|
||||
.saturating_add(Weight::from_ref_time(1_741 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 515
|
||||
.saturating_add(Weight::from_ref_time(29_436 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
// 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)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// 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]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 33_585 nanoseconds.
|
||||
Weight::from_ref_time(33_092_289 as u64)
|
||||
// Standard Error: 173
|
||||
.saturating_add(Weight::from_ref_time(4_266 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_812
|
||||
.saturating_add(Weight::from_ref_time(29_262 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_789
|
||||
.saturating_add(Weight::from_ref_time(181_285 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// 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)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 36_374 nanoseconds.
|
||||
Weight::from_ref_time(38_950_243 as u64)
|
||||
// Standard Error: 2_583
|
||||
.saturating_add(Weight::from_ref_time(65_345 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// 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)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 36_066 nanoseconds.
|
||||
Weight::from_ref_time(38_439_655 as u64)
|
||||
// Standard Error: 1_281
|
||||
.saturating_add(Weight::from_ref_time(17_045 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_249
|
||||
.saturating_add(Weight::from_ref_time(164_998 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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)
|
||||
// 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]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 47_753 nanoseconds.
|
||||
Weight::from_ref_time(46_507_829 as u64)
|
||||
// Standard Error: 149
|
||||
.saturating_add(Weight::from_ref_time(2_159 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_581
|
||||
.saturating_add(Weight::from_ref_time(37_842 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_541
|
||||
.saturating_add(Weight::from_ref_time(173_395 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 39_416 nanoseconds.
|
||||
Weight::from_ref_time(39_610_161 as u64)
|
||||
// Standard Error: 1_231
|
||||
.saturating_add(Weight::from_ref_time(32_991 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_200
|
||||
.saturating_add(Weight::from_ref_time(170_773 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// 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]`.
|
||||
/// 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 {
|
||||
// Minimum execution time: 49_840 nanoseconds.
|
||||
Weight::from_ref_time(48_542_914 as u64)
|
||||
// Standard Error: 136
|
||||
.saturating_add(Weight::from_ref_time(2_650 as u64).saturating_mul(b as u64))
|
||||
// Standard Error: 1_442
|
||||
.saturating_add(Weight::from_ref_time(37_898 as u64).saturating_mul(m as u64))
|
||||
// Standard Error: 1_406
|
||||
.saturating_add(Weight::from_ref_time(182_176 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 24_199 nanoseconds.
|
||||
Weight::from_ref_time(26_869_176 as u64)
|
||||
// Standard Error: 1_609
|
||||
.saturating_add(Weight::from_ref_time(163_341 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -205,11 +205,13 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// The base weight consumed on processing contracts deletion queue.
|
||||
#[pov_mode = Ignored]
|
||||
on_process_deletion_queue_batch {}: {
|
||||
Storage::<T>::process_deletion_queue_batch(Weight::MAX)
|
||||
}
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
on_initialize_per_trie_key {
|
||||
let k in 0..1024;
|
||||
let instance = Contract::<T>::with_storage(WasmModule::dummy(), k, T::Schedule::get().limits.payload_len)?;
|
||||
@@ -218,6 +220,7 @@ benchmarks! {
|
||||
Storage::<T>::process_deletion_queue_batch(Weight::MAX)
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
on_initialize_per_queue_item {
|
||||
let q in 0..1024.min(T::DeletionQueueDepth::get());
|
||||
for i in 0 .. q {
|
||||
@@ -232,6 +235,7 @@ benchmarks! {
|
||||
// This benchmarks the additional weight that is charged when a contract is executed the
|
||||
// first time after a new schedule was deployed: For every new schedule a contract needs
|
||||
// to re-run the instrumentation once.
|
||||
#[pov_mode = Ignored]
|
||||
reinstrument {
|
||||
let c in 0 .. Perbill::from_percent(49).mul_ceil(T::MaxCodeLen::get());
|
||||
let WasmModule { code, hash, .. } = WasmModule::<T>::sized(c, Location::Call);
|
||||
@@ -248,6 +252,7 @@ benchmarks! {
|
||||
// is responsible. This is achieved by generating all code to the `deploy` function
|
||||
// which is in the wasm module but not executed on `call`.
|
||||
// The results are supposed to be used as `call_with_code_kb(c) - call_with_code_kb(0)`.
|
||||
#[pov_mode = Ignored]
|
||||
call_with_code_per_byte {
|
||||
let c in 0 .. T::MaxCodeLen::get();
|
||||
let instance = Contract::<T>::with_caller(
|
||||
@@ -273,6 +278,7 @@ benchmarks! {
|
||||
//
|
||||
// We cannot let `c` grow to the maximum code size because the code is not allowed
|
||||
// to be larger than the maximum size **after instrumentation**.
|
||||
#[pov_mode = Ignored]
|
||||
instantiate_with_code {
|
||||
let c in 0 .. Perbill::from_percent(49).mul_ceil(T::MaxCodeLen::get());
|
||||
let i in 0 .. code::max_pages::<T>() * 64 * 1024;
|
||||
@@ -304,6 +310,7 @@ benchmarks! {
|
||||
// Instantiate uses a dummy contract constructor to measure the overhead of the instantiate.
|
||||
// `i`: Size of the input in kilobytes.
|
||||
// `s`: Size of the salt in kilobytes.
|
||||
#[pov_mode = Ignored]
|
||||
instantiate {
|
||||
let i in 0 .. code::max_pages::<T>() * 64 * 1024;
|
||||
let s in 0 .. code::max_pages::<T>() * 64 * 1024;
|
||||
@@ -335,6 +342,7 @@ benchmarks! {
|
||||
// part of `seal_input`. The costs for invoking a contract of a specific size are not part
|
||||
// of this benchmark because we cannot know the size of the contract when issuing a call
|
||||
// transaction. See `invoke_per_code_kb` for this.
|
||||
#[pov_mode = Ignored]
|
||||
call {
|
||||
let data = vec![42u8; 1024];
|
||||
let instance = Contract::<T>::with_caller(
|
||||
@@ -367,6 +375,7 @@ benchmarks! {
|
||||
//
|
||||
// We cannot let `c` grow to the maximum code size because the code is not allowed
|
||||
// to be larger than the maximum size **after instrumentation**.
|
||||
#[pov_mode = Ignored]
|
||||
upload_code {
|
||||
let c in 0 .. Perbill::from_percent(49).mul_ceil(T::MaxCodeLen::get());
|
||||
let caller = whitelisted_caller();
|
||||
@@ -383,6 +392,7 @@ benchmarks! {
|
||||
// Removing code does not depend on the size of the contract because all the information
|
||||
// needed to verify the removal claim (refcount, owner) is stored in a separate storage
|
||||
// item (`OwnerInfoOf`).
|
||||
#[pov_mode = Ignored]
|
||||
remove_code {
|
||||
let caller = whitelisted_caller();
|
||||
T::Currency::make_free_balance_be(&caller, caller_funding::<T>());
|
||||
@@ -399,6 +409,7 @@ benchmarks! {
|
||||
assert!(<Contract<T>>::code_removed(&hash));
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
set_code {
|
||||
let instance = <Contract<T>>::with_caller(
|
||||
whitelisted_caller(), WasmModule::dummy(), vec![],
|
||||
@@ -413,6 +424,7 @@ benchmarks! {
|
||||
assert_eq!(instance.info()?.code_hash, hash);
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_caller {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -421,6 +433,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_is_contract {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let accounts = (0 .. r * API_BENCHMARK_BATCH_SIZE)
|
||||
@@ -458,6 +471,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_code_hash {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let accounts = (0 .. r * API_BENCHMARK_BATCH_SIZE)
|
||||
@@ -503,6 +517,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_own_code_hash {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -511,6 +526,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_caller_is_origin {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -531,6 +547,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_address {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -539,6 +556,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_gas_left {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -547,6 +565,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_balance {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -555,6 +574,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_value_transferred {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -563,6 +583,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_minimum_balance {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -571,6 +592,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_block_number {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -579,6 +601,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_now {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let instance = Contract::<T>::new(WasmModule::getter(
|
||||
@@ -587,6 +610,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_weight_to_fee {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let pages = code::max_pages::<T>();
|
||||
@@ -614,6 +638,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_gas {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -634,6 +659,7 @@ benchmarks! {
|
||||
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_input {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -661,6 +687,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_input_per_kb {
|
||||
let n in 0 .. code::max_pages::<T>() * 64;
|
||||
let pages = code::max_pages::<T>();
|
||||
@@ -694,6 +721,7 @@ benchmarks! {
|
||||
// We cannot call `seal_return` multiple times. Therefore our weight determination is not
|
||||
// as precise as with other APIs. Because this function can only be called once per
|
||||
// contract it cannot be used as an attack vector.
|
||||
#[pov_mode = Ignored]
|
||||
seal_return {
|
||||
let r in 0 .. 1;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -716,6 +744,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_return_per_kb {
|
||||
let n in 0 .. code::max_pages::<T>() * 64;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -740,6 +769,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// The same argument as for `seal_return` is true here.
|
||||
#[pov_mode = Ignored]
|
||||
seal_terminate {
|
||||
let r in 0 .. 1;
|
||||
let beneficiary = account::<T::AccountId>("beneficiary", 0, 0);
|
||||
@@ -782,6 +812,7 @@ benchmarks! {
|
||||
// We benchmark only for the maximum subject length. We assume that this is some lowish
|
||||
// number (< 1 KB). Therefore we are not overcharging too much in case a smaller subject is
|
||||
// used.
|
||||
#[pov_mode = Ignored]
|
||||
seal_random {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let pages = code::max_pages::<T>();
|
||||
@@ -816,6 +847,7 @@ benchmarks! {
|
||||
|
||||
// Overhead of calling the function without any topic.
|
||||
// We benchmark for the worst case (largest event).
|
||||
#[pov_mode = Ignored]
|
||||
seal_deposit_event {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -842,6 +874,7 @@ benchmarks! {
|
||||
// Benchmark the overhead that topics generate.
|
||||
// `t`: Number of topics
|
||||
// `n`: Size of event payload in kb
|
||||
#[pov_mode = Ignored]
|
||||
seal_deposit_event_per_topic_and_kb {
|
||||
let t in 0 .. T::Schedule::get().limits.event_topics;
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 1024;
|
||||
@@ -880,6 +913,7 @@ benchmarks! {
|
||||
// The size of the supplied message does not influence the weight because as it is never
|
||||
// processed during on-chain execution: It is only ever read during debugging which happens
|
||||
// when the contract is called as RPC where weights do not matter.
|
||||
#[pov_mode = Ignored]
|
||||
seal_debug_message {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let max_bytes = code::max_pages::<T>() * 64 * 1024;
|
||||
@@ -910,6 +944,7 @@ benchmarks! {
|
||||
// because re-writing at an existing key is always more expensive than writing
|
||||
// it at a virgin key.
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_set_storage {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES/2;
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -958,6 +993,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_set_storage_per_new_kb {
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 2048; // half of the max payload_len in kb
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1006,6 +1042,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_set_storage_per_old_kb {
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 2048; // half of the max payload_len in kb
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1058,6 +1095,7 @@ benchmarks! {
|
||||
// deleting a non existing key. We generate keys of a maximum length, and have to
|
||||
// reduce batch size in order to make resulting contract code size less than MaxCodeLen.
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_clear_storage {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES/2;
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1105,6 +1143,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_clear_storage_per_kb {
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 2048; // half of the max payload_len in kb
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1152,6 +1191,7 @@ benchmarks! {
|
||||
|
||||
// We make sure that all storage accesses are to unique keys.
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_get_storage {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES/2;
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1206,6 +1246,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_get_storage_per_kb {
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 2048; // half of the max payload_len in kb
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1261,6 +1302,7 @@ benchmarks! {
|
||||
|
||||
// We make sure that all storage accesses are to unique keys.
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_contains_storage {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES/2;
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1309,6 +1351,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_contains_storage_per_kb {
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 2048; // half of the max payload_len in kb
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1356,6 +1399,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_take_storage {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES/2;
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1410,6 +1454,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[skip_meta]
|
||||
#[pov_mode = Ignored]
|
||||
seal_take_storage_per_kb {
|
||||
let n in 0 .. T::Schedule::get().limits.payload_len / 2048; // half of the max payload_len in kb
|
||||
let max_key_len = T::MaxStorageKeyLen::get();
|
||||
@@ -1464,6 +1509,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// We transfer to unique accounts.
|
||||
#[pov_mode = Ignored]
|
||||
seal_transfer {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let accounts = (0..r * API_BENCHMARK_BATCH_SIZE)
|
||||
@@ -1517,6 +1563,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// We call unique accounts.
|
||||
#[pov_mode = Ignored]
|
||||
seal_call {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let dummy_code = WasmModule::<T>::dummy_with_bytes(0);
|
||||
@@ -1575,6 +1622,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_delegate_call {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let hashes = (0..r * API_BENCHMARK_BATCH_SIZE)
|
||||
@@ -1627,6 +1675,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller);
|
||||
}: call(origin, callee, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_call_per_transfer_clone_kb {
|
||||
let t in 0 .. 1;
|
||||
let c in 0 .. code::max_pages::<T>() * 64;
|
||||
@@ -1685,6 +1734,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, bytes)
|
||||
|
||||
// We assume that every instantiate sends at least the minimum balance.
|
||||
#[pov_mode = Ignored]
|
||||
seal_instantiate {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let hashes = (0..r * API_BENCHMARK_BATCH_SIZE)
|
||||
@@ -1798,6 +1848,7 @@ benchmarks! {
|
||||
}
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_instantiate_per_transfer_input_salt_kb {
|
||||
let t in 0 .. 1;
|
||||
let i in 0 .. (code::max_pages::<T>() - 1) * 64;
|
||||
@@ -1892,6 +1943,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// Only the overhead of calling the function itself with minimal arguments.
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_sha2_256 {
|
||||
let r in 0 .. 1;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1901,6 +1953,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// `n`: Input to hash in kilobytes
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_sha2_256_per_kb {
|
||||
let n in 0 .. code::max_pages::<T>() * 64;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1910,6 +1963,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// Only the overhead of calling the function itself with minimal arguments.
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_keccak_256 {
|
||||
let r in 0 .. 1;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1919,6 +1973,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// `n`: Input to hash in kilobytes
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_keccak_256_per_kb {
|
||||
let n in 0 .. code::max_pages::<T>() * 64;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1928,6 +1983,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// Only the overhead of calling the function itself with minimal arguments.
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_blake2_256 {
|
||||
let r in 0 .. 1;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1937,6 +1993,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// `n`: Input to hash in kilobytes
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_blake2_256_per_kb {
|
||||
let n in 0 .. code::max_pages::<T>() * 64;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1946,6 +2003,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// Only the overhead of calling the function itself with minimal arguments.
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_blake2_128 {
|
||||
let r in 0 .. 1;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1955,6 +2013,7 @@ benchmarks! {
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
// `n`: Input to hash in kilobytes
|
||||
#[pov_mode = Ignored]
|
||||
seal_hash_blake2_128_per_kb {
|
||||
let n in 0 .. code::max_pages::<T>() * 64;
|
||||
let instance = Contract::<T>::new(WasmModule::hasher(
|
||||
@@ -1965,6 +2024,7 @@ benchmarks! {
|
||||
|
||||
// Only calling the function itself with valid arguments.
|
||||
// It generates different private keys and signatures for the message "Hello world".
|
||||
#[pov_mode = Ignored]
|
||||
seal_ecdsa_recover {
|
||||
let r in 0 .. 1;
|
||||
|
||||
@@ -2013,6 +2073,7 @@ benchmarks! {
|
||||
|
||||
// Only calling the function itself for the list of
|
||||
// generated different ECDSA keys.
|
||||
#[pov_mode = Ignored]
|
||||
seal_ecdsa_to_eth_address {
|
||||
let r in 0 .. 1;
|
||||
let key_type = sp_core::crypto::KeyTypeId(*b"code");
|
||||
@@ -2048,6 +2109,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_set_code_hash {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code_hashes = (0..r * API_BENCHMARK_BATCH_SIZE)
|
||||
@@ -2088,6 +2150,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_reentrance_count {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2108,6 +2171,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_account_reentrance_count {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let dummy_code = WasmModule::<T>::dummy_with_bytes(0);
|
||||
@@ -2141,6 +2205,7 @@ benchmarks! {
|
||||
let origin = RawOrigin::Signed(instance.caller.clone());
|
||||
}: call(origin, instance.addr, 0u32.into(), Weight::MAX, None, vec![])
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
seal_instantiation_nonce {
|
||||
let r in 0 .. API_BENCHMARK_BATCHES;
|
||||
let code = WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2171,6 +2236,7 @@ benchmarks! {
|
||||
// The weight that would result from the respective benchmark we call: `w_bench`.
|
||||
//
|
||||
// w_i{32,64}const = w_drop = w_bench / 2
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64const {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2185,6 +2251,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_i{32,64}load = w_bench - 2 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64load {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2201,6 +2268,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_i{32,64}store{...} = w_bench - 2 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64store {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2217,6 +2285,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_select = w_bench - 4 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_select {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2234,6 +2303,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_if = w_bench - 3 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_if {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2254,6 +2324,7 @@ benchmarks! {
|
||||
|
||||
// w_br = w_bench - 2 * w_param
|
||||
// Block instructions are not counted.
|
||||
#[pov_mode = Ignored]
|
||||
instr_br {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2280,6 +2351,7 @@ benchmarks! {
|
||||
|
||||
// w_br_if = w_bench - 3 * w_param
|
||||
// Block instructions are not counted.
|
||||
#[pov_mode = Ignored]
|
||||
instr_br_if {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2307,6 +2379,7 @@ benchmarks! {
|
||||
|
||||
// w_br_table = w_bench - 3 * w_param
|
||||
// Block instructions are not counted.
|
||||
#[pov_mode = Ignored]
|
||||
instr_br_table {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let table = Box::new(BrTableData {
|
||||
@@ -2337,6 +2410,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_br_table_per_entry = w_bench
|
||||
#[pov_mode = Ignored]
|
||||
instr_br_table_per_entry {
|
||||
let e in 1 .. T::Schedule::get().limits.br_table_size;
|
||||
let entry: Vec<u32> = [0, 1].iter()
|
||||
@@ -2371,6 +2445,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_call = w_bench - 2 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_call {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2391,6 +2466,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_call_indrect = w_bench - 3 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_call_indirect {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let num_elements = T::Schedule::get().limits.table_size;
|
||||
@@ -2421,6 +2497,7 @@ benchmarks! {
|
||||
// Calling a function indirectly causes it to go through a thunk function whose runtime
|
||||
// linearly depend on the amount of parameters to this function.
|
||||
// Please note that this is not necessary with a direct call.
|
||||
#[pov_mode = Ignored]
|
||||
instr_call_indirect_per_param {
|
||||
let p in 0 .. T::Schedule::get().limits.parameters;
|
||||
let num_elements = T::Schedule::get().limits.table_size;
|
||||
@@ -2450,6 +2527,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_per_local = w_bench
|
||||
#[pov_mode = Ignored]
|
||||
instr_call_per_local {
|
||||
let l in 0 .. T::Schedule::get().limits.locals;
|
||||
let mut aux_body = body::plain(vec![
|
||||
@@ -2468,6 +2546,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_local_get = w_bench - 1 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_local_get {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let max_locals = T::Schedule::get().limits.locals;
|
||||
@@ -2485,6 +2564,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_local_set = w_bench - 1 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_local_set {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let max_locals = T::Schedule::get().limits.locals;
|
||||
@@ -2502,6 +2582,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_local_tee = w_bench - 2 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_local_tee {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let max_locals = T::Schedule::get().limits.locals;
|
||||
@@ -2520,6 +2601,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_global_get = w_bench - 1 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_global_get {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let max_globals = T::Schedule::get().limits.globals;
|
||||
@@ -2536,6 +2618,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_global_set = w_bench - 1 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_global_set {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let max_globals = T::Schedule::get().limits.globals;
|
||||
@@ -2552,6 +2635,7 @@ benchmarks! {
|
||||
}
|
||||
|
||||
// w_memory_get = w_bench - 1 * w_param
|
||||
#[pov_mode = Ignored]
|
||||
instr_memory_current {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2571,6 +2655,7 @@ benchmarks! {
|
||||
// Therefore the repeat count is limited by the maximum memory any contract can have.
|
||||
// Using a contract with more memory will skew the benchmark because the runtime of grow
|
||||
// depends on how much memory is already allocated.
|
||||
#[pov_mode = Ignored]
|
||||
instr_memory_grow {
|
||||
let r in 0 .. 1;
|
||||
let max_pages = ImportedMemory::max::<T>().max_pages;
|
||||
@@ -2593,6 +2678,7 @@ benchmarks! {
|
||||
// Unary numeric instructions.
|
||||
// All use w = w_bench - 2 * w_param.
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64clz {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::unary_instr(
|
||||
@@ -2603,6 +2689,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64ctz {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::unary_instr(
|
||||
@@ -2613,6 +2700,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64popcnt {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::unary_instr(
|
||||
@@ -2623,6 +2711,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64eqz {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::unary_instr(
|
||||
@@ -2633,6 +2722,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64extendsi32 {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2647,6 +2737,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64extendui32 {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::from(ModuleDefinition {
|
||||
@@ -2661,6 +2752,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i32wrapi64 {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::unary_instr(
|
||||
@@ -2674,6 +2766,7 @@ benchmarks! {
|
||||
// Binary numeric instructions.
|
||||
// All use w = w_bench - 3 * w_param.
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64eq {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2684,6 +2777,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64ne {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2694,6 +2788,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64lts {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2704,6 +2799,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64ltu {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2714,6 +2810,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64gts {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2724,6 +2821,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64gtu {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2734,6 +2832,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64les {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2744,6 +2843,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64leu {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2754,6 +2854,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64ges {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2764,6 +2865,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64geu {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2774,6 +2876,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64add {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2784,6 +2887,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64sub {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2794,6 +2898,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64mul {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2804,6 +2909,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64divs {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2814,6 +2920,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64divu {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2824,6 +2931,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64rems {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2834,6 +2942,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64remu {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2844,6 +2953,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64and {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2854,6 +2964,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64or {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2864,6 +2975,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64xor {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2874,6 +2986,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64shl {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2884,6 +2997,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64shrs {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2894,6 +3008,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64shru {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2904,6 +3019,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64rotl {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2914,6 +3030,7 @@ benchmarks! {
|
||||
sbox.invoke();
|
||||
}
|
||||
|
||||
#[pov_mode = Ignored]
|
||||
instr_i64rotr {
|
||||
let r in 0 .. INSTR_BENCHMARK_BATCHES;
|
||||
let mut sbox = Sandbox::from(&WasmModule::<T>::binary_instr(
|
||||
@@ -2931,6 +3048,7 @@ benchmarks! {
|
||||
// --features runtime-benchmarks -- benchmark pallet --extra --dev --execution=native \
|
||||
// -p pallet_contracts -e print_schedule --no-median-slopes --no-min-squares
|
||||
#[extra]
|
||||
#[pov_mode = Ignored]
|
||||
print_schedule {
|
||||
#[cfg(feature = "std")]
|
||||
{
|
||||
@@ -2956,6 +3074,7 @@ benchmarks! {
|
||||
// `g` is used to enable gas instrumentation to compare the performance impact of
|
||||
// that instrumentation at runtime.
|
||||
#[extra]
|
||||
#[pov_mode = Ignored]
|
||||
ink_erc20_transfer {
|
||||
let g in 0 .. 1;
|
||||
let gas_metering = g != 0;
|
||||
@@ -2994,6 +3113,7 @@ benchmarks! {
|
||||
// `g` is used to enable gas instrumentation to compare the performance impact of
|
||||
// that instrumentation at runtime.
|
||||
#[extra]
|
||||
#[pov_mode = Ignored]
|
||||
solang_erc20_transfer {
|
||||
let g in 0 .. 1;
|
||||
let gas_metering = g != 0;
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
//! WebAssembly based smart contracts in the Rust programming language.
|
||||
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
#![cfg_attr(feature = "runtime-benchmarks", recursion_limit = "512")]
|
||||
#![cfg_attr(feature = "runtime-benchmarks", recursion_limit = "1024")]
|
||||
|
||||
#[macro_use]
|
||||
mod gas;
|
||||
|
||||
+3024
-1768
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_conviction_voting
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -59,164 +60,262 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_conviction_voting using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn vote_new() -> Weight {
|
||||
// Minimum execution time: 131_633 nanoseconds.
|
||||
Weight::from_ref_time(132_742_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `13168`
|
||||
// Estimated: `257859`
|
||||
// Minimum execution time: 85_569 nanoseconds.
|
||||
Weight::from_parts(86_492_000, 257859)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn vote_existing() -> Weight {
|
||||
// Minimum execution time: 176_240 nanoseconds.
|
||||
Weight::from_ref_time(183_274_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `20342`
|
||||
// Estimated: `257859`
|
||||
// Minimum execution time: 212_727 nanoseconds.
|
||||
Weight::from_parts(213_741_000, 257859)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn remove_vote() -> Weight {
|
||||
// Minimum execution time: 158_880 nanoseconds.
|
||||
Weight::from_ref_time(164_648_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `20062`
|
||||
// Estimated: `251551`
|
||||
// Minimum execution time: 200_513 nanoseconds.
|
||||
Weight::from_parts(201_589_000, 251551)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:0)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:0)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
fn remove_other_vote() -> Weight {
|
||||
// Minimum execution time: 60_330 nanoseconds.
|
||||
Weight::from_ref_time(61_588_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `12738`
|
||||
// Estimated: `32557`
|
||||
// Minimum execution time: 43_083 nanoseconds.
|
||||
Weight::from_parts(43_763_000, 32557)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 63_088 nanoseconds.
|
||||
Weight::from_ref_time(67_803_536 as u64)
|
||||
// Standard Error: 197_102
|
||||
.saturating_add(Weight::from_ref_time(31_557_563 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(r as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272 + r * (1689 ±0)`
|
||||
// Estimated: `176657 + r * (110917 ±0)`
|
||||
// Minimum execution time: 33_246 nanoseconds.
|
||||
Weight::from_parts(34_560_391, 176657)
|
||||
// Standard Error: 63_925
|
||||
.saturating_add(Weight::from_ref_time(34_500_408).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_proof_size(110917).saturating_mul(r.into()))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 45_150 nanoseconds.
|
||||
Weight::from_ref_time(51_547_530 as u64)
|
||||
// Standard Error: 771_127
|
||||
.saturating_add(Weight::from_ref_time(26_927_969 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(r as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `470 + r * (1407 ±0)`
|
||||
// Estimated: `170349 + r * (110917 ±0)`
|
||||
// Minimum execution time: 20_508 nanoseconds.
|
||||
Weight::from_parts(21_240_024, 170349)
|
||||
// Standard Error: 37_314
|
||||
.saturating_add(Weight::from_ref_time(30_890_875).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_proof_size(110917).saturating_mul(r.into()))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn unlock() -> Weight {
|
||||
// Minimum execution time: 75_067 nanoseconds.
|
||||
Weight::from_ref_time(76_888_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `11797`
|
||||
// Estimated: `36024`
|
||||
// Minimum execution time: 50_305 nanoseconds.
|
||||
Weight::from_parts(51_226_000, 36024)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn vote_new() -> Weight {
|
||||
// Minimum execution time: 131_633 nanoseconds.
|
||||
Weight::from_ref_time(132_742_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `13168`
|
||||
// Estimated: `257859`
|
||||
// Minimum execution time: 85_569 nanoseconds.
|
||||
Weight::from_parts(86_492_000, 257859)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn vote_existing() -> Weight {
|
||||
// Minimum execution time: 176_240 nanoseconds.
|
||||
Weight::from_ref_time(183_274_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `20342`
|
||||
// Estimated: `257859`
|
||||
// Minimum execution time: 212_727 nanoseconds.
|
||||
Weight::from_parts(213_741_000, 257859)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn remove_vote() -> Weight {
|
||||
// Minimum execution time: 158_880 nanoseconds.
|
||||
Weight::from_ref_time(164_648_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `20062`
|
||||
// Estimated: `251551`
|
||||
// Minimum execution time: 200_513 nanoseconds.
|
||||
Weight::from_parts(201_589_000, 251551)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:0)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:0)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
fn remove_other_vote() -> Weight {
|
||||
// Minimum execution time: 60_330 nanoseconds.
|
||||
Weight::from_ref_time(61_588_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `12738`
|
||||
// Estimated: `32557`
|
||||
// Minimum execution time: 43_083 nanoseconds.
|
||||
Weight::from_parts(43_763_000, 32557)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 63_088 nanoseconds.
|
||||
Weight::from_ref_time(67_803_536 as u64)
|
||||
// Standard Error: 197_102
|
||||
.saturating_add(Weight::from_ref_time(31_557_563 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(r as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272 + r * (1689 ±0)`
|
||||
// Estimated: `176657 + r * (110917 ±0)`
|
||||
// Minimum execution time: 33_246 nanoseconds.
|
||||
Weight::from_parts(34_560_391, 176657)
|
||||
// Standard Error: 63_925
|
||||
.saturating_add(Weight::from_ref_time(34_500_408).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_proof_size(110917).saturating_mul(r.into()))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: Referenda ReferendumInfoFor (max_values: None, max_size: Some(366), added: 2841, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 45_150 nanoseconds.
|
||||
Weight::from_ref_time(51_547_530 as u64)
|
||||
// Standard Error: 771_127
|
||||
.saturating_add(Weight::from_ref_time(26_927_969 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(r as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `470 + r * (1407 ±0)`
|
||||
// Estimated: `170349 + r * (110917 ±0)`
|
||||
// Minimum execution time: 20_508 nanoseconds.
|
||||
Weight::from_parts(21_240_024, 170349)
|
||||
// Standard Error: 37_314
|
||||
.saturating_add(Weight::from_ref_time(30_890_875).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_proof_size(110917).saturating_mul(r.into()))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting VotingFor (max_values: None, max_size: Some(27241), added: 29716, mode: MaxEncodedLen)
|
||||
/// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
/// Proof: ConvictionVoting ClassLocksFor (max_values: None, max_size: Some(59), added: 2534, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn unlock() -> Weight {
|
||||
// Minimum execution time: 75_067 nanoseconds.
|
||||
Weight::from_ref_time(76_888_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `11797`
|
||||
// Estimated: `36024`
|
||||
// Minimum execution time: 50_305 nanoseconds.
|
||||
Weight::from_parts(51_226_000, 36024)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_election_provider_multi_phase
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -62,262 +63,422 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_election_provider_multi_phase using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
// Storage: Babe EpochIndex (r:1 w:0)
|
||||
// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
// Storage: Staking ForceEra (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
/// Proof: Staking CurrentPlannedSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: Babe EpochIndex (r:1 w:0)
|
||||
/// Proof: Babe EpochIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
/// Proof: Babe GenesisSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ForceEra (r:1 w:0)
|
||||
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
// Minimum execution time: 17_309 nanoseconds.
|
||||
Weight::from_ref_time(17_646_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `994`
|
||||
// Estimated: `6983`
|
||||
// Minimum execution time: 17_801 nanoseconds.
|
||||
Weight::from_parts(18_364_000, 6983)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
// Minimum execution time: 17_992 nanoseconds.
|
||||
Weight::from_ref_time(18_426_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 12_814 nanoseconds.
|
||||
Weight::from_parts(13_154_000, 1218)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
// Minimum execution time: 17_340 nanoseconds.
|
||||
Weight::from_ref_time(17_881_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 14_565 nanoseconds.
|
||||
Weight::from_parts(15_097_000, 1218)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
// Minimum execution time: 35_571 nanoseconds.
|
||||
Weight::from_ref_time(35_989_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2809`
|
||||
// Minimum execution time: 23_341 nanoseconds.
|
||||
Weight::from_parts(23_770_000, 2809)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn finalize_signed_phase_reject_solution() -> Weight {
|
||||
// Minimum execution time: 27_403 nanoseconds.
|
||||
Weight::from_ref_time(27_879_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 16_662 nanoseconds.
|
||||
Weight::from_parts(16_898_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight {
|
||||
// Minimum execution time: 571_900 nanoseconds.
|
||||
Weight::from_ref_time(589_170_000 as u64)
|
||||
// Standard Error: 7_123
|
||||
.saturating_add(Weight::from_ref_time(384_767 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 215_168 nanoseconds.
|
||||
Weight::from_ref_time(219_887_000)
|
||||
// Standard Error: 1_444
|
||||
.saturating_add(Weight::from_ref_time(146_388).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn elect_queued(a: u32, d: u32, ) -> Weight {
|
||||
// Minimum execution time: 1_296_481 nanoseconds.
|
||||
Weight::from_ref_time(1_076_121_575 as u64)
|
||||
// Standard Error: 5_708
|
||||
.saturating_add(Weight::from_ref_time(474_995 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 8_556
|
||||
.saturating_add(Weight::from_ref_time(39_224 as u64).saturating_mul(d as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `368 + a * (768 ±0) + d * (48 ±0)`
|
||||
// Estimated: `9540 + a * (6912 ±0) + d * (441 ±0)`
|
||||
// Minimum execution time: 268_021 nanoseconds.
|
||||
Weight::from_parts(72_491_937, 9540)
|
||||
// Standard Error: 2_910
|
||||
.saturating_add(Weight::from_ref_time(303_955).saturating_mul(a.into()))
|
||||
// Standard Error: 4_363
|
||||
.saturating_add(Weight::from_ref_time(167_369).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8_u64))
|
||||
.saturating_add(Weight::from_proof_size(6912).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_proof_size(441).saturating_mul(d.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
/// Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
fn submit() -> Weight {
|
||||
// Minimum execution time: 58_716 nanoseconds.
|
||||
Weight::from_ref_time(59_480_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `924`
|
||||
// Estimated: `7111`
|
||||
// Minimum execution time: 44_177 nanoseconds.
|
||||
Weight::from_parts(44_663_000, 7111)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn submit_unsigned(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_540_737 nanoseconds.
|
||||
Weight::from_ref_time(5_567_381_000 as u64)
|
||||
// Standard Error: 18_563
|
||||
.saturating_add(Weight::from_ref_time(603_280 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 55_009
|
||||
.saturating_add(Weight::from_ref_time(3_164_053 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(7 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
fn submit_unsigned(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `251 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `5222 + v * (3871 ±0) + t * (224 ±0)`
|
||||
// Minimum execution time: 4_425_457 nanoseconds.
|
||||
Weight::from_parts(4_445_889_000, 5222)
|
||||
// Standard Error: 13_250
|
||||
.saturating_add(Weight::from_ref_time(48_844).saturating_mul(v.into()))
|
||||
// Standard Error: 39_266
|
||||
.saturating_add(Weight::from_ref_time(4_144_034).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(3871).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(224).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn feasibility_check(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_021_808 nanoseconds.
|
||||
Weight::from_ref_time(5_051_856_000 as u64)
|
||||
// Standard Error: 16_650
|
||||
.saturating_add(Weight::from_ref_time(683_344 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 49_342
|
||||
.saturating_add(Weight::from_ref_time(2_190_098 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `2884 + v * (2212 ±0) + t * (128 ±0)`
|
||||
// Minimum execution time: 3_812_071 nanoseconds.
|
||||
Weight::from_parts(3_826_375_000, 2884)
|
||||
// Standard Error: 11_601
|
||||
.saturating_add(Weight::from_ref_time(145_309).saturating_mul(v.into()))
|
||||
// Standard Error: 34_378
|
||||
.saturating_add(Weight::from_ref_time(3_223_977).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_proof_size(2212).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(128).saturating_mul(t.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
// Storage: Babe EpochIndex (r:1 w:0)
|
||||
// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
// Storage: Staking ForceEra (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
/// Proof: Staking CurrentPlannedSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: Babe EpochIndex (r:1 w:0)
|
||||
/// Proof: Babe EpochIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
/// Proof: Babe GenesisSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ForceEra (r:1 w:0)
|
||||
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
// Minimum execution time: 17_309 nanoseconds.
|
||||
Weight::from_ref_time(17_646_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `994`
|
||||
// Estimated: `6983`
|
||||
// Minimum execution time: 17_801 nanoseconds.
|
||||
Weight::from_parts(18_364_000, 6983)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
// Minimum execution time: 17_992 nanoseconds.
|
||||
Weight::from_ref_time(18_426_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 12_814 nanoseconds.
|
||||
Weight::from_parts(13_154_000, 1218)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
// Minimum execution time: 17_340 nanoseconds.
|
||||
Weight::from_ref_time(17_881_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 14_565 nanoseconds.
|
||||
Weight::from_parts(15_097_000, 1218)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
// Minimum execution time: 35_571 nanoseconds.
|
||||
Weight::from_ref_time(35_989_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2809`
|
||||
// Minimum execution time: 23_341 nanoseconds.
|
||||
Weight::from_parts(23_770_000, 2809)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn finalize_signed_phase_reject_solution() -> Weight {
|
||||
// Minimum execution time: 27_403 nanoseconds.
|
||||
Weight::from_ref_time(27_879_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 16_662 nanoseconds.
|
||||
Weight::from_parts(16_898_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight {
|
||||
// Minimum execution time: 571_900 nanoseconds.
|
||||
Weight::from_ref_time(589_170_000 as u64)
|
||||
// Standard Error: 7_123
|
||||
.saturating_add(Weight::from_ref_time(384_767 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 215_168 nanoseconds.
|
||||
Weight::from_ref_time(219_887_000)
|
||||
// Standard Error: 1_444
|
||||
.saturating_add(Weight::from_ref_time(146_388).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn elect_queued(a: u32, d: u32, ) -> Weight {
|
||||
// Minimum execution time: 1_296_481 nanoseconds.
|
||||
Weight::from_ref_time(1_076_121_575 as u64)
|
||||
// Standard Error: 5_708
|
||||
.saturating_add(Weight::from_ref_time(474_995 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 8_556
|
||||
.saturating_add(Weight::from_ref_time(39_224 as u64).saturating_mul(d as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `368 + a * (768 ±0) + d * (48 ±0)`
|
||||
// Estimated: `9540 + a * (6912 ±0) + d * (441 ±0)`
|
||||
// Minimum execution time: 268_021 nanoseconds.
|
||||
Weight::from_parts(72_491_937, 9540)
|
||||
// Standard Error: 2_910
|
||||
.saturating_add(Weight::from_ref_time(303_955).saturating_mul(a.into()))
|
||||
// Standard Error: 4_363
|
||||
.saturating_add(Weight::from_ref_time(167_369).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8_u64))
|
||||
.saturating_add(Weight::from_proof_size(6912).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_proof_size(441).saturating_mul(d.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
/// Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
fn submit() -> Weight {
|
||||
// Minimum execution time: 58_716 nanoseconds.
|
||||
Weight::from_ref_time(59_480_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `924`
|
||||
// Estimated: `7111`
|
||||
// Minimum execution time: 44_177 nanoseconds.
|
||||
Weight::from_parts(44_663_000, 7111)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn submit_unsigned(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_540_737 nanoseconds.
|
||||
Weight::from_ref_time(5_567_381_000 as u64)
|
||||
// Standard Error: 18_563
|
||||
.saturating_add(Weight::from_ref_time(603_280 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 55_009
|
||||
.saturating_add(Weight::from_ref_time(3_164_053 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
fn submit_unsigned(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `251 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `5222 + v * (3871 ±0) + t * (224 ±0)`
|
||||
// Minimum execution time: 4_425_457 nanoseconds.
|
||||
Weight::from_parts(4_445_889_000, 5222)
|
||||
// Standard Error: 13_250
|
||||
.saturating_add(Weight::from_ref_time(48_844).saturating_mul(v.into()))
|
||||
// Standard Error: 39_266
|
||||
.saturating_add(Weight::from_ref_time(4_144_034).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(3871).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(224).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn feasibility_check(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_021_808 nanoseconds.
|
||||
Weight::from_ref_time(5_051_856_000 as u64)
|
||||
// Standard Error: 16_650
|
||||
.saturating_add(Weight::from_ref_time(683_344 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 49_342
|
||||
.saturating_add(Weight::from_ref_time(2_190_098 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `2884 + v * (2212 ±0) + t * (128 ±0)`
|
||||
// Minimum execution time: 3_812_071 nanoseconds.
|
||||
Weight::from_parts(3_826_375_000, 2884)
|
||||
// Standard Error: 11_601
|
||||
.saturating_add(Weight::from_ref_time(145_309).saturating_mul(v.into()))
|
||||
// Standard Error: 34_378
|
||||
.saturating_add(Weight::from_ref_time(3_223_977).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_proof_size(2212).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(128).saturating_mul(t.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_elections_phragmen
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -64,306 +65,494 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_elections_phragmen using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[1, 16]`.
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 38_496 nanoseconds.
|
||||
Weight::from_ref_time(39_424_348 as u64)
|
||||
// Standard Error: 3_547
|
||||
.saturating_add(Weight::from_ref_time(119_971 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `499 + v * (80 ±0)`
|
||||
// Estimated: `9726 + v * (320 ±0)`
|
||||
// Minimum execution time: 25_407 nanoseconds.
|
||||
Weight::from_parts(26_035_742, 9726)
|
||||
// Standard Error: 2_162
|
||||
.saturating_add(Weight::from_ref_time(120_321).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(320).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 49_459 nanoseconds.
|
||||
Weight::from_ref_time(50_225_486 as u64)
|
||||
// Standard Error: 3_160
|
||||
.saturating_add(Weight::from_ref_time(170_360 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `467 + v * (80 ±0)`
|
||||
// Estimated: `9598 + v * (320 ±0)`
|
||||
// Minimum execution time: 34_477 nanoseconds.
|
||||
Weight::from_parts(35_197_694, 9598)
|
||||
// Standard Error: 2_089
|
||||
.saturating_add(Weight::from_ref_time(116_792).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(320).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 48_712 nanoseconds.
|
||||
Weight::from_ref_time(49_463_298 as u64)
|
||||
// Standard Error: 2_678
|
||||
.saturating_add(Weight::from_ref_time(231_771 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `499 + v * (80 ±0)`
|
||||
// Estimated: `9726 + v * (320 ±0)`
|
||||
// Minimum execution time: 34_573 nanoseconds.
|
||||
Weight::from_parts(35_254_508, 9726)
|
||||
// Standard Error: 2_076
|
||||
.saturating_add(Weight::from_ref_time(110_656).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(320).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn remove_voter() -> Weight {
|
||||
// Minimum execution time: 48_359 nanoseconds.
|
||||
Weight::from_ref_time(48_767_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `989`
|
||||
// Estimated: `7238`
|
||||
// Minimum execution time: 31_469 nanoseconds.
|
||||
Weight::from_parts(31_877_000, 7238)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `c` is `[1, 1000]`.
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_369 nanoseconds.
|
||||
Weight::from_ref_time(49_587_113 as u64)
|
||||
// Standard Error: 1_008
|
||||
.saturating_add(Weight::from_ref_time(77_752 as u64).saturating_mul(c as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1687 + c * (48 ±0)`
|
||||
// Estimated: `6540 + c * (144 ±0)`
|
||||
// Minimum execution time: 26_969 nanoseconds.
|
||||
Weight::from_parts(28_584_266, 6540)
|
||||
// Standard Error: 93
|
||||
.saturating_add(Weight::from_ref_time(52_393).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(144).saturating_mul(c.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `c` is `[1, 1000]`.
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_321 nanoseconds.
|
||||
Weight::from_ref_time(50_803_289 as u64)
|
||||
// Standard Error: 1_159
|
||||
.saturating_add(Weight::from_ref_time(57_239 as u64).saturating_mul(c as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `348 + c * (48 ±0)`
|
||||
// Estimated: `830 + c * (48 ±0)`
|
||||
// Minimum execution time: 23_635 nanoseconds.
|
||||
Weight::from_parts(23_482_193, 830)
|
||||
// Standard Error: 103
|
||||
.saturating_add(Weight::from_ref_time(33_759).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(48).saturating_mul(c.into()))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
/// Storage: Elections Members (r:1 w:1)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:1)
|
||||
/// Proof Skipped: Council Prime (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 Members (r:0 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn renounce_candidacy_members() -> Weight {
|
||||
// Minimum execution time: 53_542 nanoseconds.
|
||||
Weight::from_ref_time(54_481_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2027`
|
||||
// Estimated: `12115`
|
||||
// Minimum execution time: 39_124 nanoseconds.
|
||||
Weight::from_parts(39_575_000, 12115)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn renounce_candidacy_runners_up() -> Weight {
|
||||
// Minimum execution time: 41_825 nanoseconds.
|
||||
Weight::from_ref_time(42_248_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `975`
|
||||
// Estimated: `1470`
|
||||
// Minimum execution time: 25_377 nanoseconds.
|
||||
Weight::from_parts(25_696_000, 1470)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Benchmark Override (r:0 w:0)
|
||||
/// Storage: Benchmark Override (r:0 w:0)
|
||||
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_000_000_000 nanoseconds.
|
||||
Weight::from_ref_time(2_000_000_000_000 as u64)
|
||||
Weight::from_ref_time(2_000_000_000_000)
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
/// Storage: Elections Members (r:1 w:1)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:1)
|
||||
/// Proof Skipped: Council Prime (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 Members (r:0 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn remove_member_with_replacement() -> Weight {
|
||||
// Minimum execution time: 62_600 nanoseconds.
|
||||
Weight::from_ref_time(63_152_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2027`
|
||||
// Estimated: `14718`
|
||||
// Minimum execution time: 44_919 nanoseconds.
|
||||
Weight::from_parts(45_548_000, 14718)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Elections Voting (r:5001 w:5000)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Balances Locks (r:5000 w:5000)
|
||||
// Storage: System Account (r:5000 w:5000)
|
||||
/// Storage: Elections Voting (r:10001 w:10000)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:10000 w:10000)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:10000 w:10000)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[5000, 10000]`.
|
||||
/// The range of component `d` is `[0, 5000]`.
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 297_149_264 nanoseconds.
|
||||
Weight::from_ref_time(297_898_499_000 as u64)
|
||||
// Standard Error: 263_819
|
||||
.saturating_add(Weight::from_ref_time(37_914_985 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(v as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(v as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `36028 + v * (872 ±0)`
|
||||
// Estimated: `149172 + v * (12340 ±0)`
|
||||
// Minimum execution time: 297_544_939 nanoseconds.
|
||||
Weight::from_parts(298_088_024_000, 149172)
|
||||
// Standard Error: 264_599
|
||||
.saturating_add(Weight::from_ref_time(38_142_857).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_proof_size(12340).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Elections Voting (r:10001 w:0)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Elections ElectionRounds (r:1 w:1)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:1)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:10001 w:0)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, 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: System Account (r:980 w:980)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Elections ElectionRounds (r:1 w:1)
|
||||
/// Proof Skipped: Elections ElectionRounds (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:0 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), 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 `c` is `[1, 1000]`.
|
||||
/// The range of component `v` is `[1, 10000]`.
|
||||
/// The range of component `e` is `[10000, 160000]`.
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_034_317 nanoseconds.
|
||||
Weight::from_ref_time(22_110_020_000 as u64)
|
||||
// Standard Error: 235_528
|
||||
.saturating_add(Weight::from_ref_time(25_553_585 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 15_114
|
||||
.saturating_add(Weight::from_ref_time(1_032_330 as u64).saturating_mul(e as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(280 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(c as u64)))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(c as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + v * (639 ±0) + e * (28 ±0)`
|
||||
// Estimated: `5350105 + c * (2582 ±0) + v * (5721 ±6) + e * (123 ±0)`
|
||||
// Minimum execution time: 21_844_965 nanoseconds.
|
||||
Weight::from_parts(21_979_826_000, 5350105)
|
||||
// Standard Error: 229_799
|
||||
.saturating_add(Weight::from_ref_time(24_976_612).saturating_mul(v.into()))
|
||||
// Standard Error: 14_747
|
||||
.saturating_add(Weight::from_ref_time(1_025_848).saturating_mul(e.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(280_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(c.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(c.into())))
|
||||
.saturating_add(Weight::from_proof_size(2582).saturating_mul(c.into()))
|
||||
.saturating_add(Weight::from_proof_size(5721).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(123).saturating_mul(e.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[1, 16]`.
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 38_496 nanoseconds.
|
||||
Weight::from_ref_time(39_424_348 as u64)
|
||||
// Standard Error: 3_547
|
||||
.saturating_add(Weight::from_ref_time(119_971 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `499 + v * (80 ±0)`
|
||||
// Estimated: `9726 + v * (320 ±0)`
|
||||
// Minimum execution time: 25_407 nanoseconds.
|
||||
Weight::from_parts(26_035_742, 9726)
|
||||
// Standard Error: 2_162
|
||||
.saturating_add(Weight::from_ref_time(120_321).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(320).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 49_459 nanoseconds.
|
||||
Weight::from_ref_time(50_225_486 as u64)
|
||||
// Standard Error: 3_160
|
||||
.saturating_add(Weight::from_ref_time(170_360 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `467 + v * (80 ±0)`
|
||||
// Estimated: `9598 + v * (320 ±0)`
|
||||
// Minimum execution time: 34_477 nanoseconds.
|
||||
Weight::from_parts(35_197_694, 9598)
|
||||
// Standard Error: 2_089
|
||||
.saturating_add(Weight::from_ref_time(116_792).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(320).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 48_712 nanoseconds.
|
||||
Weight::from_ref_time(49_463_298 as u64)
|
||||
// Standard Error: 2_678
|
||||
.saturating_add(Weight::from_ref_time(231_771 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `499 + v * (80 ±0)`
|
||||
// Estimated: `9726 + v * (320 ±0)`
|
||||
// Minimum execution time: 34_573 nanoseconds.
|
||||
Weight::from_parts(35_254_508, 9726)
|
||||
// Standard Error: 2_076
|
||||
.saturating_add(Weight::from_ref_time(110_656).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(320).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Elections Voting (r:1 w:1)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
fn remove_voter() -> Weight {
|
||||
// Minimum execution time: 48_359 nanoseconds.
|
||||
Weight::from_ref_time(48_767_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `989`
|
||||
// Estimated: `7238`
|
||||
// Minimum execution time: 31_469 nanoseconds.
|
||||
Weight::from_parts(31_877_000, 7238)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `c` is `[1, 1000]`.
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_369 nanoseconds.
|
||||
Weight::from_ref_time(49_587_113 as u64)
|
||||
// Standard Error: 1_008
|
||||
.saturating_add(Weight::from_ref_time(77_752 as u64).saturating_mul(c as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1687 + c * (48 ±0)`
|
||||
// Estimated: `6540 + c * (144 ±0)`
|
||||
// Minimum execution time: 26_969 nanoseconds.
|
||||
Weight::from_parts(28_584_266, 6540)
|
||||
// Standard Error: 93
|
||||
.saturating_add(Weight::from_ref_time(52_393).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(144).saturating_mul(c.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `c` is `[1, 1000]`.
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_321 nanoseconds.
|
||||
Weight::from_ref_time(50_803_289 as u64)
|
||||
// Standard Error: 1_159
|
||||
.saturating_add(Weight::from_ref_time(57_239 as u64).saturating_mul(c as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `348 + c * (48 ±0)`
|
||||
// Estimated: `830 + c * (48 ±0)`
|
||||
// Minimum execution time: 23_635 nanoseconds.
|
||||
Weight::from_parts(23_482_193, 830)
|
||||
// Standard Error: 103
|
||||
.saturating_add(Weight::from_ref_time(33_759).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(48).saturating_mul(c.into()))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
/// Storage: Elections Members (r:1 w:1)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:1)
|
||||
/// Proof Skipped: Council Prime (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 Members (r:0 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn renounce_candidacy_members() -> Weight {
|
||||
// Minimum execution time: 53_542 nanoseconds.
|
||||
Weight::from_ref_time(54_481_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2027`
|
||||
// Estimated: `12115`
|
||||
// Minimum execution time: 39_124 nanoseconds.
|
||||
Weight::from_parts(39_575_000, 12115)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn renounce_candidacy_runners_up() -> Weight {
|
||||
// Minimum execution time: 41_825 nanoseconds.
|
||||
Weight::from_ref_time(42_248_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `975`
|
||||
// Estimated: `1470`
|
||||
// Minimum execution time: 25_377 nanoseconds.
|
||||
Weight::from_parts(25_696_000, 1470)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Benchmark Override (r:0 w:0)
|
||||
/// Storage: Benchmark Override (r:0 w:0)
|
||||
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_000_000_000 nanoseconds.
|
||||
Weight::from_ref_time(2_000_000_000_000 as u64)
|
||||
Weight::from_ref_time(2_000_000_000_000)
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
/// Storage: Elections Members (r:1 w:1)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:1)
|
||||
/// Proof Skipped: Council Prime (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 Members (r:0 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn remove_member_with_replacement() -> Weight {
|
||||
// Minimum execution time: 62_600 nanoseconds.
|
||||
Weight::from_ref_time(63_152_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2027`
|
||||
// Estimated: `14718`
|
||||
// Minimum execution time: 44_919 nanoseconds.
|
||||
Weight::from_parts(45_548_000, 14718)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Elections Voting (r:5001 w:5000)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
// Storage: Elections Candidates (r:1 w:0)
|
||||
// Storage: Balances Locks (r:5000 w:5000)
|
||||
// Storage: System Account (r:5000 w:5000)
|
||||
/// Storage: Elections Voting (r:10001 w:10000)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:0)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Candidates (r:1 w:0)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Balances Locks (r:10000 w:10000)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:10000 w:10000)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `v` is `[5000, 10000]`.
|
||||
/// The range of component `d` is `[0, 5000]`.
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 297_149_264 nanoseconds.
|
||||
Weight::from_ref_time(297_898_499_000 as u64)
|
||||
// Standard Error: 263_819
|
||||
.saturating_add(Weight::from_ref_time(37_914_985 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(v as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(v as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `36028 + v * (872 ±0)`
|
||||
// Estimated: `149172 + v * (12340 ±0)`
|
||||
// Minimum execution time: 297_544_939 nanoseconds.
|
||||
Weight::from_parts(298_088_024_000, 149172)
|
||||
// Standard Error: 264_599
|
||||
.saturating_add(Weight::from_ref_time(38_142_857).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(v.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_proof_size(12340).saturating_mul(v.into()))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Elections Voting (r:10001 w:0)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Elections ElectionRounds (r:1 w:1)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:1)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Elections Voting (r:10001 w:0)
|
||||
/// Proof Skipped: Elections Voting (max_values: None, 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: System Account (r:980 w:980)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Elections ElectionRounds (r:1 w:1)
|
||||
/// Proof Skipped: Elections ElectionRounds (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:0 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), 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 `c` is `[1, 1000]`.
|
||||
/// The range of component `v` is `[1, 10000]`.
|
||||
/// The range of component `e` is `[10000, 160000]`.
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_034_317 nanoseconds.
|
||||
Weight::from_ref_time(22_110_020_000 as u64)
|
||||
// Standard Error: 235_528
|
||||
.saturating_add(Weight::from_ref_time(25_553_585 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 15_114
|
||||
.saturating_add(Weight::from_ref_time(1_032_330 as u64).saturating_mul(e as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(280 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(c as u64)))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(c as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + v * (639 ±0) + e * (28 ±0)`
|
||||
// Estimated: `5350105 + c * (2582 ±0) + v * (5721 ±6) + e * (123 ±0)`
|
||||
// Minimum execution time: 21_844_965 nanoseconds.
|
||||
Weight::from_parts(21_979_826_000, 5350105)
|
||||
// Standard Error: 229_799
|
||||
.saturating_add(Weight::from_ref_time(24_976_612).saturating_mul(v.into()))
|
||||
// Standard Error: 14_747
|
||||
.saturating_add(Weight::from_ref_time(1_025_848).saturating_mul(e.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(280_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(c.into())))
|
||||
.saturating_add(Weight::from_proof_size(2582).saturating_mul(c.into()))
|
||||
.saturating_add(Weight::from_proof_size(5721).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(123).saturating_mul(e.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_identity
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -68,420 +69,584 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_identity using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_269 nanoseconds.
|
||||
Weight::from_ref_time(21_910_543 as u64)
|
||||
// Standard Error: 4_604
|
||||
.saturating_add(Weight::from_ref_time(223_104 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `64 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 10_964 nanoseconds.
|
||||
Weight::from_parts(11_800_935, 1636)
|
||||
// Standard Error: 1_334
|
||||
.saturating_add(Weight::from_ref_time(96_038).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_872 nanoseconds.
|
||||
Weight::from_ref_time(40_230_216 as u64)
|
||||
// Standard Error: 2_342
|
||||
.saturating_add(Weight::from_ref_time(145_168 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 457
|
||||
.saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `474 + r * (5 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 26_400 nanoseconds.
|
||||
Weight::from_parts(26_060_549, 10013)
|
||||
// Standard Error: 1_561
|
||||
.saturating_add(Weight::from_ref_time(72_083).saturating_mul(r.into()))
|
||||
// Standard Error: 304
|
||||
.saturating_add(Weight::from_ref_time(306_994).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:2 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:100 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_024 nanoseconds.
|
||||
Weight::from_ref_time(32_550_819 as u64)
|
||||
// Standard Error: 5_057
|
||||
.saturating_add(Weight::from_ref_time(2_521_245 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `101`
|
||||
// Estimated: `15746 + s * (2589 ±0)`
|
||||
// Minimum execution time: 8_492 nanoseconds.
|
||||
Weight::from_parts(21_645_924, 15746)
|
||||
// Standard Error: 3_452
|
||||
.saturating_add(Weight::from_ref_time(2_442_604).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(Weight::from_proof_size(2589).saturating_mul(s.into()))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_232 nanoseconds.
|
||||
Weight::from_ref_time(34_009_761 as u64)
|
||||
// Standard Error: 5_047
|
||||
.saturating_add(Weight::from_ref_time(1_113_100 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + p * (32 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 8_488 nanoseconds.
|
||||
Weight::from_parts(20_202_601, 15746)
|
||||
// Standard Error: 2_834
|
||||
.saturating_add(Weight::from_ref_time(1_082_941).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 57_144 nanoseconds.
|
||||
Weight::from_ref_time(41_559_247 as u64)
|
||||
// Standard Error: 9_996
|
||||
.saturating_add(Weight::from_ref_time(146_770 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(1_086_673 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(162_481 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 41_319 nanoseconds.
|
||||
Weight::from_parts(25_850_055, 15746)
|
||||
// Standard Error: 4_144
|
||||
.saturating_add(Weight::from_ref_time(59_619).saturating_mul(r.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(1_076_550).saturating_mul(s.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(163_191).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_726 nanoseconds.
|
||||
Weight::from_ref_time(41_637_308 as u64)
|
||||
// Standard Error: 1_907
|
||||
.saturating_add(Weight::from_ref_time(219_078 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 372
|
||||
.saturating_add(Weight::from_ref_time(309_888 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 28_118 nanoseconds.
|
||||
Weight::from_parts(27_359_471, 11649)
|
||||
// Standard Error: 2_707
|
||||
.saturating_add(Weight::from_ref_time(107_279).saturating_mul(r.into()))
|
||||
// Standard Error: 528
|
||||
.saturating_add(Weight::from_ref_time(325_165).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 39_719 nanoseconds.
|
||||
Weight::from_ref_time(38_008_751 as u64)
|
||||
// Standard Error: 2_394
|
||||
.saturating_add(Weight::from_ref_time(181_870 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 467
|
||||
.saturating_add(Weight::from_ref_time(314_990 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `430 + x * (66 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 24_817 nanoseconds.
|
||||
Weight::from_parts(24_749_808, 10013)
|
||||
// Standard Error: 1_938
|
||||
.saturating_add(Weight::from_ref_time(63_396).saturating_mul(r.into()))
|
||||
// Standard Error: 378
|
||||
.saturating_add(Weight::from_ref_time(327_083).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_634 nanoseconds.
|
||||
Weight::from_ref_time(11_383_704 as u64)
|
||||
// Standard Error: 2_250
|
||||
.saturating_add(Weight::from_ref_time(193_094 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_664 nanoseconds.
|
||||
Weight::from_parts(7_286_307, 1636)
|
||||
// Standard Error: 1_560
|
||||
.saturating_add(Weight::from_ref_time(96_416).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_840 nanoseconds.
|
||||
Weight::from_ref_time(11_638_740 as u64)
|
||||
// Standard Error: 1_985
|
||||
.saturating_add(Weight::from_ref_time(193_016 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 7_054 nanoseconds.
|
||||
Weight::from_parts(7_382_954, 1636)
|
||||
// Standard Error: 1_621
|
||||
.saturating_add(Weight::from_ref_time(101_595).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_748 nanoseconds.
|
||||
Weight::from_ref_time(11_346_901 as u64)
|
||||
// Standard Error: 2_132
|
||||
.saturating_add(Weight::from_ref_time(196_630 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_659 nanoseconds.
|
||||
Weight::from_parts(7_188_883, 1636)
|
||||
// Standard Error: 1_377
|
||||
.saturating_add(Weight::from_ref_time(98_965).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_682 nanoseconds.
|
||||
Weight::from_ref_time(31_336_603 as u64)
|
||||
// Standard Error: 3_056
|
||||
.saturating_add(Weight::from_ref_time(200_403 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 565
|
||||
.saturating_add(Weight::from_ref_time(525_142 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 21_567 nanoseconds.
|
||||
Weight::from_parts(21_015_310, 11649)
|
||||
// Standard Error: 2_516
|
||||
.saturating_add(Weight::from_ref_time(123_992).saturating_mul(r.into()))
|
||||
// Standard Error: 465
|
||||
.saturating_add(Weight::from_ref_time(552_116).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 68_794 nanoseconds.
|
||||
Weight::from_ref_time(52_114_486 as u64)
|
||||
// Standard Error: 4_808
|
||||
.saturating_add(Weight::from_ref_time(153_462 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(1_084_612 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(170_112 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `18349`
|
||||
// Minimum execution time: 52_881 nanoseconds.
|
||||
Weight::from_parts(38_504_388, 18349)
|
||||
// Standard Error: 3_909
|
||||
.saturating_add(Weight::from_ref_time(51_452).saturating_mul(r.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(1_069_924).saturating_mul(s.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(164_906).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_914 nanoseconds.
|
||||
Weight::from_ref_time(43_488_083 as u64)
|
||||
// Standard Error: 1_631
|
||||
.saturating_add(Weight::from_ref_time(118_845 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `507 + s * (36 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 24_556 nanoseconds.
|
||||
Weight::from_parts(28_641_160, 18335)
|
||||
// Standard Error: 1_327
|
||||
.saturating_add(Weight::from_ref_time(66_150).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 16_124 nanoseconds.
|
||||
Weight::from_ref_time(18_580_462 as u64)
|
||||
// Standard Error: 688
|
||||
.saturating_add(Weight::from_ref_time(67_220 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `623 + s * (3 ±0)`
|
||||
// Estimated: `12602`
|
||||
// Minimum execution time: 11_347 nanoseconds.
|
||||
Weight::from_parts(13_299_367, 12602)
|
||||
// Standard Error: 525
|
||||
.saturating_add(Weight::from_ref_time(16_472).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_517 nanoseconds.
|
||||
Weight::from_ref_time(45_123_530 as u64)
|
||||
// Standard Error: 1_530
|
||||
.saturating_add(Weight::from_ref_time(105_429 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `702 + s * (35 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 27_810 nanoseconds.
|
||||
Weight::from_parts(30_347_763, 18335)
|
||||
// Standard Error: 928
|
||||
.saturating_add(Weight::from_ref_time(55_342).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 30_171 nanoseconds.
|
||||
Weight::from_ref_time(33_355_514 as u64)
|
||||
// Standard Error: 1_286
|
||||
.saturating_add(Weight::from_ref_time(114_716 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628 + s * (37 ±0)`
|
||||
// Estimated: `8322`
|
||||
// Minimum execution time: 17_601 nanoseconds.
|
||||
Weight::from_parts(19_794_971, 8322)
|
||||
// Standard Error: 934
|
||||
.saturating_add(Weight::from_ref_time(59_289).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_269 nanoseconds.
|
||||
Weight::from_ref_time(21_910_543 as u64)
|
||||
// Standard Error: 4_604
|
||||
.saturating_add(Weight::from_ref_time(223_104 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `64 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 10_964 nanoseconds.
|
||||
Weight::from_parts(11_800_935, 1636)
|
||||
// Standard Error: 1_334
|
||||
.saturating_add(Weight::from_ref_time(96_038).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_872 nanoseconds.
|
||||
Weight::from_ref_time(40_230_216 as u64)
|
||||
// Standard Error: 2_342
|
||||
.saturating_add(Weight::from_ref_time(145_168 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 457
|
||||
.saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `474 + r * (5 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 26_400 nanoseconds.
|
||||
Weight::from_parts(26_060_549, 10013)
|
||||
// Standard Error: 1_561
|
||||
.saturating_add(Weight::from_ref_time(72_083).saturating_mul(r.into()))
|
||||
// Standard Error: 304
|
||||
.saturating_add(Weight::from_ref_time(306_994).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:2 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:100 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_024 nanoseconds.
|
||||
Weight::from_ref_time(32_550_819 as u64)
|
||||
// Standard Error: 5_057
|
||||
.saturating_add(Weight::from_ref_time(2_521_245 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `101`
|
||||
// Estimated: `15746 + s * (2589 ±0)`
|
||||
// Minimum execution time: 8_492 nanoseconds.
|
||||
Weight::from_parts(21_645_924, 15746)
|
||||
// Standard Error: 3_452
|
||||
.saturating_add(Weight::from_ref_time(2_442_604).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(Weight::from_proof_size(2589).saturating_mul(s.into()))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_232 nanoseconds.
|
||||
Weight::from_ref_time(34_009_761 as u64)
|
||||
// Standard Error: 5_047
|
||||
.saturating_add(Weight::from_ref_time(1_113_100 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + p * (32 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 8_488 nanoseconds.
|
||||
Weight::from_parts(20_202_601, 15746)
|
||||
// Standard Error: 2_834
|
||||
.saturating_add(Weight::from_ref_time(1_082_941).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 57_144 nanoseconds.
|
||||
Weight::from_ref_time(41_559_247 as u64)
|
||||
// Standard Error: 9_996
|
||||
.saturating_add(Weight::from_ref_time(146_770 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(1_086_673 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(162_481 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 41_319 nanoseconds.
|
||||
Weight::from_parts(25_850_055, 15746)
|
||||
// Standard Error: 4_144
|
||||
.saturating_add(Weight::from_ref_time(59_619).saturating_mul(r.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(1_076_550).saturating_mul(s.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(163_191).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_726 nanoseconds.
|
||||
Weight::from_ref_time(41_637_308 as u64)
|
||||
// Standard Error: 1_907
|
||||
.saturating_add(Weight::from_ref_time(219_078 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 372
|
||||
.saturating_add(Weight::from_ref_time(309_888 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 28_118 nanoseconds.
|
||||
Weight::from_parts(27_359_471, 11649)
|
||||
// Standard Error: 2_707
|
||||
.saturating_add(Weight::from_ref_time(107_279).saturating_mul(r.into()))
|
||||
// Standard Error: 528
|
||||
.saturating_add(Weight::from_ref_time(325_165).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 39_719 nanoseconds.
|
||||
Weight::from_ref_time(38_008_751 as u64)
|
||||
// Standard Error: 2_394
|
||||
.saturating_add(Weight::from_ref_time(181_870 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 467
|
||||
.saturating_add(Weight::from_ref_time(314_990 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `430 + x * (66 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 24_817 nanoseconds.
|
||||
Weight::from_parts(24_749_808, 10013)
|
||||
// Standard Error: 1_938
|
||||
.saturating_add(Weight::from_ref_time(63_396).saturating_mul(r.into()))
|
||||
// Standard Error: 378
|
||||
.saturating_add(Weight::from_ref_time(327_083).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_634 nanoseconds.
|
||||
Weight::from_ref_time(11_383_704 as u64)
|
||||
// Standard Error: 2_250
|
||||
.saturating_add(Weight::from_ref_time(193_094 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_664 nanoseconds.
|
||||
Weight::from_parts(7_286_307, 1636)
|
||||
// Standard Error: 1_560
|
||||
.saturating_add(Weight::from_ref_time(96_416).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_840 nanoseconds.
|
||||
Weight::from_ref_time(11_638_740 as u64)
|
||||
// Standard Error: 1_985
|
||||
.saturating_add(Weight::from_ref_time(193_016 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 7_054 nanoseconds.
|
||||
Weight::from_parts(7_382_954, 1636)
|
||||
// Standard Error: 1_621
|
||||
.saturating_add(Weight::from_ref_time(101_595).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_748 nanoseconds.
|
||||
Weight::from_ref_time(11_346_901 as u64)
|
||||
// Standard Error: 2_132
|
||||
.saturating_add(Weight::from_ref_time(196_630 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_659 nanoseconds.
|
||||
Weight::from_parts(7_188_883, 1636)
|
||||
// Standard Error: 1_377
|
||||
.saturating_add(Weight::from_ref_time(98_965).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_682 nanoseconds.
|
||||
Weight::from_ref_time(31_336_603 as u64)
|
||||
// Standard Error: 3_056
|
||||
.saturating_add(Weight::from_ref_time(200_403 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 565
|
||||
.saturating_add(Weight::from_ref_time(525_142 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 21_567 nanoseconds.
|
||||
Weight::from_parts(21_015_310, 11649)
|
||||
// Standard Error: 2_516
|
||||
.saturating_add(Weight::from_ref_time(123_992).saturating_mul(r.into()))
|
||||
// Standard Error: 465
|
||||
.saturating_add(Weight::from_ref_time(552_116).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 68_794 nanoseconds.
|
||||
Weight::from_ref_time(52_114_486 as u64)
|
||||
// Standard Error: 4_808
|
||||
.saturating_add(Weight::from_ref_time(153_462 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(1_084_612 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(170_112 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `18349`
|
||||
// Minimum execution time: 52_881 nanoseconds.
|
||||
Weight::from_parts(38_504_388, 18349)
|
||||
// Standard Error: 3_909
|
||||
.saturating_add(Weight::from_ref_time(51_452).saturating_mul(r.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(1_069_924).saturating_mul(s.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(164_906).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_914 nanoseconds.
|
||||
Weight::from_ref_time(43_488_083 as u64)
|
||||
// Standard Error: 1_631
|
||||
.saturating_add(Weight::from_ref_time(118_845 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `507 + s * (36 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 24_556 nanoseconds.
|
||||
Weight::from_parts(28_641_160, 18335)
|
||||
// Standard Error: 1_327
|
||||
.saturating_add(Weight::from_ref_time(66_150).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 16_124 nanoseconds.
|
||||
Weight::from_ref_time(18_580_462 as u64)
|
||||
// Standard Error: 688
|
||||
.saturating_add(Weight::from_ref_time(67_220 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `623 + s * (3 ±0)`
|
||||
// Estimated: `12602`
|
||||
// Minimum execution time: 11_347 nanoseconds.
|
||||
Weight::from_parts(13_299_367, 12602)
|
||||
// Standard Error: 525
|
||||
.saturating_add(Weight::from_ref_time(16_472).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_517 nanoseconds.
|
||||
Weight::from_ref_time(45_123_530 as u64)
|
||||
// Standard Error: 1_530
|
||||
.saturating_add(Weight::from_ref_time(105_429 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `702 + s * (35 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 27_810 nanoseconds.
|
||||
Weight::from_parts(30_347_763, 18335)
|
||||
// Standard Error: 928
|
||||
.saturating_add(Weight::from_ref_time(55_342).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 30_171 nanoseconds.
|
||||
Weight::from_ref_time(33_355_514 as u64)
|
||||
// Standard Error: 1_286
|
||||
.saturating_add(Weight::from_ref_time(114_716 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628 + s * (37 ±0)`
|
||||
// Estimated: `8322`
|
||||
// Minimum execution time: 17_601 nanoseconds.
|
||||
Weight::from_parts(19_794_971, 8322)
|
||||
// Standard Error: 934
|
||||
.saturating_add(Weight::from_ref_time(59_289).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_im_online
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -53,42 +54,62 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_im_online using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Session Validators (r:1 w:0)
|
||||
// Storage: Session CurrentIndex (r:1 w:0)
|
||||
// Storage: ImOnline ReceivedHeartbeats (r:1 w:1)
|
||||
// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
// Storage: ImOnline Keys (r:1 w:0)
|
||||
/// Storage: Session Validators (r:1 w:0)
|
||||
/// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Session CurrentIndex (r:1 w:0)
|
||||
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ImOnline Keys (r:1 w:0)
|
||||
/// Proof: ImOnline Keys (max_values: Some(1), max_size: Some(320002), added: 320497, mode: MaxEncodedLen)
|
||||
/// Storage: ImOnline ReceivedHeartbeats (r:1 w:1)
|
||||
/// Proof: ImOnline ReceivedHeartbeats (max_values: None, max_size: Some(10021032), added: 10023507, mode: MaxEncodedLen)
|
||||
/// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
/// Proof: ImOnline AuthoredBlocks (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// The range of component `k` is `[1, 1000]`.
|
||||
/// The range of component `e` is `[1, 100]`.
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
|
||||
// Minimum execution time: 101_380 nanoseconds.
|
||||
Weight::from_ref_time(82_735_670 as u64)
|
||||
// Standard Error: 121
|
||||
.saturating_add(Weight::from_ref_time(21_279 as u64).saturating_mul(k as u64))
|
||||
// Standard Error: 1_222
|
||||
.saturating_add(Weight::from_ref_time(296_343 as u64).saturating_mul(e as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359 + k * (32 ±0)`
|
||||
// Estimated: `10345712 + e * (25 ±0) + k * (64 ±0)`
|
||||
// Minimum execution time: 91_116 nanoseconds.
|
||||
Weight::from_parts(72_526_877, 10345712)
|
||||
// Standard Error: 95
|
||||
.saturating_add(Weight::from_ref_time(20_461).saturating_mul(k.into()))
|
||||
// Standard Error: 967
|
||||
.saturating_add(Weight::from_ref_time(307_869).saturating_mul(e.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(25).saturating_mul(e.into()))
|
||||
.saturating_add(Weight::from_proof_size(64).saturating_mul(k.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Session Validators (r:1 w:0)
|
||||
// Storage: Session CurrentIndex (r:1 w:0)
|
||||
// Storage: ImOnline ReceivedHeartbeats (r:1 w:1)
|
||||
// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
// Storage: ImOnline Keys (r:1 w:0)
|
||||
/// Storage: Session Validators (r:1 w:0)
|
||||
/// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Session CurrentIndex (r:1 w:0)
|
||||
/// Proof Skipped: Session CurrentIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ImOnline Keys (r:1 w:0)
|
||||
/// Proof: ImOnline Keys (max_values: Some(1), max_size: Some(320002), added: 320497, mode: MaxEncodedLen)
|
||||
/// Storage: ImOnline ReceivedHeartbeats (r:1 w:1)
|
||||
/// Proof: ImOnline ReceivedHeartbeats (max_values: None, max_size: Some(10021032), added: 10023507, mode: MaxEncodedLen)
|
||||
/// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
/// Proof: ImOnline AuthoredBlocks (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// The range of component `k` is `[1, 1000]`.
|
||||
/// The range of component `e` is `[1, 100]`.
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
|
||||
// Minimum execution time: 101_380 nanoseconds.
|
||||
Weight::from_ref_time(82_735_670 as u64)
|
||||
// Standard Error: 121
|
||||
.saturating_add(Weight::from_ref_time(21_279 as u64).saturating_mul(k as u64))
|
||||
// Standard Error: 1_222
|
||||
.saturating_add(Weight::from_ref_time(296_343 as u64).saturating_mul(e as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359 + k * (32 ±0)`
|
||||
// Estimated: `10345712 + e * (25 ±0) + k * (64 ±0)`
|
||||
// Minimum execution time: 91_116 nanoseconds.
|
||||
Weight::from_parts(72_526_877, 10345712)
|
||||
// Standard Error: 95
|
||||
.saturating_add(Weight::from_ref_time(20_461).saturating_mul(k.into()))
|
||||
// Standard Error: 967
|
||||
.saturating_add(Weight::from_ref_time(307_869).saturating_mul(e.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(25).saturating_mul(e.into()))
|
||||
.saturating_add(Weight::from_proof_size(64).saturating_mul(k.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_indices
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -57,82 +58,126 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_indices using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
fn claim() -> Weight {
|
||||
// Minimum execution time: 31_756 nanoseconds.
|
||||
Weight::from_ref_time(32_252_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `2544`
|
||||
// Minimum execution time: 19_738 nanoseconds.
|
||||
Weight::from_parts(20_029_000, 2544)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer() -> Weight {
|
||||
// Minimum execution time: 38_686 nanoseconds.
|
||||
Weight::from_ref_time(39_402_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `339`
|
||||
// Estimated: `5147`
|
||||
// Minimum execution time: 24_494 nanoseconds.
|
||||
Weight::from_parts(24_794_000, 5147)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
fn free() -> Weight {
|
||||
// Minimum execution time: 33_752 nanoseconds.
|
||||
Weight::from_ref_time(34_348_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `204`
|
||||
// Estimated: `2544`
|
||||
// Minimum execution time: 20_041 nanoseconds.
|
||||
Weight::from_parts(20_473_000, 2544)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn force_transfer() -> Weight {
|
||||
// Minimum execution time: 32_739 nanoseconds.
|
||||
Weight::from_ref_time(33_151_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `339`
|
||||
// Estimated: `5147`
|
||||
// Minimum execution time: 21_874 nanoseconds.
|
||||
Weight::from_parts(22_438_000, 5147)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
fn freeze() -> Weight {
|
||||
// Minimum execution time: 40_369 nanoseconds.
|
||||
Weight::from_ref_time(40_982_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `204`
|
||||
// Estimated: `2544`
|
||||
// Minimum execution time: 22_407 nanoseconds.
|
||||
Weight::from_parts(22_768_000, 2544)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
fn claim() -> Weight {
|
||||
// Minimum execution time: 31_756 nanoseconds.
|
||||
Weight::from_ref_time(32_252_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `2544`
|
||||
// Minimum execution time: 19_738 nanoseconds.
|
||||
Weight::from_parts(20_029_000, 2544)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn transfer() -> Weight {
|
||||
// Minimum execution time: 38_686 nanoseconds.
|
||||
Weight::from_ref_time(39_402_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `339`
|
||||
// Estimated: `5147`
|
||||
// Minimum execution time: 24_494 nanoseconds.
|
||||
Weight::from_parts(24_794_000, 5147)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
fn free() -> Weight {
|
||||
// Minimum execution time: 33_752 nanoseconds.
|
||||
Weight::from_ref_time(34_348_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `204`
|
||||
// Estimated: `2544`
|
||||
// Minimum execution time: 20_041 nanoseconds.
|
||||
Weight::from_parts(20_473_000, 2544)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn force_transfer() -> Weight {
|
||||
// Minimum execution time: 32_739 nanoseconds.
|
||||
Weight::from_ref_time(33_151_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `339`
|
||||
// Estimated: `5147`
|
||||
// Minimum execution time: 21_874 nanoseconds.
|
||||
Weight::from_parts(22_438_000, 5147)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
fn freeze() -> Weight {
|
||||
// Minimum execution time: 40_369 nanoseconds.
|
||||
Weight::from_ref_time(40_982_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `204`
|
||||
// Estimated: `2544`
|
||||
// Minimum execution time: 22_407 nanoseconds.
|
||||
Weight::from_parts(22_768_000, 2544)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,25 +18,25 @@
|
||||
//! Autogenerated weights for pallet_lottery
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-12-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! 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:
|
||||
// /home/benchbot/cargo_target_dir/production/substrate
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_lottery
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_lottery
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/lottery/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -59,130 +59,212 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_lottery using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Lottery Lottery (r:1 w:0)
|
||||
// Storage: Lottery CallIndices (r:1 w:0)
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Participants (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:0 w:1)
|
||||
/// Storage: Lottery Lottery (r:1 w:0)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery CallIndices (r:1 w:0)
|
||||
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Participants (r:1 w:1)
|
||||
/// Proof: Lottery Participants (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery LotteryIndex (r:1 w:0)
|
||||
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Tickets (r:0 w:1)
|
||||
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
||||
fn buy_ticket() -> Weight {
|
||||
// Minimum execution time: 52_479 nanoseconds.
|
||||
Weight::from_ref_time(53_225_000)
|
||||
.saturating_add(T::DbWeight::get().reads(6))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484`
|
||||
// Estimated: `7181`
|
||||
// Minimum execution time: 62_125 nanoseconds.
|
||||
Weight::from_parts(63_145_000, 7181)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Lottery CallIndices (r:0 w:1)
|
||||
/// Storage: Lottery CallIndices (r:0 w:1)
|
||||
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 10]`.
|
||||
fn set_calls(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_433 nanoseconds.
|
||||
Weight::from_ref_time(15_660_780)
|
||||
// Standard Error: 5_894
|
||||
.saturating_add(Weight::from_ref_time(290_482).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_650 nanoseconds.
|
||||
Weight::from_ref_time(8_344_960)
|
||||
// Standard Error: 2_629
|
||||
.saturating_add(Weight::from_ref_time(268_557).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn start_lottery() -> Weight {
|
||||
// Minimum execution time: 43_683 nanoseconds.
|
||||
Weight::from_ref_time(44_580_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Estimated: `3626`
|
||||
// Minimum execution time: 31_324 nanoseconds.
|
||||
Weight::from_parts(31_985_000, 3626)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
fn stop_repeat() -> Weight {
|
||||
// Minimum execution time: 10_514 nanoseconds.
|
||||
Weight::from_ref_time(10_821_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `219`
|
||||
// Estimated: `524`
|
||||
// Minimum execution time: 7_124 nanoseconds.
|
||||
Weight::from_parts(7_285_000, 524)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Tickets (r:1 w:0)
|
||||
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
||||
fn on_initialize_end() -> Weight {
|
||||
// Minimum execution time: 60_254 nanoseconds.
|
||||
Weight::from_ref_time(61_924_000)
|
||||
.saturating_add(T::DbWeight::get().reads(6))
|
||||
.saturating_add(T::DbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `556`
|
||||
// Estimated: `11837`
|
||||
// Minimum execution time: 50_745 nanoseconds.
|
||||
Weight::from_parts(52_232_000, 11837)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Tickets (r:1 w:0)
|
||||
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn on_initialize_repeat() -> Weight {
|
||||
// Minimum execution time: 61_552 nanoseconds.
|
||||
Weight::from_ref_time(62_152_000)
|
||||
.saturating_add(T::DbWeight::get().reads(7))
|
||||
.saturating_add(T::DbWeight::get().writes(5))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `556`
|
||||
// Estimated: `12336`
|
||||
// Minimum execution time: 52_437 nanoseconds.
|
||||
Weight::from_parts(53_063_000, 12336)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Lottery Lottery (r:1 w:0)
|
||||
// Storage: Lottery CallIndices (r:1 w:0)
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Participants (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:0 w:1)
|
||||
/// Storage: Lottery Lottery (r:1 w:0)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery CallIndices (r:1 w:0)
|
||||
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Participants (r:1 w:1)
|
||||
/// Proof: Lottery Participants (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery LotteryIndex (r:1 w:0)
|
||||
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Tickets (r:0 w:1)
|
||||
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
||||
fn buy_ticket() -> Weight {
|
||||
// Minimum execution time: 52_479 nanoseconds.
|
||||
Weight::from_ref_time(53_225_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(6))
|
||||
.saturating_add(RocksDbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484`
|
||||
// Estimated: `7181`
|
||||
// Minimum execution time: 62_125 nanoseconds.
|
||||
Weight::from_parts(63_145_000, 7181)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Lottery CallIndices (r:0 w:1)
|
||||
/// Storage: Lottery CallIndices (r:0 w:1)
|
||||
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 10]`.
|
||||
fn set_calls(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_433 nanoseconds.
|
||||
Weight::from_ref_time(15_660_780)
|
||||
// Standard Error: 5_894
|
||||
.saturating_add(Weight::from_ref_time(290_482).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_650 nanoseconds.
|
||||
Weight::from_ref_time(8_344_960)
|
||||
// Standard Error: 2_629
|
||||
.saturating_add(Weight::from_ref_time(268_557).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn start_lottery() -> Weight {
|
||||
// Minimum execution time: 43_683 nanoseconds.
|
||||
Weight::from_ref_time(44_580_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Estimated: `3626`
|
||||
// Minimum execution time: 31_324 nanoseconds.
|
||||
Weight::from_parts(31_985_000, 3626)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
fn stop_repeat() -> Weight {
|
||||
// Minimum execution time: 10_514 nanoseconds.
|
||||
Weight::from_ref_time(10_821_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `219`
|
||||
// Estimated: `524`
|
||||
// Minimum execution time: 7_124 nanoseconds.
|
||||
Weight::from_parts(7_285_000, 524)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Tickets (r:1 w:0)
|
||||
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
||||
fn on_initialize_end() -> Weight {
|
||||
// Minimum execution time: 60_254 nanoseconds.
|
||||
Weight::from_ref_time(61_924_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(6))
|
||||
.saturating_add(RocksDbWeight::get().writes(4))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `556`
|
||||
// Estimated: `11837`
|
||||
// Minimum execution time: 50_745 nanoseconds.
|
||||
Weight::from_parts(52_232_000, 11837)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
/// Storage: RandomnessCollectiveFlip RandomMaterial (r:1 w:0)
|
||||
/// Proof: RandomnessCollectiveFlip RandomMaterial (max_values: Some(1), max_size: Some(2594), added: 3089, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
/// Proof: Lottery TicketsCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery Tickets (r:1 w:0)
|
||||
/// Proof: Lottery Tickets (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
|
||||
/// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
/// Proof: Lottery LotteryIndex (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn on_initialize_repeat() -> Weight {
|
||||
// Minimum execution time: 61_552 nanoseconds.
|
||||
Weight::from_ref_time(62_152_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(7))
|
||||
.saturating_add(RocksDbWeight::get().writes(5))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `556`
|
||||
// Estimated: `12336`
|
||||
// Minimum execution time: 52_437 nanoseconds.
|
||||
Weight::from_parts(53_063_000, 12336)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_membership
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -59,190 +60,302 @@ pub trait WeightInfo {
|
||||
/// 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)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 23_796 nanoseconds.
|
||||
Weight::from_ref_time(24_829_996 as u64)
|
||||
// Standard Error: 723
|
||||
.saturating_add(Weight::from_ref_time(48_467 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(41_959).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 27_255 nanoseconds.
|
||||
Weight::from_ref_time(28_234_490 as u64)
|
||||
// Standard Error: 833
|
||||
.saturating_add(Weight::from_ref_time(34_894 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(41_331).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 26_626 nanoseconds.
|
||||
Weight::from_ref_time(27_989_042 as u64)
|
||||
// Standard Error: 729
|
||||
.saturating_add(Weight::from_ref_time(51_567 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(51_422).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 25_412 nanoseconds.
|
||||
Weight::from_ref_time(27_713_414 as u64)
|
||||
// Standard Error: 883
|
||||
.saturating_add(Weight::from_ref_time(157_085 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(153_956).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 27_122 nanoseconds.
|
||||
Weight::from_ref_time(28_477_394 as u64)
|
||||
// Standard Error: 801
|
||||
.saturating_add(Weight::from_ref_time(56_383 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// 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_ref_time(51_060).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 9_368 nanoseconds.
|
||||
Weight::from_ref_time(10_133_132 as u64)
|
||||
// Standard Error: 366
|
||||
.saturating_add(Weight::from_ref_time(17_708 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// 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_ref_time(16_653).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(32).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 5_546 nanoseconds.
|
||||
Weight::from_ref_time(5_962_740 as u64)
|
||||
// Standard Error: 186
|
||||
.saturating_add(Weight::from_ref_time(2_096 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_400 nanoseconds.
|
||||
Weight::from_ref_time(3_703_421)
|
||||
// Standard Error: 119
|
||||
.saturating_add(Weight::from_ref_time(915).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)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 23_796 nanoseconds.
|
||||
Weight::from_ref_time(24_829_996 as u64)
|
||||
// Standard Error: 723
|
||||
.saturating_add(Weight::from_ref_time(48_467 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(41_959).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 27_255 nanoseconds.
|
||||
Weight::from_ref_time(28_234_490 as u64)
|
||||
// Standard Error: 833
|
||||
.saturating_add(Weight::from_ref_time(34_894 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(41_331).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 26_626 nanoseconds.
|
||||
Weight::from_ref_time(27_989_042 as u64)
|
||||
// Standard Error: 729
|
||||
.saturating_add(Weight::from_ref_time(51_567 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(51_422).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 25_412 nanoseconds.
|
||||
Weight::from_ref_time(27_713_414 as u64)
|
||||
// Standard Error: 883
|
||||
.saturating_add(Weight::from_ref_time(157_085 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// 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_ref_time(153_956).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 27_122 nanoseconds.
|
||||
Weight::from_ref_time(28_477_394 as u64)
|
||||
// Standard Error: 801
|
||||
.saturating_add(Weight::from_ref_time(56_383 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// 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_ref_time(51_060).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 9_368 nanoseconds.
|
||||
Weight::from_ref_time(10_133_132 as u64)
|
||||
// Standard Error: 366
|
||||
.saturating_add(Weight::from_ref_time(17_708 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// 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_ref_time(16_653).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(32).saturating_mul(m.into()))
|
||||
}
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// 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 {
|
||||
// Minimum execution time: 5_546 nanoseconds.
|
||||
Weight::from_ref_time(5_962_740 as u64)
|
||||
// Standard Error: 186
|
||||
.saturating_add(Weight::from_ref_time(2_096 as u64).saturating_mul(m as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_400 nanoseconds.
|
||||
Weight::from_ref_time(3_703_421)
|
||||
// Standard Error: 119
|
||||
.saturating_add(Weight::from_ref_time(915).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,25 +18,25 @@
|
||||
//! Autogenerated weights for pallet_message_queue
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-12-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! 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:
|
||||
// /home/benchbot/cargo_target_dir/production/substrate
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_message_queue
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_message_queue
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/message-queue/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -63,154 +63,244 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_message_queue using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: MessageQueue ServiceHead (r:1 w:0)
|
||||
// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:0)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
fn ready_ring_knit() -> Weight {
|
||||
// Minimum execution time: 12_330 nanoseconds.
|
||||
Weight::from_ref_time(12_711_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `837`
|
||||
// Estimated: `5554`
|
||||
// Minimum execution time: 12_676 nanoseconds.
|
||||
Weight::from_parts(13_113_000, 5554)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
||||
fn ready_ring_unknit() -> Weight {
|
||||
// Minimum execution time: 12_322 nanoseconds.
|
||||
Weight::from_ref_time(12_560_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `837`
|
||||
// Estimated: `5554`
|
||||
// Minimum execution time: 12_654 nanoseconds.
|
||||
Weight::from_parts(12_969_000, 5554)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
fn service_queue_base() -> Weight {
|
||||
// Minimum execution time: 4_652 nanoseconds.
|
||||
Weight::from_ref_time(4_848_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `576`
|
||||
// Estimated: `2527`
|
||||
// Minimum execution time: 5_096 nanoseconds.
|
||||
Weight::from_parts(5_280_000, 2527)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn service_page_base_completion() -> Weight {
|
||||
// Minimum execution time: 7_115 nanoseconds.
|
||||
Weight::from_ref_time(7_407_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `648`
|
||||
// Estimated: `68060`
|
||||
// Minimum execution time: 7_291 nanoseconds.
|
||||
Weight::from_parts(7_564_000, 68060)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn service_page_base_no_completion() -> Weight {
|
||||
// Minimum execution time: 6_974 nanoseconds.
|
||||
Weight::from_ref_time(7_200_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `648`
|
||||
// Estimated: `68060`
|
||||
// Minimum execution time: 7_401 nanoseconds.
|
||||
Weight::from_parts(7_681_000, 68060)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_page_item() -> Weight {
|
||||
// Minimum execution time: 79_657 nanoseconds.
|
||||
Weight::from_ref_time(80_050_000)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `972`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 79_412 nanoseconds.
|
||||
Weight::from_ref_time(79_816_000)
|
||||
}
|
||||
// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:0)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:0)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
fn bump_service_head() -> Weight {
|
||||
// Minimum execution time: 7_598 nanoseconds.
|
||||
Weight::from_ref_time(8_118_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `712`
|
||||
// Estimated: `3027`
|
||||
// Minimum execution time: 8_258 nanoseconds.
|
||||
Weight::from_parts(8_438_000, 3027)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn reap_page() -> Weight {
|
||||
// Minimum execution time: 60_562 nanoseconds.
|
||||
Weight::from_ref_time(61_430_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66827`
|
||||
// Estimated: `70587`
|
||||
// Minimum execution time: 61_361 nanoseconds.
|
||||
Weight::from_parts(62_103_000, 70587)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn execute_overweight_page_removed() -> Weight {
|
||||
// Minimum execution time: 74_582 nanoseconds.
|
||||
Weight::from_ref_time(75_445_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66827`
|
||||
// Estimated: `70587`
|
||||
// Minimum execution time: 75_153 nanoseconds.
|
||||
Weight::from_parts(76_093_000, 70587)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn execute_overweight_page_updated() -> Weight {
|
||||
// Minimum execution time: 87_526 nanoseconds.
|
||||
Weight::from_ref_time(88_055_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66827`
|
||||
// Estimated: `70587`
|
||||
// Minimum execution time: 88_272 nanoseconds.
|
||||
Weight::from_parts(89_373_000, 70587)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: MessageQueue ServiceHead (r:1 w:0)
|
||||
// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:0)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
fn ready_ring_knit() -> Weight {
|
||||
// Minimum execution time: 12_330 nanoseconds.
|
||||
Weight::from_ref_time(12_711_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `837`
|
||||
// Estimated: `5554`
|
||||
// Minimum execution time: 12_676 nanoseconds.
|
||||
Weight::from_parts(13_113_000, 5554)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
||||
fn ready_ring_unknit() -> Weight {
|
||||
// Minimum execution time: 12_322 nanoseconds.
|
||||
Weight::from_ref_time(12_560_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `837`
|
||||
// Estimated: `5554`
|
||||
// Minimum execution time: 12_654 nanoseconds.
|
||||
Weight::from_parts(12_969_000, 5554)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
fn service_queue_base() -> Weight {
|
||||
// Minimum execution time: 4_652 nanoseconds.
|
||||
Weight::from_ref_time(4_848_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `576`
|
||||
// Estimated: `2527`
|
||||
// Minimum execution time: 5_096 nanoseconds.
|
||||
Weight::from_parts(5_280_000, 2527)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn service_page_base_completion() -> Weight {
|
||||
// Minimum execution time: 7_115 nanoseconds.
|
||||
Weight::from_ref_time(7_407_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `648`
|
||||
// Estimated: `68060`
|
||||
// Minimum execution time: 7_291 nanoseconds.
|
||||
Weight::from_parts(7_564_000, 68060)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn service_page_base_no_completion() -> Weight {
|
||||
// Minimum execution time: 6_974 nanoseconds.
|
||||
Weight::from_ref_time(7_200_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `648`
|
||||
// Estimated: `68060`
|
||||
// Minimum execution time: 7_401 nanoseconds.
|
||||
Weight::from_parts(7_681_000, 68060)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_page_item() -> Weight {
|
||||
// Minimum execution time: 79_657 nanoseconds.
|
||||
Weight::from_ref_time(80_050_000)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `972`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 79_412 nanoseconds.
|
||||
Weight::from_ref_time(79_816_000)
|
||||
}
|
||||
// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:0)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(5), added: 500, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:0)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
fn bump_service_head() -> Weight {
|
||||
// Minimum execution time: 7_598 nanoseconds.
|
||||
Weight::from_ref_time(8_118_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `712`
|
||||
// Estimated: `3027`
|
||||
// Minimum execution time: 8_258 nanoseconds.
|
||||
Weight::from_parts(8_438_000, 3027)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn reap_page() -> Weight {
|
||||
// Minimum execution time: 60_562 nanoseconds.
|
||||
Weight::from_ref_time(61_430_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66827`
|
||||
// Estimated: `70587`
|
||||
// Minimum execution time: 61_361 nanoseconds.
|
||||
Weight::from_parts(62_103_000, 70587)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn execute_overweight_page_removed() -> Weight {
|
||||
// Minimum execution time: 74_582 nanoseconds.
|
||||
Weight::from_ref_time(75_445_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66827`
|
||||
// Estimated: `70587`
|
||||
// Minimum execution time: 75_153 nanoseconds.
|
||||
Weight::from_parts(76_093_000, 70587)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(52), added: 2527, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65585), added: 68060, mode: MaxEncodedLen)
|
||||
fn execute_overweight_page_updated() -> Weight {
|
||||
// Minimum execution time: 87_526 nanoseconds.
|
||||
Weight::from_ref_time(88_055_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66827`
|
||||
// Estimated: `70587`
|
||||
// Minimum execution time: 88_272 nanoseconds.
|
||||
Weight::from_parts(89_373_000, 70587)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_multisig
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -61,82 +62,108 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_447 nanoseconds.
|
||||
Weight::from_ref_time(20_896_236 as u64)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_ref_time(568 as u64).saturating_mul(z as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 12_086 nanoseconds.
|
||||
Weight::from_ref_time(12_464_828)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_ref_time(494).saturating_mul(z.into()))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||
// Minimum execution time: 54_987 nanoseconds.
|
||||
Weight::from_ref_time(42_525_077 as u64)
|
||||
// Standard Error: 562
|
||||
.saturating_add(Weight::from_ref_time(136_064 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 5
|
||||
.saturating_add(Weight::from_ref_time(1_508 as u64).saturating_mul(z as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `352 + s * (2 ±0)`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 35_377 nanoseconds.
|
||||
Weight::from_parts(29_088_956, 5821)
|
||||
// Standard Error: 335
|
||||
.saturating_add(Weight::from_ref_time(67_846).saturating_mul(s.into()))
|
||||
// Standard Error: 3
|
||||
.saturating_add(Weight::from_ref_time(1_523).saturating_mul(z.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[3, 100]`.
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||
// Minimum execution time: 42_573 nanoseconds.
|
||||
Weight::from_ref_time(30_585_734 as u64)
|
||||
// Standard Error: 637
|
||||
.saturating_add(Weight::from_ref_time(128_012 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(1_507 as u64).saturating_mul(z as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `351`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 26_138 nanoseconds.
|
||||
Weight::from_parts(20_479_380, 5821)
|
||||
// Standard Error: 259
|
||||
.saturating_add(Weight::from_ref_time(64_116).saturating_mul(s.into()))
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_ref_time(1_520).saturating_mul(z.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||
// Minimum execution time: 57_143 nanoseconds.
|
||||
Weight::from_ref_time(43_921_674 as u64)
|
||||
// Standard Error: 704
|
||||
.saturating_add(Weight::from_ref_time(153_474 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(1_536 as u64).saturating_mul(z as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `489 + s * (33 ±0)`
|
||||
// Estimated: `8424`
|
||||
// Minimum execution time: 40_323 nanoseconds.
|
||||
Weight::from_parts(32_311_615, 8424)
|
||||
// Standard Error: 401
|
||||
.saturating_add(Weight::from_ref_time(85_999).saturating_mul(s.into()))
|
||||
// Standard Error: 3
|
||||
.saturating_add(Weight::from_ref_time(1_534).saturating_mul(z.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 39_088 nanoseconds.
|
||||
Weight::from_ref_time(41_258_697 as u64)
|
||||
// Standard Error: 1_038
|
||||
.saturating_add(Weight::from_ref_time(126_040 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359 + s * (2 ±0)`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 26_938 nanoseconds.
|
||||
Weight::from_parts(27_802_216, 5821)
|
||||
// Standard Error: 342
|
||||
.saturating_add(Weight::from_ref_time(69_282).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 26_872 nanoseconds.
|
||||
Weight::from_ref_time(28_625_218 as u64)
|
||||
// Standard Error: 793
|
||||
.saturating_add(Weight::from_ref_time(128_542 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `351`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 18_050 nanoseconds.
|
||||
Weight::from_parts(19_095_404, 5821)
|
||||
// Standard Error: 419
|
||||
.saturating_add(Weight::from_ref_time(66_914).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_636 nanoseconds.
|
||||
Weight::from_ref_time(39_614_705 as u64)
|
||||
// Standard Error: 850
|
||||
.saturating_add(Weight::from_ref_time(136_222 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + s * (1 ±0)`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 27_508 nanoseconds.
|
||||
Weight::from_parts(28_702_686, 5821)
|
||||
// Standard Error: 466
|
||||
.saturating_add(Weight::from_ref_time(69_419).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,81 +171,107 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_447 nanoseconds.
|
||||
Weight::from_ref_time(20_896_236 as u64)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_ref_time(568 as u64).saturating_mul(z as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 12_086 nanoseconds.
|
||||
Weight::from_ref_time(12_464_828)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_ref_time(494).saturating_mul(z.into()))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||
// Minimum execution time: 54_987 nanoseconds.
|
||||
Weight::from_ref_time(42_525_077 as u64)
|
||||
// Standard Error: 562
|
||||
.saturating_add(Weight::from_ref_time(136_064 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 5
|
||||
.saturating_add(Weight::from_ref_time(1_508 as u64).saturating_mul(z as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `352 + s * (2 ±0)`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 35_377 nanoseconds.
|
||||
Weight::from_parts(29_088_956, 5821)
|
||||
// Standard Error: 335
|
||||
.saturating_add(Weight::from_ref_time(67_846).saturating_mul(s.into()))
|
||||
// Standard Error: 3
|
||||
.saturating_add(Weight::from_ref_time(1_523).saturating_mul(z.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[3, 100]`.
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||
// Minimum execution time: 42_573 nanoseconds.
|
||||
Weight::from_ref_time(30_585_734 as u64)
|
||||
// Standard Error: 637
|
||||
.saturating_add(Weight::from_ref_time(128_012 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(1_507 as u64).saturating_mul(z as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `351`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 26_138 nanoseconds.
|
||||
Weight::from_parts(20_479_380, 5821)
|
||||
// Standard Error: 259
|
||||
.saturating_add(Weight::from_ref_time(64_116).saturating_mul(s.into()))
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_ref_time(1_520).saturating_mul(z.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||
// Minimum execution time: 57_143 nanoseconds.
|
||||
Weight::from_ref_time(43_921_674 as u64)
|
||||
// Standard Error: 704
|
||||
.saturating_add(Weight::from_ref_time(153_474 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(1_536 as u64).saturating_mul(z as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `489 + s * (33 ±0)`
|
||||
// Estimated: `8424`
|
||||
// Minimum execution time: 40_323 nanoseconds.
|
||||
Weight::from_parts(32_311_615, 8424)
|
||||
// Standard Error: 401
|
||||
.saturating_add(Weight::from_ref_time(85_999).saturating_mul(s.into()))
|
||||
// Standard Error: 3
|
||||
.saturating_add(Weight::from_ref_time(1_534).saturating_mul(z.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 39_088 nanoseconds.
|
||||
Weight::from_ref_time(41_258_697 as u64)
|
||||
// Standard Error: 1_038
|
||||
.saturating_add(Weight::from_ref_time(126_040 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359 + s * (2 ±0)`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 26_938 nanoseconds.
|
||||
Weight::from_parts(27_802_216, 5821)
|
||||
// Standard Error: 342
|
||||
.saturating_add(Weight::from_ref_time(69_282).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 26_872 nanoseconds.
|
||||
Weight::from_ref_time(28_625_218 as u64)
|
||||
// Standard Error: 793
|
||||
.saturating_add(Weight::from_ref_time(128_542 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `351`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 18_050 nanoseconds.
|
||||
Weight::from_parts(19_095_404, 5821)
|
||||
// Standard Error: 419
|
||||
.saturating_add(Weight::from_ref_time(66_914).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[2, 100]`.
|
||||
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_636 nanoseconds.
|
||||
Weight::from_ref_time(39_614_705 as u64)
|
||||
// Standard Error: 850
|
||||
.saturating_add(Weight::from_ref_time(136_222 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + s * (1 ±0)`
|
||||
// Estimated: `5821`
|
||||
// Minimum execution time: 27_508 nanoseconds.
|
||||
Weight::from_parts(28_702_686, 5821)
|
||||
// Standard Error: 466
|
||||
.saturating_add(Weight::from_ref_time(69_419).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
+1090
-588
File diff suppressed because it is too large
Load Diff
+337
-185
@@ -1,31 +1,43 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2023 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_nis
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-12-15, STEPS: `5`, REPEAT: 2, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `Workhorse.local`, CPU: `<UNKNOWN>`
|
||||
//! 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/release/substrate
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain
|
||||
// dev
|
||||
// --steps
|
||||
// 5
|
||||
// --repeat
|
||||
// 2
|
||||
// --pallet
|
||||
// pallet_nis
|
||||
// --extrinsic
|
||||
// *
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_nis
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --output
|
||||
// ../../../frame/nis/src/weights.rs
|
||||
// --template
|
||||
// ../../../.maintain/frame-weight-template.hbs
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/nis/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -52,224 +64,364 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_nis using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 999]`.
|
||||
fn place_bid(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 47_000 nanoseconds.
|
||||
Weight::from_ref_time(53_822_030)
|
||||
// Standard Error: 4_869
|
||||
.saturating_add(Weight::from_ref_time(47_431).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6245 + l * (48 ±0)`
|
||||
// Estimated: `60718`
|
||||
// Minimum execution time: 28_814 nanoseconds.
|
||||
Weight::from_parts(35_245_917, 60718)
|
||||
// Standard Error: 189
|
||||
.saturating_add(Weight::from_ref_time(45_322).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
fn place_bid_max() -> Weight {
|
||||
// Minimum execution time: 109_000 nanoseconds.
|
||||
Weight::from_ref_time(109_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `54247`
|
||||
// Estimated: `60718`
|
||||
// Minimum execution time: 80_332 nanoseconds.
|
||||
Weight::from_parts(81_050_000, 60718)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[1, 1000]`.
|
||||
fn retract_bid(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 50_000 nanoseconds.
|
||||
Weight::from_ref_time(54_479_879)
|
||||
// Standard Error: 4_891
|
||||
.saturating_add(Weight::from_ref_time(38_224).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6245 + l * (48 ±0)`
|
||||
// Estimated: `60718`
|
||||
// Minimum execution time: 34_426 nanoseconds.
|
||||
Weight::from_parts(36_434_166, 60718)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(33_923).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Summary (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Nis Summary (r:1 w:0)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn fund_deficit() -> Weight {
|
||||
// Minimum execution time: 57_000 nanoseconds.
|
||||
Weight::from_ref_time(62_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `222`
|
||||
// Estimated: `3138`
|
||||
// Minimum execution time: 32_566 nanoseconds.
|
||||
Weight::from_parts(32_880_000, 3138)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:0)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:0)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
fn thaw_private() -> Weight {
|
||||
// Minimum execution time: 84_000 nanoseconds.
|
||||
Weight::from_ref_time(85_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `423`
|
||||
// Estimated: `9418`
|
||||
// Minimum execution time: 46_212 nanoseconds.
|
||||
Weight::from_parts(46_748_000, 9418)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Asset (r:1 w:1)
|
||||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Account (r:1 w:1)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(102), added: 2577, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn thaw_communal() -> Weight {
|
||||
// Minimum execution time: 108_000 nanoseconds.
|
||||
Weight::from_ref_time(115_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(5))
|
||||
.saturating_add(T::DbWeight::get().writes(5))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `868`
|
||||
// Estimated: `10956`
|
||||
// Minimum execution time: 68_791 nanoseconds.
|
||||
Weight::from_parts(69_504_000, 10956)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Asset (r:1 w:1)
|
||||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Account (r:1 w:1)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(102), added: 2577, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
fn privatize() -> Weight {
|
||||
// Minimum execution time: 107_000 nanoseconds.
|
||||
Weight::from_ref_time(110_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(6))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `930`
|
||||
// Estimated: `14680`
|
||||
// Minimum execution time: 76_784 nanoseconds.
|
||||
Weight::from_parts(77_575_000, 14680)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Asset (r:1 w:1)
|
||||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Account (r:1 w:1)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(102), added: 2577, mode: MaxEncodedLen)
|
||||
fn communify() -> Weight {
|
||||
// Minimum execution time: 89_000 nanoseconds.
|
||||
Weight::from_ref_time(89_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(6))
|
||||
.saturating_add(T::DbWeight::get().writes(6))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `769`
|
||||
// Estimated: `14680`
|
||||
// Minimum execution time: 64_543 nanoseconds.
|
||||
Weight::from_parts(65_258_000, 14680)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:0)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:0)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
fn process_queues() -> Weight {
|
||||
// Minimum execution time: 34_000 nanoseconds.
|
||||
Weight::from_ref_time(38_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6655`
|
||||
// Estimated: `9635`
|
||||
// Minimum execution time: 21_379 nanoseconds.
|
||||
Weight::from_parts(21_736_000, 9635)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
fn process_queue() -> Weight {
|
||||
// Minimum execution time: 6_000 nanoseconds.
|
||||
Weight::from_ref_time(7_000_000)
|
||||
.saturating_add(T::DbWeight::get().reads(1))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `50497`
|
||||
// Minimum execution time: 4_302 nanoseconds.
|
||||
Weight::from_parts(4_440_000, 50497)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:0 w:1)
|
||||
/// Storage: Nis Receipts (r:0 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
fn process_bid() -> Weight {
|
||||
// Minimum execution time: 14_000 nanoseconds.
|
||||
Weight::from_ref_time(15_000_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_758 nanoseconds.
|
||||
Weight::from_ref_time(6_911_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 999]`.
|
||||
fn place_bid(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 47_000 nanoseconds.
|
||||
Weight::from_ref_time(53_822_030)
|
||||
// Standard Error: 4_869
|
||||
.saturating_add(Weight::from_ref_time(47_431).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6245 + l * (48 ±0)`
|
||||
// Estimated: `60718`
|
||||
// Minimum execution time: 28_814 nanoseconds.
|
||||
Weight::from_parts(35_245_917, 60718)
|
||||
// Standard Error: 189
|
||||
.saturating_add(Weight::from_ref_time(45_322).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
fn place_bid_max() -> Weight {
|
||||
// Minimum execution time: 109_000 nanoseconds.
|
||||
Weight::from_ref_time(109_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `54247`
|
||||
// Estimated: `60718`
|
||||
// Minimum execution time: 80_332 nanoseconds.
|
||||
Weight::from_parts(81_050_000, 60718)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[1, 1000]`.
|
||||
fn retract_bid(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 50_000 nanoseconds.
|
||||
Weight::from_ref_time(54_479_879)
|
||||
// Standard Error: 4_891
|
||||
.saturating_add(Weight::from_ref_time(38_224).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6245 + l * (48 ±0)`
|
||||
// Estimated: `60718`
|
||||
// Minimum execution time: 34_426 nanoseconds.
|
||||
Weight::from_parts(36_434_166, 60718)
|
||||
// Standard Error: 135
|
||||
.saturating_add(Weight::from_ref_time(33_923).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Summary (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Nis Summary (r:1 w:0)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn fund_deficit() -> Weight {
|
||||
// Minimum execution time: 57_000 nanoseconds.
|
||||
Weight::from_ref_time(62_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `222`
|
||||
// Estimated: `3138`
|
||||
// Minimum execution time: 32_566 nanoseconds.
|
||||
Weight::from_parts(32_880_000, 3138)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:0)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:0)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
fn thaw_private() -> Weight {
|
||||
// Minimum execution time: 84_000 nanoseconds.
|
||||
Weight::from_ref_time(85_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(4))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `423`
|
||||
// Estimated: `9418`
|
||||
// Minimum execution time: 46_212 nanoseconds.
|
||||
Weight::from_parts(46_748_000, 9418)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Asset (r:1 w:1)
|
||||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Account (r:1 w:1)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(102), added: 2577, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn thaw_communal() -> Weight {
|
||||
// Minimum execution time: 108_000 nanoseconds.
|
||||
Weight::from_ref_time(115_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(5))
|
||||
.saturating_add(RocksDbWeight::get().writes(5))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `868`
|
||||
// Estimated: `10956`
|
||||
// Minimum execution time: 68_791 nanoseconds.
|
||||
Weight::from_parts(69_504_000, 10956)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Asset (r:1 w:1)
|
||||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Account (r:1 w:1)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(102), added: 2577, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
fn privatize() -> Weight {
|
||||
// Minimum execution time: 107_000 nanoseconds.
|
||||
Weight::from_ref_time(110_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(6))
|
||||
.saturating_add(RocksDbWeight::get().writes(6))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `930`
|
||||
// Estimated: `14680`
|
||||
// Minimum execution time: 76_784 nanoseconds.
|
||||
Weight::from_parts(77_575_000, 14680)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:1 w:1)
|
||||
// Storage: Balances Reserves (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Reserves (r:1 w:1)
|
||||
/// Proof: Balances Reserves (max_values: None, max_size: Some(1249), added: 3724, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Asset (r:1 w:1)
|
||||
/// Proof: Assets Asset (max_values: None, max_size: Some(210), added: 2685, mode: MaxEncodedLen)
|
||||
/// Storage: Assets Account (r:1 w:1)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(102), added: 2577, mode: MaxEncodedLen)
|
||||
fn communify() -> Weight {
|
||||
// Minimum execution time: 89_000 nanoseconds.
|
||||
Weight::from_ref_time(89_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(6))
|
||||
.saturating_add(RocksDbWeight::get().writes(6))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `769`
|
||||
// Estimated: `14680`
|
||||
// Minimum execution time: 64_543 nanoseconds.
|
||||
Weight::from_parts(65_258_000, 14680)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
// Storage: Nis Summary (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:0)
|
||||
// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Storage: Nis Summary (r:1 w:1)
|
||||
/// Proof: Nis Summary (max_values: Some(1), max_size: Some(40), added: 535, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:0)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Nis QueueTotals (r:1 w:1)
|
||||
/// Proof: Nis QueueTotals (max_values: Some(1), max_size: Some(6002), added: 6497, mode: MaxEncodedLen)
|
||||
fn process_queues() -> Weight {
|
||||
// Minimum execution time: 34_000 nanoseconds.
|
||||
Weight::from_ref_time(38_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6655`
|
||||
// Estimated: `9635`
|
||||
// Minimum execution time: 21_379 nanoseconds.
|
||||
Weight::from_parts(21_736_000, 9635)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Nis Queues (r:1 w:1)
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
fn process_queue() -> Weight {
|
||||
// Minimum execution time: 6_000 nanoseconds.
|
||||
Weight::from_ref_time(7_000_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(1))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `50497`
|
||||
// Minimum execution time: 4_302 nanoseconds.
|
||||
Weight::from_parts(4_440_000, 50497)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Nis Receipts (r:0 w:1)
|
||||
/// Storage: Nis Receipts (r:0 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
fn process_bid() -> Weight {
|
||||
// Minimum execution time: 14_000 nanoseconds.
|
||||
Weight::from_ref_time(15_000_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_758 nanoseconds.
|
||||
Weight::from_ref_time(6_911_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_preimage
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -64,206 +65,314 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_preimage using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 4194304]`.
|
||||
fn note_preimage(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_810 nanoseconds.
|
||||
Weight::from_ref_time(34_299_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 23_484 nanoseconds.
|
||||
Weight::from_parts(23_828_000, 2566)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_703 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_705).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 4194304]`.
|
||||
fn note_requested_preimage(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 24_398 nanoseconds.
|
||||
Weight::from_ref_time(24_839_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 14_812 nanoseconds.
|
||||
Weight::from_parts(14_949_000, 2566)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_702 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_707).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 4194304]`.
|
||||
fn note_no_deposit_preimage(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_235 nanoseconds.
|
||||
Weight::from_ref_time(22_473_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 14_185 nanoseconds.
|
||||
Weight::from_parts(14_398_000, 2566)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_703 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_709).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
fn unnote_preimage() -> Weight {
|
||||
// Minimum execution time: 43_241 nanoseconds.
|
||||
Weight::from_ref_time(44_470_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `353`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 29_917 nanoseconds.
|
||||
Weight::from_parts(30_691_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
fn unnote_no_deposit_preimage() -> Weight {
|
||||
// Minimum execution time: 29_529 nanoseconds.
|
||||
Weight::from_ref_time(30_364_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 19_281 nanoseconds.
|
||||
Weight::from_parts(20_121_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_preimage() -> Weight {
|
||||
// Minimum execution time: 28_914 nanoseconds.
|
||||
Weight::from_ref_time(30_103_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `220`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 17_192 nanoseconds.
|
||||
Weight::from_parts(18_637_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_no_deposit_preimage() -> Weight {
|
||||
// Minimum execution time: 14_479 nanoseconds.
|
||||
Weight::from_ref_time(15_244_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 10_139 nanoseconds.
|
||||
Weight::from_parts(10_773_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_unnoted_preimage() -> Weight {
|
||||
// Minimum execution time: 20_171 nanoseconds.
|
||||
Weight::from_ref_time(20_806_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 11_721 nanoseconds.
|
||||
Weight::from_parts(12_313_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_requested_preimage() -> Weight {
|
||||
// Minimum execution time: 9_756 nanoseconds.
|
||||
Weight::from_ref_time(10_115_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 7_263 nanoseconds.
|
||||
Weight::from_parts(7_547_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
fn unrequest_preimage() -> Weight {
|
||||
// Minimum execution time: 28_379 nanoseconds.
|
||||
Weight::from_ref_time(29_778_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 17_785 nanoseconds.
|
||||
Weight::from_parts(18_501_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn unrequest_unnoted_preimage() -> Weight {
|
||||
// Minimum execution time: 9_595 nanoseconds.
|
||||
Weight::from_ref_time(9_888_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 7_090 nanoseconds.
|
||||
Weight::from_parts(7_319_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn unrequest_multi_referenced_preimage() -> Weight {
|
||||
// Minimum execution time: 9_642 nanoseconds.
|
||||
Weight::from_ref_time(9_985_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 7_253 nanoseconds.
|
||||
Weight::from_parts(7_508_000, 2566)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 4194304]`.
|
||||
fn note_preimage(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_810 nanoseconds.
|
||||
Weight::from_ref_time(34_299_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 23_484 nanoseconds.
|
||||
Weight::from_parts(23_828_000, 2566)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_703 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_705).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 4194304]`.
|
||||
fn note_requested_preimage(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 24_398 nanoseconds.
|
||||
Weight::from_ref_time(24_839_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 14_812 nanoseconds.
|
||||
Weight::from_parts(14_949_000, 2566)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_702 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_707).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 4194304]`.
|
||||
fn note_no_deposit_preimage(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_235 nanoseconds.
|
||||
Weight::from_ref_time(22_473_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 14_185 nanoseconds.
|
||||
Weight::from_parts(14_398_000, 2566)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_703 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_709).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
fn unnote_preimage() -> Weight {
|
||||
// Minimum execution time: 43_241 nanoseconds.
|
||||
Weight::from_ref_time(44_470_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `353`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 29_917 nanoseconds.
|
||||
Weight::from_parts(30_691_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
fn unnote_no_deposit_preimage() -> Weight {
|
||||
// Minimum execution time: 29_529 nanoseconds.
|
||||
Weight::from_ref_time(30_364_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 19_281 nanoseconds.
|
||||
Weight::from_parts(20_121_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_preimage() -> Weight {
|
||||
// Minimum execution time: 28_914 nanoseconds.
|
||||
Weight::from_ref_time(30_103_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `220`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 17_192 nanoseconds.
|
||||
Weight::from_parts(18_637_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_no_deposit_preimage() -> Weight {
|
||||
// Minimum execution time: 14_479 nanoseconds.
|
||||
Weight::from_ref_time(15_244_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 10_139 nanoseconds.
|
||||
Weight::from_parts(10_773_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_unnoted_preimage() -> Weight {
|
||||
// Minimum execution time: 20_171 nanoseconds.
|
||||
Weight::from_ref_time(20_806_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 11_721 nanoseconds.
|
||||
Weight::from_parts(12_313_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn request_requested_preimage() -> Weight {
|
||||
// Minimum execution time: 9_756 nanoseconds.
|
||||
Weight::from_ref_time(10_115_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 7_263 nanoseconds.
|
||||
Weight::from_parts(7_547_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)
|
||||
fn unrequest_preimage() -> Weight {
|
||||
// Minimum execution time: 28_379 nanoseconds.
|
||||
Weight::from_ref_time(29_778_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 17_785 nanoseconds.
|
||||
Weight::from_parts(18_501_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn unrequest_unnoted_preimage() -> Weight {
|
||||
// Minimum execution time: 9_595 nanoseconds.
|
||||
Weight::from_ref_time(9_888_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 7_090 nanoseconds.
|
||||
Weight::from_parts(7_319_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn unrequest_multi_referenced_preimage() -> Weight {
|
||||
// Minimum execution time: 9_642 nanoseconds.
|
||||
Weight::from_ref_time(9_985_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `2566`
|
||||
// Minimum execution time: 7_253 nanoseconds.
|
||||
Weight::from_parts(7_508_000, 2566)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_proxy
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -62,244 +63,334 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 24_285 nanoseconds.
|
||||
Weight::from_ref_time(25_355_667 as u64)
|
||||
// Standard Error: 1_468
|
||||
.saturating_add(Weight::from_ref_time(38_185 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 14_461 nanoseconds.
|
||||
Weight::from_parts(14_913_927, 3716)
|
||||
// Standard Error: 1_174
|
||||
.saturating_add(Weight::from_ref_time(36_087).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_948 nanoseconds.
|
||||
Weight::from_ref_time(44_762_064 as u64)
|
||||
// Standard Error: 1_778
|
||||
.saturating_add(Weight::from_ref_time(118_940 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_837
|
||||
.saturating_add(Weight::from_ref_time(51_232 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `584 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `11027`
|
||||
// Minimum execution time: 31_523 nanoseconds.
|
||||
Weight::from_parts(31_116_270, 11027)
|
||||
// Standard Error: 1_789
|
||||
.saturating_add(Weight::from_ref_time(135_656).saturating_mul(a.into()))
|
||||
// Standard Error: 1_849
|
||||
.saturating_add(Weight::from_ref_time(53_893).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 31_274 nanoseconds.
|
||||
Weight::from_ref_time(32_219_165 as u64)
|
||||
// Standard Error: 1_832
|
||||
.saturating_add(Weight::from_ref_time(132_454 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_893
|
||||
.saturating_add(Weight::from_ref_time(9_077 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `467 + a * (68 ±0)`
|
||||
// Estimated: `7311`
|
||||
// Minimum execution time: 19_363 nanoseconds.
|
||||
Weight::from_parts(20_282_191, 7311)
|
||||
// Standard Error: 1_084
|
||||
.saturating_add(Weight::from_ref_time(133_825).saturating_mul(a.into()))
|
||||
// Standard Error: 1_120
|
||||
.saturating_add(Weight::from_ref_time(3_434).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 31_219 nanoseconds.
|
||||
Weight::from_ref_time(32_439_563 as u64)
|
||||
// Standard Error: 1_829
|
||||
.saturating_add(Weight::from_ref_time(120_251 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_890
|
||||
.saturating_add(Weight::from_ref_time(8_689 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `467 + a * (68 ±0)`
|
||||
// Estimated: `7311`
|
||||
// Minimum execution time: 19_363 nanoseconds.
|
||||
Weight::from_parts(20_211_584, 7311)
|
||||
// Standard Error: 1_171
|
||||
.saturating_add(Weight::from_ref_time(136_984).saturating_mul(a.into()))
|
||||
// Standard Error: 1_210
|
||||
.saturating_add(Weight::from_ref_time(3_686).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn announce(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 40_388 nanoseconds.
|
||||
Weight::from_ref_time(40_718_245 as u64)
|
||||
// Standard Error: 1_821
|
||||
.saturating_add(Weight::from_ref_time(129_674 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_882
|
||||
.saturating_add(Weight::from_ref_time(56_001 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `516 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `11027`
|
||||
// Minimum execution time: 27_811 nanoseconds.
|
||||
Weight::from_parts(27_965_813, 11027)
|
||||
// Standard Error: 1_987
|
||||
.saturating_add(Weight::from_ref_time(124_133).saturating_mul(a.into()))
|
||||
// Standard Error: 2_053
|
||||
.saturating_add(Weight::from_ref_time(54_692).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn add_proxy(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_997 nanoseconds.
|
||||
Weight::from_ref_time(34_840_036 as u64)
|
||||
// Standard Error: 1_659
|
||||
.saturating_add(Weight::from_ref_time(71_349 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 20_922 nanoseconds.
|
||||
Weight::from_parts(21_551_797, 3716)
|
||||
// Standard Error: 1_425
|
||||
.saturating_add(Weight::from_ref_time(58_434).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn remove_proxy(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_900 nanoseconds.
|
||||
Weight::from_ref_time(35_069_110 as u64)
|
||||
// Standard Error: 1_848
|
||||
.saturating_add(Weight::from_ref_time(82_380 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 20_812 nanoseconds.
|
||||
Weight::from_parts(21_660_732, 3716)
|
||||
// Standard Error: 1_438
|
||||
.saturating_add(Weight::from_ref_time(68_740).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn remove_proxies(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 29_627 nanoseconds.
|
||||
Weight::from_ref_time(30_641_642 as u64)
|
||||
// Standard Error: 1_495
|
||||
.saturating_add(Weight::from_ref_time(51_919 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 16_786 nanoseconds.
|
||||
Weight::from_parts(17_249_958, 3716)
|
||||
// Standard Error: 1_007
|
||||
.saturating_add(Weight::from_ref_time(37_546).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn create_pure(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_761 nanoseconds.
|
||||
Weight::from_ref_time(38_748_697 as u64)
|
||||
// Standard Error: 1_594
|
||||
.saturating_add(Weight::from_ref_time(19_022 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `173`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 22_764 nanoseconds.
|
||||
Weight::from_parts(23_539_039, 3716)
|
||||
// Standard Error: 814
|
||||
.saturating_add(Weight::from_ref_time(144).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 30]`.
|
||||
fn kill_pure(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 31_145 nanoseconds.
|
||||
Weight::from_ref_time(31_933_568 as u64)
|
||||
// Standard Error: 1_492
|
||||
.saturating_add(Weight::from_ref_time(50_250 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `230 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 17_720 nanoseconds.
|
||||
Weight::from_parts(18_428_849, 3716)
|
||||
// Standard Error: 1_093
|
||||
.saturating_add(Weight::from_ref_time(34_600).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 24_285 nanoseconds.
|
||||
Weight::from_ref_time(25_355_667 as u64)
|
||||
// Standard Error: 1_468
|
||||
.saturating_add(Weight::from_ref_time(38_185 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 14_461 nanoseconds.
|
||||
Weight::from_parts(14_913_927, 3716)
|
||||
// Standard Error: 1_174
|
||||
.saturating_add(Weight::from_ref_time(36_087).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_948 nanoseconds.
|
||||
Weight::from_ref_time(44_762_064 as u64)
|
||||
// Standard Error: 1_778
|
||||
.saturating_add(Weight::from_ref_time(118_940 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_837
|
||||
.saturating_add(Weight::from_ref_time(51_232 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `584 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `11027`
|
||||
// Minimum execution time: 31_523 nanoseconds.
|
||||
Weight::from_parts(31_116_270, 11027)
|
||||
// Standard Error: 1_789
|
||||
.saturating_add(Weight::from_ref_time(135_656).saturating_mul(a.into()))
|
||||
// Standard Error: 1_849
|
||||
.saturating_add(Weight::from_ref_time(53_893).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 31_274 nanoseconds.
|
||||
Weight::from_ref_time(32_219_165 as u64)
|
||||
// Standard Error: 1_832
|
||||
.saturating_add(Weight::from_ref_time(132_454 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_893
|
||||
.saturating_add(Weight::from_ref_time(9_077 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `467 + a * (68 ±0)`
|
||||
// Estimated: `7311`
|
||||
// Minimum execution time: 19_363 nanoseconds.
|
||||
Weight::from_parts(20_282_191, 7311)
|
||||
// Standard Error: 1_084
|
||||
.saturating_add(Weight::from_ref_time(133_825).saturating_mul(a.into()))
|
||||
// Standard Error: 1_120
|
||||
.saturating_add(Weight::from_ref_time(3_434).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 31_219 nanoseconds.
|
||||
Weight::from_ref_time(32_439_563 as u64)
|
||||
// Standard Error: 1_829
|
||||
.saturating_add(Weight::from_ref_time(120_251 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_890
|
||||
.saturating_add(Weight::from_ref_time(8_689 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `467 + a * (68 ±0)`
|
||||
// Estimated: `7311`
|
||||
// Minimum execution time: 19_363 nanoseconds.
|
||||
Weight::from_parts(20_211_584, 7311)
|
||||
// Standard Error: 1_171
|
||||
.saturating_add(Weight::from_ref_time(136_984).saturating_mul(a.into()))
|
||||
// Standard Error: 1_210
|
||||
.saturating_add(Weight::from_ref_time(3_686).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// Storage: Proxy Announcements (r:1 w:1)
|
||||
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `a` is `[0, 31]`.
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn announce(a: u32, p: u32, ) -> Weight {
|
||||
// Minimum execution time: 40_388 nanoseconds.
|
||||
Weight::from_ref_time(40_718_245 as u64)
|
||||
// Standard Error: 1_821
|
||||
.saturating_add(Weight::from_ref_time(129_674 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 1_882
|
||||
.saturating_add(Weight::from_ref_time(56_001 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `516 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `11027`
|
||||
// Minimum execution time: 27_811 nanoseconds.
|
||||
Weight::from_parts(27_965_813, 11027)
|
||||
// Standard Error: 1_987
|
||||
.saturating_add(Weight::from_ref_time(124_133).saturating_mul(a.into()))
|
||||
// Standard Error: 2_053
|
||||
.saturating_add(Weight::from_ref_time(54_692).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn add_proxy(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_997 nanoseconds.
|
||||
Weight::from_ref_time(34_840_036 as u64)
|
||||
// Standard Error: 1_659
|
||||
.saturating_add(Weight::from_ref_time(71_349 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 20_922 nanoseconds.
|
||||
Weight::from_parts(21_551_797, 3716)
|
||||
// Standard Error: 1_425
|
||||
.saturating_add(Weight::from_ref_time(58_434).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn remove_proxy(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_900 nanoseconds.
|
||||
Weight::from_ref_time(35_069_110 as u64)
|
||||
// Standard Error: 1_848
|
||||
.saturating_add(Weight::from_ref_time(82_380 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 20_812 nanoseconds.
|
||||
Weight::from_parts(21_660_732, 3716)
|
||||
// Standard Error: 1_438
|
||||
.saturating_add(Weight::from_ref_time(68_740).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn remove_proxies(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 29_627 nanoseconds.
|
||||
Weight::from_ref_time(30_641_642 as u64)
|
||||
// Standard Error: 1_495
|
||||
.saturating_add(Weight::from_ref_time(51_919 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 16_786 nanoseconds.
|
||||
Weight::from_parts(17_249_958, 3716)
|
||||
// Standard Error: 1_007
|
||||
.saturating_add(Weight::from_ref_time(37_546).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn create_pure(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_761 nanoseconds.
|
||||
Weight::from_ref_time(38_748_697 as u64)
|
||||
// Standard Error: 1_594
|
||||
.saturating_add(Weight::from_ref_time(19_022 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `173`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 22_764 nanoseconds.
|
||||
Weight::from_parts(23_539_039, 3716)
|
||||
// Standard Error: 814
|
||||
.saturating_add(Weight::from_ref_time(144).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Storage: Proxy Proxies (r:1 w:1)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 30]`.
|
||||
fn kill_pure(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 31_145 nanoseconds.
|
||||
Weight::from_ref_time(31_933_568 as u64)
|
||||
// Standard Error: 1_492
|
||||
.saturating_add(Weight::from_ref_time(50_250 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `230 + p * (37 ±0)`
|
||||
// Estimated: `3716`
|
||||
// Minimum execution time: 17_720 nanoseconds.
|
||||
Weight::from_parts(18_428_849, 3716)
|
||||
// Standard Error: 1_093
|
||||
.saturating_add(Weight::from_ref_time(34_600).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_ranked_collective
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -58,154 +59,238 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_ranked_collective using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
fn add_member() -> Weight {
|
||||
// Minimum execution time: 24_344 nanoseconds.
|
||||
Weight::from_ref_time(24_856_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `5006`
|
||||
// Minimum execution time: 16_334 nanoseconds.
|
||||
Weight::from_parts(16_784_000, 5006)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:1 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:11 w:11)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:11 w:11)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:11 w:11)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 10]`.
|
||||
fn remove_member(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_881 nanoseconds.
|
||||
Weight::from_ref_time(39_284_238 as u64)
|
||||
// Standard Error: 16_355
|
||||
.saturating_add(Weight::from_ref_time(11_385_424 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(r as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `583 + r * (281 ±0)`
|
||||
// Estimated: `10064 + r * (7547 ±0)`
|
||||
// Minimum execution time: 26_177 nanoseconds.
|
||||
Weight::from_parts(29_245_248, 10064)
|
||||
// Standard Error: 18_611
|
||||
.saturating_add(Weight::from_ref_time(10_916_516).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_proof_size(7547).saturating_mul(r.into()))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 10]`.
|
||||
fn promote_member(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 27_444 nanoseconds.
|
||||
Weight::from_ref_time(28_576_394 as u64)
|
||||
// Standard Error: 4_818
|
||||
.saturating_add(Weight::from_ref_time(519_056 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281 + r * (17 ±0)`
|
||||
// Estimated: `5006`
|
||||
// Minimum execution time: 18_953 nanoseconds.
|
||||
Weight::from_parts(19_570_567, 5006)
|
||||
// Standard Error: 4_156
|
||||
.saturating_add(Weight::from_ref_time(263_843).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:1 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:1 w:1)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:1 w:1)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 10]`.
|
||||
fn demote_member(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_539 nanoseconds.
|
||||
Weight::from_ref_time(39_339_893 as u64)
|
||||
// Standard Error: 16_526
|
||||
.saturating_add(Weight::from_ref_time(807_457 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `599 + r * (72 ±0)`
|
||||
// Estimated: `10064`
|
||||
// Minimum execution time: 26_243 nanoseconds.
|
||||
Weight::from_parts(28_532_816, 10064)
|
||||
// Standard Error: 22_689
|
||||
.saturating_add(Weight::from_ref_time(614_464).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:0)
|
||||
// Storage: RankedPolls ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: RankedCollective Voting (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Voting (r:1 w:1)
|
||||
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn vote() -> Weight {
|
||||
// Minimum execution time: 50_548 nanoseconds.
|
||||
Weight::from_ref_time(51_276_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `626`
|
||||
// Estimated: `226856`
|
||||
// Minimum execution time: 41_121 nanoseconds.
|
||||
Weight::from_parts(41_606_000, 226856)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedPolls ReferendumInfoFor (r:1 w:0)
|
||||
// Storage: RankedCollective VotingCleanup (r:1 w:0)
|
||||
// Storage: RankedCollective Voting (r:0 w:2)
|
||||
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:0)
|
||||
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective VotingCleanup (r:1 w:0)
|
||||
/// Proof: RankedCollective VotingCleanup (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Voting (r:0 w:100)
|
||||
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn cleanup_poll(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 16_222 nanoseconds.
|
||||
Weight::from_ref_time(22_982_955 as u64)
|
||||
// Standard Error: 3_863
|
||||
.saturating_add(Weight::from_ref_time(1_074_054 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(n as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `461 + n * (50 ±0)`
|
||||
// Estimated: `5394`
|
||||
// Minimum execution time: 13_245 nanoseconds.
|
||||
Weight::from_parts(17_420_271, 5394)
|
||||
// Standard Error: 1_503
|
||||
.saturating_add(Weight::from_ref_time(952_500).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
fn add_member() -> Weight {
|
||||
// Minimum execution time: 24_344 nanoseconds.
|
||||
Weight::from_ref_time(24_856_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `5006`
|
||||
// Minimum execution time: 16_334 nanoseconds.
|
||||
Weight::from_parts(16_784_000, 5006)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:1 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:11 w:11)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:11 w:11)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:11 w:11)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 10]`.
|
||||
fn remove_member(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_881 nanoseconds.
|
||||
Weight::from_ref_time(39_284_238 as u64)
|
||||
// Standard Error: 16_355
|
||||
.saturating_add(Weight::from_ref_time(11_385_424 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(r as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `583 + r * (281 ±0)`
|
||||
// Estimated: `10064 + r * (7547 ±0)`
|
||||
// Minimum execution time: 26_177 nanoseconds.
|
||||
Weight::from_parts(29_245_248, 10064)
|
||||
// Standard Error: 18_611
|
||||
.saturating_add(Weight::from_ref_time(10_916_516).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_proof_size(7547).saturating_mul(r.into()))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:0 w:1)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:0 w:1)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 10]`.
|
||||
fn promote_member(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 27_444 nanoseconds.
|
||||
Weight::from_ref_time(28_576_394 as u64)
|
||||
// Standard Error: 4_818
|
||||
.saturating_add(Weight::from_ref_time(519_056 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281 + r * (17 ±0)`
|
||||
// Estimated: `5006`
|
||||
// Minimum execution time: 18_953 nanoseconds.
|
||||
Weight::from_parts(19_570_567, 5006)
|
||||
// Standard Error: 4_156
|
||||
.saturating_add(Weight::from_ref_time(263_843).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:1)
|
||||
// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
// Storage: RankedCollective IdToIndex (r:1 w:1)
|
||||
// Storage: RankedCollective IndexToId (r:1 w:1)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IdToIndex (r:1 w:1)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective IndexToId (r:1 w:1)
|
||||
/// Proof: RankedCollective IndexToId (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[0, 10]`.
|
||||
fn demote_member(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_539 nanoseconds.
|
||||
Weight::from_ref_time(39_339_893 as u64)
|
||||
// Standard Error: 16_526
|
||||
.saturating_add(Weight::from_ref_time(807_457 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `599 + r * (72 ±0)`
|
||||
// Estimated: `10064`
|
||||
// Minimum execution time: 26_243 nanoseconds.
|
||||
Weight::from_parts(28_532_816, 10064)
|
||||
// Standard Error: 22_689
|
||||
.saturating_add(Weight::from_ref_time(614_464).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedCollective Members (r:1 w:0)
|
||||
// Storage: RankedPolls ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: RankedCollective Voting (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:1)
|
||||
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Voting (r:1 w:1)
|
||||
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
fn vote() -> Weight {
|
||||
// Minimum execution time: 50_548 nanoseconds.
|
||||
Weight::from_ref_time(51_276_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `626`
|
||||
// Estimated: `226856`
|
||||
// Minimum execution time: 41_121 nanoseconds.
|
||||
Weight::from_parts(41_606_000, 226856)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: RankedPolls ReferendumInfoFor (r:1 w:0)
|
||||
// Storage: RankedCollective VotingCleanup (r:1 w:0)
|
||||
// Storage: RankedCollective Voting (r:0 w:2)
|
||||
/// Storage: RankedPolls ReferendumInfoFor (r:1 w:0)
|
||||
/// Proof: RankedPolls ReferendumInfoFor (max_values: None, max_size: Some(330), added: 2805, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective VotingCleanup (r:1 w:0)
|
||||
/// Proof: RankedCollective VotingCleanup (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Voting (r:0 w:100)
|
||||
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
fn cleanup_poll(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 16_222 nanoseconds.
|
||||
Weight::from_ref_time(22_982_955 as u64)
|
||||
// Standard Error: 3_863
|
||||
.saturating_add(Weight::from_ref_time(1_074_054 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(n as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `461 + n * (50 ±0)`
|
||||
// Estimated: `5394`
|
||||
// Minimum execution time: 13_245 nanoseconds.
|
||||
Weight::from_parts(17_420_271, 5394)
|
||||
// Standard Error: 1_503
|
||||
.saturating_add(Weight::from_ref_time(952_500).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_recovery
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -61,172 +62,256 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_recovery using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Recovery Proxy (r:1 w:0)
|
||||
/// Storage: Recovery Proxy (r:1 w:0)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
fn as_recovered() -> Weight {
|
||||
// Minimum execution time: 10_672 nanoseconds.
|
||||
Weight::from_ref_time(10_946_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `2555`
|
||||
// Minimum execution time: 8_866 nanoseconds.
|
||||
Weight::from_parts(9_065_000, 2555)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:0 w:1)
|
||||
/// Storage: Recovery Proxy (r:0 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
fn set_recovered() -> Weight {
|
||||
// Minimum execution time: 17_092 nanoseconds.
|
||||
Weight::from_ref_time(17_660_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_893 nanoseconds.
|
||||
Weight::from_ref_time(9_177_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn create_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 32_800 nanoseconds.
|
||||
Weight::from_ref_time(33_769_078 as u64)
|
||||
// Standard Error: 4_075
|
||||
.saturating_add(Weight::from_ref_time(252_382 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `2826`
|
||||
// Minimum execution time: 20_662 nanoseconds.
|
||||
Weight::from_parts(21_378_064, 2826)
|
||||
// Standard Error: 3_350
|
||||
.saturating_add(Weight::from_ref_time(83_738).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:0)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
fn initiate_recovery() -> Weight {
|
||||
// Minimum execution time: 39_224 nanoseconds.
|
||||
Weight::from_ref_time(39_663_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272`
|
||||
// Estimated: `5690`
|
||||
// Minimum execution time: 24_805 nanoseconds.
|
||||
Weight::from_parts(25_273_000, 5690)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:0)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn vouch_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 27_158 nanoseconds.
|
||||
Weight::from_ref_time(28_130_506 as u64)
|
||||
// Standard Error: 4_523
|
||||
.saturating_add(Weight::from_ref_time(321_436 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `423 + n * (64 ±0)`
|
||||
// Estimated: `5690`
|
||||
// Minimum execution time: 17_837 nanoseconds.
|
||||
Weight::from_parts(18_429_664, 5690)
|
||||
// Standard Error: 3_187
|
||||
.saturating_add(Weight::from_ref_time(143_648).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:0)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn claim_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_269 nanoseconds.
|
||||
Weight::from_ref_time(36_966_173 as u64)
|
||||
// Standard Error: 5_016
|
||||
.saturating_add(Weight::from_ref_time(223_069 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `455 + n * (64 ±0)`
|
||||
// Estimated: `8245`
|
||||
// Minimum execution time: 21_960 nanoseconds.
|
||||
Weight::from_parts(22_529_644, 8245)
|
||||
// Standard Error: 2_945
|
||||
.saturating_add(Weight::from_ref_time(85_604).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn close_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 40_213 nanoseconds.
|
||||
Weight::from_ref_time(41_140_968 as u64)
|
||||
// Standard Error: 3_822
|
||||
.saturating_add(Weight::from_ref_time(163_217 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `576 + n * (32 ±0)`
|
||||
// Estimated: `5467`
|
||||
// Minimum execution time: 26_054 nanoseconds.
|
||||
Weight::from_parts(26_724_866, 5467)
|
||||
// Standard Error: 2_645
|
||||
.saturating_add(Weight::from_ref_time(104_301).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn remove_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 38_740 nanoseconds.
|
||||
Weight::from_ref_time(39_710_400 as u64)
|
||||
// Standard Error: 5_554
|
||||
.saturating_add(Weight::from_ref_time(224_200 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `302 + n * (32 ±0)`
|
||||
// Estimated: `5690`
|
||||
// Minimum execution time: 25_110 nanoseconds.
|
||||
Weight::from_parts(25_805_837, 5690)
|
||||
// Standard Error: 2_732
|
||||
.saturating_add(Weight::from_ref_time(73_458).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
fn cancel_recovered() -> Weight {
|
||||
// Minimum execution time: 20_316 nanoseconds.
|
||||
Weight::from_ref_time(20_912_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `2555`
|
||||
// Minimum execution time: 11_061 nanoseconds.
|
||||
Weight::from_parts(11_291_000, 2555)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Recovery Proxy (r:1 w:0)
|
||||
/// Storage: Recovery Proxy (r:1 w:0)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
fn as_recovered() -> Weight {
|
||||
// Minimum execution time: 10_672 nanoseconds.
|
||||
Weight::from_ref_time(10_946_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `2555`
|
||||
// Minimum execution time: 8_866 nanoseconds.
|
||||
Weight::from_parts(9_065_000, 2555)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:0 w:1)
|
||||
/// Storage: Recovery Proxy (r:0 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
fn set_recovered() -> Weight {
|
||||
// Minimum execution time: 17_092 nanoseconds.
|
||||
Weight::from_ref_time(17_660_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_893 nanoseconds.
|
||||
Weight::from_ref_time(9_177_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn create_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 32_800 nanoseconds.
|
||||
Weight::from_ref_time(33_769_078 as u64)
|
||||
// Standard Error: 4_075
|
||||
.saturating_add(Weight::from_ref_time(252_382 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `2826`
|
||||
// Minimum execution time: 20_662 nanoseconds.
|
||||
Weight::from_parts(21_378_064, 2826)
|
||||
// Standard Error: 3_350
|
||||
.saturating_add(Weight::from_ref_time(83_738).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:0)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
fn initiate_recovery() -> Weight {
|
||||
// Minimum execution time: 39_224 nanoseconds.
|
||||
Weight::from_ref_time(39_663_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272`
|
||||
// Estimated: `5690`
|
||||
// Minimum execution time: 24_805 nanoseconds.
|
||||
Weight::from_parts(25_273_000, 5690)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:0)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn vouch_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 27_158 nanoseconds.
|
||||
Weight::from_ref_time(28_130_506 as u64)
|
||||
// Standard Error: 4_523
|
||||
.saturating_add(Weight::from_ref_time(321_436 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `423 + n * (64 ±0)`
|
||||
// Estimated: `5690`
|
||||
// Minimum execution time: 17_837 nanoseconds.
|
||||
Weight::from_parts(18_429_664, 5690)
|
||||
// Standard Error: 3_187
|
||||
.saturating_add(Weight::from_ref_time(143_648).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Recoverable (r:1 w:0)
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Storage: Recovery Recoverable (r:1 w:0)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn claim_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_269 nanoseconds.
|
||||
Weight::from_ref_time(36_966_173 as u64)
|
||||
// Standard Error: 5_016
|
||||
.saturating_add(Weight::from_ref_time(223_069 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `455 + n * (64 ±0)`
|
||||
// Estimated: `8245`
|
||||
// Minimum execution time: 21_960 nanoseconds.
|
||||
Weight::from_parts(22_529_644, 8245)
|
||||
// Standard Error: 2_945
|
||||
.saturating_add(Weight::from_ref_time(85_604).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:1)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn close_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 40_213 nanoseconds.
|
||||
Weight::from_ref_time(41_140_968 as u64)
|
||||
// Standard Error: 3_822
|
||||
.saturating_add(Weight::from_ref_time(163_217 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `576 + n * (32 ±0)`
|
||||
// Estimated: `5467`
|
||||
// Minimum execution time: 26_054 nanoseconds.
|
||||
Weight::from_parts(26_724_866, 5467)
|
||||
// Standard Error: 2_645
|
||||
.saturating_add(Weight::from_ref_time(104_301).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Storage: Recovery ActiveRecoveries (r:1 w:0)
|
||||
/// Proof: Recovery ActiveRecoveries (max_values: None, max_size: Some(389), added: 2864, mode: MaxEncodedLen)
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 9]`.
|
||||
fn remove_recovery(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 38_740 nanoseconds.
|
||||
Weight::from_ref_time(39_710_400 as u64)
|
||||
// Standard Error: 5_554
|
||||
.saturating_add(Weight::from_ref_time(224_200 as u64).saturating_mul(n as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `302 + n * (32 ±0)`
|
||||
// Estimated: `5690`
|
||||
// Minimum execution time: 25_110 nanoseconds.
|
||||
Weight::from_parts(25_805_837, 5690)
|
||||
// Standard Error: 2_732
|
||||
.saturating_add(Weight::from_ref_time(73_458).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Storage: Recovery Proxy (r:1 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
fn cancel_recovered() -> Weight {
|
||||
// Minimum execution time: 20_316 nanoseconds.
|
||||
Weight::from_ref_time(20_912_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `2555`
|
||||
// Minimum execution time: 11_061 nanoseconds.
|
||||
Weight::from_parts(11_291_000, 2555)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ impl Contains<RuntimeCall> for BaseFilter {
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
pub MaxWeight: Weight = Weight::from_ref_time(2_000_000_000_000);
|
||||
pub MaxWeight: Weight = Weight::from_parts(2_000_000_000_000, u64::MAX);
|
||||
}
|
||||
impl frame_system::Config for Test {
|
||||
type BaseCallFilter = BaseFilter;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_remark
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -53,26 +54,28 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_remark using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
/// The range of component `l` is `[1, 1048576]`.
|
||||
fn store(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 17_017 nanoseconds.
|
||||
Weight::from_ref_time(8_269_935 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_404 nanoseconds.
|
||||
Weight::from_ref_time(343_031)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_ref_time(1_407 as u64).saturating_mul(l as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_404).saturating_mul(l.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
/// The range of component `l` is `[1, 1048576]`.
|
||||
fn store(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 17_017 nanoseconds.
|
||||
Weight::from_ref_time(8_269_935 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_404 nanoseconds.
|
||||
Weight::from_ref_time(343_031)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_ref_time(1_407 as u64).saturating_mul(l as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_404).saturating_mul(l.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -160,6 +160,10 @@ benchmarks! {
|
||||
|
||||
// `service_task` when the task is a non-periodic, non-named, fetched call (with a known
|
||||
// preimage length) and which is not dispatched (e.g. due to being overweight).
|
||||
#[pov_mode = MaxEncodedLen {
|
||||
// Use measured PoV size for the Preimages since we pass in a length witness.
|
||||
Preimage::PreimageFor: Measured
|
||||
}]
|
||||
service_task_fetched {
|
||||
let s in (BoundedInline::bound() as u32) .. (T::Preimages::MAX_LENGTH as u32);
|
||||
let now = BLOCK_NUMBER.into();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_scheduler
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -64,194 +65,292 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_scheduler using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Scheduler IncompleteSince (r:1 w:1)
|
||||
/// Storage: Scheduler IncompleteSince (r:1 w:1)
|
||||
/// Proof: Scheduler IncompleteSince (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn service_agendas_base() -> Weight {
|
||||
// Minimum execution time: 5_131 nanoseconds.
|
||||
Weight::from_ref_time(5_286_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `30`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 3_670 nanoseconds.
|
||||
Weight::from_parts(3_838_000, 499)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 512]`.
|
||||
fn service_agenda_base(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 4_111 nanoseconds.
|
||||
Weight::from_ref_time(8_763_440 as u64)
|
||||
// Standard Error: 783
|
||||
.saturating_add(Weight::from_ref_time(372_339 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `112 + s * (177 ±0)`
|
||||
// Estimated: `109497`
|
||||
// Minimum execution time: 3_079 nanoseconds.
|
||||
Weight::from_parts(7_087_647, 109497)
|
||||
// Standard Error: 658
|
||||
.saturating_add(Weight::from_ref_time(279_320).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_task_base() -> Weight {
|
||||
// Minimum execution time: 10_880 nanoseconds.
|
||||
Weight::from_ref_time(11_194_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_192 nanoseconds.
|
||||
Weight::from_ref_time(5_528_000)
|
||||
}
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[128, 4194304]`.
|
||||
fn service_task_fetched(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 25_347 nanoseconds.
|
||||
Weight::from_ref_time(25_717_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `211 + s * (1 ±0)`
|
||||
// Estimated: `5252 + s * (1 ±0)`
|
||||
// Minimum execution time: 17_284 nanoseconds.
|
||||
Weight::from_parts(17_574_000, 5252)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_128 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_126).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(s.into()))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
fn service_task_named() -> Weight {
|
||||
// Minimum execution time: 12_894 nanoseconds.
|
||||
Weight::from_ref_time(13_108_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_020 nanoseconds.
|
||||
Weight::from_ref_time(7_262_000)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_task_periodic() -> Weight {
|
||||
// Minimum execution time: 10_667 nanoseconds.
|
||||
Weight::from_ref_time(10_908_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_187 nanoseconds.
|
||||
Weight::from_ref_time(5_368_000)
|
||||
}
|
||||
fn execute_dispatch_signed() -> Weight {
|
||||
// Minimum execution time: 4_124 nanoseconds.
|
||||
Weight::from_ref_time(4_680_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_313 nanoseconds.
|
||||
Weight::from_ref_time(2_404_000)
|
||||
}
|
||||
fn execute_dispatch_unsigned() -> Weight {
|
||||
// Minimum execution time: 4_156 nanoseconds.
|
||||
Weight::from_ref_time(4_361_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_187 nanoseconds.
|
||||
Weight::from_ref_time(2_362_000)
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 511]`.
|
||||
fn schedule(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_504 nanoseconds.
|
||||
Weight::from_ref_time(27_066_818 as u64)
|
||||
// Standard Error: 1_114
|
||||
.saturating_add(Weight::from_ref_time(372_897 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `112 + s * (177 ±0)`
|
||||
// Estimated: `109497`
|
||||
// Minimum execution time: 11_971 nanoseconds.
|
||||
Weight::from_parts(16_060_361, 109497)
|
||||
// Standard Error: 665
|
||||
.saturating_add(Weight::from_ref_time(286_324).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn cancel(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 21_686 nanoseconds.
|
||||
Weight::from_ref_time(25_696_496 as u64)
|
||||
// Standard Error: 1_261
|
||||
.saturating_add(Weight::from_ref_time(362_498 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `112 + s * (177 ±0)`
|
||||
// Estimated: `109497`
|
||||
// Minimum execution time: 15_594 nanoseconds.
|
||||
Weight::from_parts(17_191_501, 109497)
|
||||
// Standard Error: 626
|
||||
.saturating_add(Weight::from_ref_time(425_572).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Lookup (r:1 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 511]`.
|
||||
fn schedule_named(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 23_084 nanoseconds.
|
||||
Weight::from_ref_time(31_255_518 as u64)
|
||||
// Standard Error: 1_258
|
||||
.saturating_add(Weight::from_ref_time(382_534 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `627 + s * (178 ±0)`
|
||||
// Estimated: `112020`
|
||||
// Minimum execution time: 15_127 nanoseconds.
|
||||
Weight::from_parts(20_932_642, 112020)
|
||||
// Standard Error: 692
|
||||
.saturating_add(Weight::from_ref_time(288_344).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Lookup (r:1 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn cancel_named(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 23_862 nanoseconds.
|
||||
Weight::from_ref_time(28_591_336 as u64)
|
||||
// Standard Error: 742
|
||||
.saturating_add(Weight::from_ref_time(369_305 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `740 + s * (177 ±0)`
|
||||
// Estimated: `112020`
|
||||
// Minimum execution time: 16_859 nanoseconds.
|
||||
Weight::from_parts(19_736_937, 112020)
|
||||
// Standard Error: 676
|
||||
.saturating_add(Weight::from_ref_time(429_770).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Scheduler IncompleteSince (r:1 w:1)
|
||||
/// Storage: Scheduler IncompleteSince (r:1 w:1)
|
||||
/// Proof: Scheduler IncompleteSince (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
fn service_agendas_base() -> Weight {
|
||||
// Minimum execution time: 5_131 nanoseconds.
|
||||
Weight::from_ref_time(5_286_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `30`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 3_670 nanoseconds.
|
||||
Weight::from_parts(3_838_000, 499)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 512]`.
|
||||
fn service_agenda_base(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 4_111 nanoseconds.
|
||||
Weight::from_ref_time(8_763_440 as u64)
|
||||
// Standard Error: 783
|
||||
.saturating_add(Weight::from_ref_time(372_339 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `112 + s * (177 ±0)`
|
||||
// Estimated: `109497`
|
||||
// Minimum execution time: 3_079 nanoseconds.
|
||||
Weight::from_parts(7_087_647, 109497)
|
||||
// Standard Error: 658
|
||||
.saturating_add(Weight::from_ref_time(279_320).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_task_base() -> Weight {
|
||||
// Minimum execution time: 10_880 nanoseconds.
|
||||
Weight::from_ref_time(11_194_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_192 nanoseconds.
|
||||
Weight::from_ref_time(5_528_000)
|
||||
}
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[128, 4194304]`.
|
||||
fn service_task_fetched(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 25_347 nanoseconds.
|
||||
Weight::from_ref_time(25_717_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `211 + s * (1 ±0)`
|
||||
// Estimated: `5252 + s * (1 ±0)`
|
||||
// Minimum execution time: 17_284 nanoseconds.
|
||||
Weight::from_parts(17_574_000, 5252)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_128 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_126).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(s.into()))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
fn service_task_named() -> Weight {
|
||||
// Minimum execution time: 12_894 nanoseconds.
|
||||
Weight::from_ref_time(13_108_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_020 nanoseconds.
|
||||
Weight::from_ref_time(7_262_000)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_task_periodic() -> Weight {
|
||||
// Minimum execution time: 10_667 nanoseconds.
|
||||
Weight::from_ref_time(10_908_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_187 nanoseconds.
|
||||
Weight::from_ref_time(5_368_000)
|
||||
}
|
||||
fn execute_dispatch_signed() -> Weight {
|
||||
// Minimum execution time: 4_124 nanoseconds.
|
||||
Weight::from_ref_time(4_680_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_313 nanoseconds.
|
||||
Weight::from_ref_time(2_404_000)
|
||||
}
|
||||
fn execute_dispatch_unsigned() -> Weight {
|
||||
// Minimum execution time: 4_156 nanoseconds.
|
||||
Weight::from_ref_time(4_361_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_187 nanoseconds.
|
||||
Weight::from_ref_time(2_362_000)
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 511]`.
|
||||
fn schedule(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_504 nanoseconds.
|
||||
Weight::from_ref_time(27_066_818 as u64)
|
||||
// Standard Error: 1_114
|
||||
.saturating_add(Weight::from_ref_time(372_897 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `112 + s * (177 ±0)`
|
||||
// Estimated: `109497`
|
||||
// Minimum execution time: 11_971 nanoseconds.
|
||||
Weight::from_parts(16_060_361, 109497)
|
||||
// Standard Error: 665
|
||||
.saturating_add(Weight::from_ref_time(286_324).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Lookup (r:0 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn cancel(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 21_686 nanoseconds.
|
||||
Weight::from_ref_time(25_696_496 as u64)
|
||||
// Standard Error: 1_261
|
||||
.saturating_add(Weight::from_ref_time(362_498 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `112 + s * (177 ±0)`
|
||||
// Estimated: `109497`
|
||||
// Minimum execution time: 15_594 nanoseconds.
|
||||
Weight::from_parts(17_191_501, 109497)
|
||||
// Standard Error: 626
|
||||
.saturating_add(Weight::from_ref_time(425_572).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Lookup (r:1 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 511]`.
|
||||
fn schedule_named(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 23_084 nanoseconds.
|
||||
Weight::from_ref_time(31_255_518 as u64)
|
||||
// Standard Error: 1_258
|
||||
.saturating_add(Weight::from_ref_time(382_534 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `627 + s * (178 ±0)`
|
||||
// Estimated: `112020`
|
||||
// Minimum execution time: 15_127 nanoseconds.
|
||||
Weight::from_parts(20_932_642, 112020)
|
||||
// Standard Error: 692
|
||||
.saturating_add(Weight::from_ref_time(288_344).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Storage: Scheduler Lookup (r:1 w:1)
|
||||
/// Proof: Scheduler Lookup (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:1 w:1)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn cancel_named(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 23_862 nanoseconds.
|
||||
Weight::from_ref_time(28_591_336 as u64)
|
||||
// Standard Error: 742
|
||||
.saturating_add(Weight::from_ref_time(369_305 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `740 + s * (177 ±0)`
|
||||
// Estimated: `112020`
|
||||
// Minimum execution time: 16_859 nanoseconds.
|
||||
Weight::from_parts(19_736_937, 112020)
|
||||
// Standard Error: 676
|
||||
.saturating_add(Weight::from_ref_time(429_770).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_session
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -54,44 +55,68 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_session using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:4 w:4)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Session NextKeys (r:1 w:1)
|
||||
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Session KeyOwner (r:4 w:4)
|
||||
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
|
||||
fn set_keys() -> Weight {
|
||||
// Minimum execution time: 59_046 nanoseconds.
|
||||
Weight::from_ref_time(59_934_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1955`
|
||||
// Estimated: `19851`
|
||||
// Minimum execution time: 40_867 nanoseconds.
|
||||
Weight::from_parts(41_319_000, 19851)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:0 w:4)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Session NextKeys (r:1 w:1)
|
||||
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Session KeyOwner (r:0 w:4)
|
||||
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
|
||||
fn purge_keys() -> Weight {
|
||||
// Minimum execution time: 48_872 nanoseconds.
|
||||
Weight::from_ref_time(49_666_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1854`
|
||||
// Estimated: `9749`
|
||||
// Minimum execution time: 30_286 nanoseconds.
|
||||
Weight::from_parts(30_620_000, 9749)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:4 w:4)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Session NextKeys (r:1 w:1)
|
||||
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Session KeyOwner (r:4 w:4)
|
||||
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
|
||||
fn set_keys() -> Weight {
|
||||
// Minimum execution time: 59_046 nanoseconds.
|
||||
Weight::from_ref_time(59_934_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1955`
|
||||
// Estimated: `19851`
|
||||
// Minimum execution time: 40_867 nanoseconds.
|
||||
Weight::from_parts(41_319_000, 19851)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:0 w:4)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Session NextKeys (r:1 w:1)
|
||||
/// Proof Skipped: Session NextKeys (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Session KeyOwner (r:0 w:4)
|
||||
/// Proof Skipped: Session KeyOwner (max_values: None, max_size: None, mode: Measured)
|
||||
fn purge_keys() -> Weight {
|
||||
// Minimum execution time: 48_872 nanoseconds.
|
||||
Weight::from_ref_time(49_666_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1854`
|
||||
// Estimated: `9749`
|
||||
// Minimum execution time: 30_286 nanoseconds.
|
||||
Weight::from_parts(30_620_000, 9749)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
}
|
||||
|
||||
+1220
-654
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_state_trie_migration
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -59,100 +60,156 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_state_trie_migration using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
// Storage: StateTrieMigration MigrationProcess (r:1 w:1)
|
||||
/// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
/// Proof: StateTrieMigration SignedMigrationMaxLimits (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: StateTrieMigration MigrationProcess (r:1 w:1)
|
||||
/// Proof: StateTrieMigration MigrationProcess (max_values: Some(1), max_size: Some(1042), added: 1537, mode: MaxEncodedLen)
|
||||
fn continue_migrate() -> Weight {
|
||||
// Minimum execution time: 23_874 nanoseconds.
|
||||
Weight::from_ref_time(24_127_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `108`
|
||||
// Estimated: `2040`
|
||||
// Minimum execution time: 15_563 nanoseconds.
|
||||
Weight::from_parts(15_783_000, 2040)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
/// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
/// Proof: StateTrieMigration SignedMigrationMaxLimits (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
fn continue_migrate_wrong_witness() -> Weight {
|
||||
// Minimum execution time: 6_119 nanoseconds.
|
||||
Weight::from_ref_time(6_325_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `503`
|
||||
// Minimum execution time: 4_347 nanoseconds.
|
||||
Weight::from_parts(4_558_000, 503)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
fn migrate_custom_top_success() -> Weight {
|
||||
// Minimum execution time: 20_365 nanoseconds.
|
||||
Weight::from_ref_time(20_790_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_817 nanoseconds.
|
||||
Weight::from_ref_time(9_027_000)
|
||||
}
|
||||
// Storage: unknown [0x666f6f] (r:1 w:1)
|
||||
/// Storage: unknown `0x666f6f` (r:1 w:1)
|
||||
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_top_fail() -> Weight {
|
||||
// Minimum execution time: 38_979 nanoseconds.
|
||||
Weight::from_ref_time(40_271_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2619`
|
||||
// Minimum execution time: 23_854 nanoseconds.
|
||||
Weight::from_parts(24_850_000, 2619)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn migrate_custom_child_success() -> Weight {
|
||||
// Minimum execution time: 21_217 nanoseconds.
|
||||
Weight::from_ref_time(21_526_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_020 nanoseconds.
|
||||
Weight::from_ref_time(9_234_000)
|
||||
}
|
||||
// Storage: unknown [0x666f6f] (r:1 w:1)
|
||||
/// Storage: unknown `0x666f6f` (r:1 w:1)
|
||||
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_child_fail() -> Weight {
|
||||
// Minimum execution time: 43_853 nanoseconds.
|
||||
Weight::from_ref_time(44_693_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `2611`
|
||||
// Minimum execution time: 24_136 nanoseconds.
|
||||
Weight::from_parts(24_810_000, 2611)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: unknown [0x6b6579] (r:1 w:1)
|
||||
/// Storage: unknown `0x6b6579` (r:1 w:1)
|
||||
/// Proof Skipped: unknown `0x6b6579` (r:1 w:1)
|
||||
/// The range of component `v` is `[1, 4194304]`.
|
||||
fn process_top_key(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_575 nanoseconds.
|
||||
Weight::from_ref_time(5_719_000 as u64)
|
||||
// Standard Error: 3
|
||||
.saturating_add(Weight::from_ref_time(1_404 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `228 + v * (1 ±0)`
|
||||
// Estimated: `2700 + v * (1 ±0)`
|
||||
// Minimum execution time: 5_279 nanoseconds.
|
||||
Weight::from_parts(5_517_000, 2700)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_ref_time(1_230).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(v.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
// Storage: StateTrieMigration MigrationProcess (r:1 w:1)
|
||||
/// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
/// Proof: StateTrieMigration SignedMigrationMaxLimits (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: StateTrieMigration MigrationProcess (r:1 w:1)
|
||||
/// Proof: StateTrieMigration MigrationProcess (max_values: Some(1), max_size: Some(1042), added: 1537, mode: MaxEncodedLen)
|
||||
fn continue_migrate() -> Weight {
|
||||
// Minimum execution time: 23_874 nanoseconds.
|
||||
Weight::from_ref_time(24_127_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `108`
|
||||
// Estimated: `2040`
|
||||
// Minimum execution time: 15_563 nanoseconds.
|
||||
Weight::from_parts(15_783_000, 2040)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
/// Storage: StateTrieMigration SignedMigrationMaxLimits (r:1 w:0)
|
||||
/// Proof: StateTrieMigration SignedMigrationMaxLimits (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
fn continue_migrate_wrong_witness() -> Weight {
|
||||
// Minimum execution time: 6_119 nanoseconds.
|
||||
Weight::from_ref_time(6_325_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `503`
|
||||
// Minimum execution time: 4_347 nanoseconds.
|
||||
Weight::from_parts(4_558_000, 503)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
fn migrate_custom_top_success() -> Weight {
|
||||
// Minimum execution time: 20_365 nanoseconds.
|
||||
Weight::from_ref_time(20_790_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_817 nanoseconds.
|
||||
Weight::from_ref_time(9_027_000)
|
||||
}
|
||||
// Storage: unknown [0x666f6f] (r:1 w:1)
|
||||
/// Storage: unknown `0x666f6f` (r:1 w:1)
|
||||
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_top_fail() -> Weight {
|
||||
// Minimum execution time: 38_979 nanoseconds.
|
||||
Weight::from_ref_time(40_271_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Estimated: `2619`
|
||||
// Minimum execution time: 23_854 nanoseconds.
|
||||
Weight::from_parts(24_850_000, 2619)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn migrate_custom_child_success() -> Weight {
|
||||
// Minimum execution time: 21_217 nanoseconds.
|
||||
Weight::from_ref_time(21_526_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_020 nanoseconds.
|
||||
Weight::from_ref_time(9_234_000)
|
||||
}
|
||||
// Storage: unknown [0x666f6f] (r:1 w:1)
|
||||
/// Storage: unknown `0x666f6f` (r:1 w:1)
|
||||
/// Proof Skipped: unknown `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_child_fail() -> Weight {
|
||||
// Minimum execution time: 43_853 nanoseconds.
|
||||
Weight::from_ref_time(44_693_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `136`
|
||||
// Estimated: `2611`
|
||||
// Minimum execution time: 24_136 nanoseconds.
|
||||
Weight::from_parts(24_810_000, 2611)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: unknown [0x6b6579] (r:1 w:1)
|
||||
/// Storage: unknown `0x6b6579` (r:1 w:1)
|
||||
/// Proof Skipped: unknown `0x6b6579` (r:1 w:1)
|
||||
/// The range of component `v` is `[1, 4194304]`.
|
||||
fn process_top_key(v: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_575 nanoseconds.
|
||||
Weight::from_ref_time(5_719_000 as u64)
|
||||
// Standard Error: 3
|
||||
.saturating_add(Weight::from_ref_time(1_404 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `228 + v * (1 ±0)`
|
||||
// Estimated: `2700 + v * (1 ±0)`
|
||||
// Minimum execution time: 5_279 nanoseconds.
|
||||
Weight::from_parts(5_517_000, 2700)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_ref_time(1_230).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(v.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -438,6 +438,9 @@ pub fn benchmarks(
|
||||
#krate::BenchmarkMetadata {
|
||||
name: benchmark.as_bytes().to_vec(),
|
||||
components,
|
||||
// TODO: Not supported by V2 syntax as of yet.
|
||||
// https://github.com/paritytech/substrate/issues/13132
|
||||
pov_modes: vec![],
|
||||
}
|
||||
}).collect::<#krate::Vec<_>>()
|
||||
}
|
||||
|
||||
@@ -32,6 +32,8 @@ use sp_runtime::{DispatchError, TransactionOutcome, TransactionalError};
|
||||
/// The type that is being used to store the current number of active layers.
|
||||
pub type Layer = u32;
|
||||
/// The key that is holds the current number of active layers.
|
||||
///
|
||||
/// Encodes to `0x3a7472616e73616374696f6e5f6c6576656c3a`.
|
||||
pub const TRANSACTION_LEVEL_KEY: &[u8] = b":transaction_level:";
|
||||
/// The maximum number of nested layers.
|
||||
pub const TRANSACTIONAL_LIMIT: Layer = 255;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -16,7 +16,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07 (Y/M/D)
|
||||
//! DATE: 2023-01-25 (Y/M/D)
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//!
|
||||
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development`
|
||||
@@ -44,17 +44,17 @@ parameter_types! {
|
||||
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
|
||||
///
|
||||
/// Stats nanoseconds:
|
||||
/// Min, Max: 351_000, 392_617
|
||||
/// Average: 358_523
|
||||
/// Median: 359_836
|
||||
/// Std-Dev: 6698.67
|
||||
/// Min, Max: 377_722, 414_752
|
||||
/// Average: 381_015
|
||||
/// Median: 379_751
|
||||
/// Std-Dev: 5462.64
|
||||
///
|
||||
/// Percentiles nanoseconds:
|
||||
/// 99th: 390_723
|
||||
/// 95th: 365_799
|
||||
/// 75th: 361_582
|
||||
/// 99th: 413_074
|
||||
/// 95th: 384_876
|
||||
/// 75th: 380_642
|
||||
pub const BlockExecutionWeight: Weight =
|
||||
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(358_523));
|
||||
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(381_015));
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -16,7 +16,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07 (Y/M/D)
|
||||
//! DATE: 2023-01-25 (Y/M/D)
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//!
|
||||
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development`
|
||||
@@ -44,17 +44,17 @@ parameter_types! {
|
||||
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
|
||||
///
|
||||
/// Stats nanoseconds:
|
||||
/// Min, Max: 98_722, 101_420
|
||||
/// Average: 98_974
|
||||
/// Median: 98_951
|
||||
/// Std-Dev: 271.62
|
||||
/// Min, Max: 99_481, 103_304
|
||||
/// Average: 99_840
|
||||
/// Median: 99_795
|
||||
/// Std-Dev: 376.17
|
||||
///
|
||||
/// Percentiles nanoseconds:
|
||||
/// 99th: 99_202
|
||||
/// 95th: 99_163
|
||||
/// 75th: 99_030
|
||||
/// 99th: 100_078
|
||||
/// 95th: 100_051
|
||||
/// 75th: 99_916
|
||||
pub const ExtrinsicBaseWeight: Weight =
|
||||
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(98_974));
|
||||
Weight::from_ref_time(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(99_840));
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for frame_system
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! 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
|
||||
|
||||
@@ -60,52 +61,76 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark(b: u32, ) -> Weight {
|
||||
// Minimum execution time: 3_951 nanoseconds.
|
||||
Weight::from_ref_time(1_307_232 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_018 nanoseconds.
|
||||
Weight::from_ref_time(2_091_000)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(363 as u64).saturating_mul(b as u64))
|
||||
.saturating_add(Weight::from_ref_time(362).saturating_mul(b.into()))
|
||||
}
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark_with_event(b: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_880 nanoseconds.
|
||||
Weight::from_ref_time(15_173_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_449 nanoseconds.
|
||||
Weight::from_ref_time(7_748_000)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_424 as u64).saturating_mul(b as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_423).saturating_mul(b.into()))
|
||||
}
|
||||
// Storage: System Digest (r:1 w:1)
|
||||
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
|
||||
/// Storage: System Digest (r:1 w:1)
|
||||
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
|
||||
/// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
|
||||
fn set_heap_pages() -> Weight {
|
||||
// Minimum execution time: 9_819 nanoseconds.
|
||||
Weight::from_ref_time(10_513_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `495`
|
||||
// Minimum execution time: 4_440 nanoseconds.
|
||||
Weight::from_parts(4_605_000, 495)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn set_storage(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 4_038 nanoseconds.
|
||||
Weight::from_ref_time(4_098_000 as u64)
|
||||
// Standard Error: 710
|
||||
.saturating_add(Weight::from_ref_time(620_813 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 1_981 nanoseconds.
|
||||
Weight::from_ref_time(2_114_000)
|
||||
// Standard Error: 804
|
||||
.saturating_add(Weight::from_ref_time(631_438).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn kill_storage(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 3_972 nanoseconds.
|
||||
Weight::from_ref_time(4_082_000 as u64)
|
||||
// Standard Error: 884
|
||||
.saturating_add(Weight::from_ref_time(536_923 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_061 nanoseconds.
|
||||
Weight::from_ref_time(2_153_000)
|
||||
// Standard Error: 952
|
||||
.saturating_add(Weight::from_ref_time(502_629).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `p` is `[0, 1000]`.
|
||||
fn kill_prefix(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_703 nanoseconds.
|
||||
Weight::from_ref_time(5_763_000 as u64)
|
||||
// Standard Error: 1_248
|
||||
.saturating_add(Weight::from_ref_time(1_126_062 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `116 + p * (69 ±0)`
|
||||
// Estimated: `121 + p * (70 ±0)`
|
||||
// Minimum execution time: 4_026 nanoseconds.
|
||||
Weight::from_parts(4_174_000, 121)
|
||||
// Standard Error: 1_148
|
||||
.saturating_add(Weight::from_ref_time(1_093_099).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(Weight::from_proof_size(70).saturating_mul(p.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,51 +138,75 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark(b: u32, ) -> Weight {
|
||||
// Minimum execution time: 3_951 nanoseconds.
|
||||
Weight::from_ref_time(1_307_232 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_018 nanoseconds.
|
||||
Weight::from_ref_time(2_091_000)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(363 as u64).saturating_mul(b as u64))
|
||||
.saturating_add(Weight::from_ref_time(362).saturating_mul(b.into()))
|
||||
}
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark_with_event(b: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_880 nanoseconds.
|
||||
Weight::from_ref_time(15_173_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_449 nanoseconds.
|
||||
Weight::from_ref_time(7_748_000)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_424 as u64).saturating_mul(b as u64))
|
||||
.saturating_add(Weight::from_ref_time(1_423).saturating_mul(b.into()))
|
||||
}
|
||||
// Storage: System Digest (r:1 w:1)
|
||||
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
|
||||
/// Storage: System Digest (r:1 w:1)
|
||||
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: unknown `0x3a686561707061676573` (r:0 w:1)
|
||||
/// Proof Skipped: unknown `0x3a686561707061676573` (r:0 w:1)
|
||||
fn set_heap_pages() -> Weight {
|
||||
// Minimum execution time: 9_819 nanoseconds.
|
||||
Weight::from_ref_time(10_513_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `495`
|
||||
// Minimum execution time: 4_440 nanoseconds.
|
||||
Weight::from_parts(4_605_000, 495)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn set_storage(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 4_038 nanoseconds.
|
||||
Weight::from_ref_time(4_098_000 as u64)
|
||||
// Standard Error: 710
|
||||
.saturating_add(Weight::from_ref_time(620_813 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 1_981 nanoseconds.
|
||||
Weight::from_ref_time(2_114_000)
|
||||
// Standard Error: 804
|
||||
.saturating_add(Weight::from_ref_time(631_438).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn kill_storage(i: u32, ) -> Weight {
|
||||
// Minimum execution time: 3_972 nanoseconds.
|
||||
Weight::from_ref_time(4_082_000 as u64)
|
||||
// Standard Error: 884
|
||||
.saturating_add(Weight::from_ref_time(536_923 as u64).saturating_mul(i as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(i as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_061 nanoseconds.
|
||||
Weight::from_ref_time(2_153_000)
|
||||
// Standard Error: 952
|
||||
.saturating_add(Weight::from_ref_time(502_629).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `p` is `[0, 1000]`.
|
||||
fn kill_prefix(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_703 nanoseconds.
|
||||
Weight::from_ref_time(5_763_000 as u64)
|
||||
// Standard Error: 1_248
|
||||
.saturating_add(Weight::from_ref_time(1_126_062 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `116 + p * (69 ±0)`
|
||||
// Estimated: `121 + p * (70 ±0)`
|
||||
// Minimum execution time: 4_026 nanoseconds.
|
||||
Weight::from_parts(4_174_000, 121)
|
||||
// Standard Error: 1_148
|
||||
.saturating_add(Weight::from_ref_time(1_093_099).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(Weight::from_proof_size(70).saturating_mul(p.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_timestamp
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -54,32 +55,48 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_timestamp using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Timestamp Now (r:1 w:1)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Storage: Timestamp Now (r:1 w:1)
|
||||
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
fn set() -> Weight {
|
||||
// Minimum execution time: 11_331 nanoseconds.
|
||||
Weight::from_ref_time(11_584_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312`
|
||||
// Estimated: `1006`
|
||||
// Minimum execution time: 9_106 nanoseconds.
|
||||
Weight::from_parts(9_258_000, 1006)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn on_finalize() -> Weight {
|
||||
// Minimum execution time: 5_280 nanoseconds.
|
||||
Weight::from_ref_time(5_412_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_927 nanoseconds.
|
||||
Weight::from_ref_time(4_078_000)
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Timestamp Now (r:1 w:1)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Storage: Timestamp Now (r:1 w:1)
|
||||
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
fn set() -> Weight {
|
||||
// Minimum execution time: 11_331 nanoseconds.
|
||||
Weight::from_ref_time(11_584_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312`
|
||||
// Estimated: `1006`
|
||||
// Minimum execution time: 9_106 nanoseconds.
|
||||
Weight::from_parts(9_258_000, 1006)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn on_finalize() -> Weight {
|
||||
// Minimum execution time: 5_280 nanoseconds.
|
||||
Weight::from_ref_time(5_412_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_927 nanoseconds.
|
||||
Weight::from_ref_time(4_078_000)
|
||||
}
|
||||
}
|
||||
|
||||
+177
-104
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_tips
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -58,146 +59,218 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_tips using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
/// Storage: Tips Reasons (r:1 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `r` is `[0, 300]`.
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 35_458 nanoseconds.
|
||||
Weight::from_ref_time(36_920_009 as u64)
|
||||
// Standard Error: 252
|
||||
.saturating_add(Weight::from_ref_time(1_835 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4`
|
||||
// Estimated: `4958`
|
||||
// Minimum execution time: 23_262 nanoseconds.
|
||||
Weight::from_parts(24_104_224, 4958)
|
||||
// Standard Error: 148
|
||||
.saturating_add(Weight::from_ref_time(1_963).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
fn retract_tip() -> Weight {
|
||||
// Minimum execution time: 34_322 nanoseconds.
|
||||
Weight::from_ref_time(35_292_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `253`
|
||||
// Estimated: `2981`
|
||||
// Minimum execution time: 22_282 nanoseconds.
|
||||
Weight::from_parts(22_737_000, 2981)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:0 w:1)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Tips Reasons (r:1 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Tips (r:0 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `r` is `[0, 300]`.
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
// Minimum execution time: 26_691 nanoseconds.
|
||||
Weight::from_ref_time(27_313_497 as u64)
|
||||
// Standard Error: 141
|
||||
.saturating_add(Weight::from_ref_time(818 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 3_352
|
||||
.saturating_add(Weight::from_ref_time(108_557 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `558 + t * (64 ±0)`
|
||||
// Estimated: `4644 + t * (192 ±0)`
|
||||
// Minimum execution time: 18_382 nanoseconds.
|
||||
Weight::from_parts(18_195_288, 4644)
|
||||
// Standard Error: 103
|
||||
.saturating_add(Weight::from_ref_time(2_096).saturating_mul(r.into()))
|
||||
// Standard Error: 2_469
|
||||
.saturating_add(Weight::from_ref_time(97_092).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
// Minimum execution time: 17_464 nanoseconds.
|
||||
Weight::from_ref_time(17_621_090 as u64)
|
||||
// Standard Error: 3_702
|
||||
.saturating_add(Weight::from_ref_time(269_919 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `811 + t * (112 ±0)`
|
||||
// Estimated: `4592 + t * (224 ±0)`
|
||||
// Minimum execution time: 13_564 nanoseconds.
|
||||
Weight::from_parts(13_867_280, 4592)
|
||||
// Standard Error: 4_245
|
||||
.saturating_add(Weight::from_ref_time(206_587).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(224).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
// Minimum execution time: 52_221 nanoseconds.
|
||||
Weight::from_ref_time(53_168_303 as u64)
|
||||
// Standard Error: 6_591
|
||||
.saturating_add(Weight::from_ref_time(243_706 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `850 + t * (112 ±0)`
|
||||
// Estimated: `8096 + t * (336 ±0)`
|
||||
// Minimum execution time: 39_902 nanoseconds.
|
||||
Weight::from_parts(40_747_650, 8096)
|
||||
// Standard Error: 5_322
|
||||
.saturating_add(Weight::from_ref_time(144_298).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(336).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_911 nanoseconds.
|
||||
Weight::from_ref_time(23_750_488 as u64)
|
||||
// Standard Error: 2_561
|
||||
.saturating_add(Weight::from_ref_time(12_282 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `301`
|
||||
// Estimated: `3077`
|
||||
// Minimum execution time: 13_511 nanoseconds.
|
||||
Weight::from_parts(14_114_101, 3077)
|
||||
// Standard Error: 1_815
|
||||
.saturating_add(Weight::from_ref_time(7_825).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
/// Storage: Tips Reasons (r:1 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `r` is `[0, 300]`.
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 35_458 nanoseconds.
|
||||
Weight::from_ref_time(36_920_009 as u64)
|
||||
// Standard Error: 252
|
||||
.saturating_add(Weight::from_ref_time(1_835 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4`
|
||||
// Estimated: `4958`
|
||||
// Minimum execution time: 23_262 nanoseconds.
|
||||
Weight::from_parts(24_104_224, 4958)
|
||||
// Standard Error: 148
|
||||
.saturating_add(Weight::from_ref_time(1_963).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
fn retract_tip() -> Weight {
|
||||
// Minimum execution time: 34_322 nanoseconds.
|
||||
Weight::from_ref_time(35_292_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `253`
|
||||
// Estimated: `2981`
|
||||
// Minimum execution time: 22_282 nanoseconds.
|
||||
Weight::from_parts(22_737_000, 2981)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:0 w:1)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Tips Reasons (r:1 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Tips (r:0 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `r` is `[0, 300]`.
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
// Minimum execution time: 26_691 nanoseconds.
|
||||
Weight::from_ref_time(27_313_497 as u64)
|
||||
// Standard Error: 141
|
||||
.saturating_add(Weight::from_ref_time(818 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 3_352
|
||||
.saturating_add(Weight::from_ref_time(108_557 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `558 + t * (64 ±0)`
|
||||
// Estimated: `4644 + t * (192 ±0)`
|
||||
// Minimum execution time: 18_382 nanoseconds.
|
||||
Weight::from_parts(18_195_288, 4644)
|
||||
// Standard Error: 103
|
||||
.saturating_add(Weight::from_ref_time(2_096).saturating_mul(r.into()))
|
||||
// Standard Error: 2_469
|
||||
.saturating_add(Weight::from_ref_time(97_092).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_proof_size(192).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
// Minimum execution time: 17_464 nanoseconds.
|
||||
Weight::from_ref_time(17_621_090 as u64)
|
||||
// Standard Error: 3_702
|
||||
.saturating_add(Weight::from_ref_time(269_919 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `811 + t * (112 ±0)`
|
||||
// Estimated: `4592 + t * (224 ±0)`
|
||||
// Minimum execution time: 13_564 nanoseconds.
|
||||
Weight::from_parts(13_867_280, 4592)
|
||||
// Standard Error: 4_245
|
||||
.saturating_add(Weight::from_ref_time(206_587).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(224).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Elections Members (r:1 w:0)
|
||||
/// Proof Skipped: Elections Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
// Minimum execution time: 52_221 nanoseconds.
|
||||
Weight::from_ref_time(53_168_303 as u64)
|
||||
// Standard Error: 6_591
|
||||
.saturating_add(Weight::from_ref_time(243_706 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `850 + t * (112 ±0)`
|
||||
// Estimated: `8096 + t * (336 ±0)`
|
||||
// Minimum execution time: 39_902 nanoseconds.
|
||||
Weight::from_parts(40_747_650, 8096)
|
||||
// Standard Error: 5_322
|
||||
.saturating_add(Weight::from_ref_time(144_298).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(336).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Storage: Tips Tips (r:1 w:1)
|
||||
/// Proof Skipped: Tips Tips (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Tips Reasons (r:0 w:1)
|
||||
/// Proof Skipped: Tips Reasons (max_values: None, max_size: None, mode: Measured)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
// Minimum execution time: 22_911 nanoseconds.
|
||||
Weight::from_ref_time(23_750_488 as u64)
|
||||
// Standard Error: 2_561
|
||||
.saturating_add(Weight::from_ref_time(12_282 as u64).saturating_mul(t as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `301`
|
||||
// Estimated: `3077`
|
||||
// Minimum execution time: 13_511 nanoseconds.
|
||||
Weight::from_parts(14_114_101, 3077)
|
||||
// Standard Error: 1_815
|
||||
.saturating_add(Weight::from_ref_time(7_825).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_transaction_storage
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -55,78 +56,116 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_transaction_storage using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage ByteFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage EntryFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Proof: TransactionStorage BlockTransactions (max_values: Some(1), max_size: Some(36866), added: 37361, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[1, 8388608]`.
|
||||
fn store(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 46_730 nanoseconds.
|
||||
Weight::from_ref_time(46_922_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `176`
|
||||
// Estimated: `38383`
|
||||
// Minimum execution time: 28_702 nanoseconds.
|
||||
Weight::from_parts(29_164_000, 38383)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_ref_time(5_601 as u64).saturating_mul(l as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(Weight::from_ref_time(5_601).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
/// Proof: TransactionStorage Transactions (max_values: None, max_size: Some(36886), added: 39361, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage ByteFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage EntryFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Proof: TransactionStorage BlockTransactions (max_values: Some(1), max_size: Some(36866), added: 37361, mode: MaxEncodedLen)
|
||||
fn renew() -> Weight {
|
||||
// Minimum execution time: 56_802 nanoseconds.
|
||||
Weight::from_ref_time(58_670_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `358`
|
||||
// Estimated: `77744`
|
||||
// Minimum execution time: 36_219 nanoseconds.
|
||||
Weight::from_parts(36_979_000, 77744)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: TransactionStorage ProofChecked (r:1 w:1)
|
||||
// Storage: TransactionStorage StoragePeriod (r:1 w:0)
|
||||
// Storage: TransactionStorage ChunkCount (r:1 w:0)
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
/// Storage: TransactionStorage ProofChecked (r:1 w:1)
|
||||
/// Proof: TransactionStorage ProofChecked (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage StoragePeriod (r:1 w:0)
|
||||
/// Proof: TransactionStorage StoragePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage ChunkCount (r:1 w:0)
|
||||
/// Proof: TransactionStorage ChunkCount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
|
||||
/// Storage: System ParentHash (r:1 w:0)
|
||||
/// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
/// Proof: TransactionStorage Transactions (max_values: None, max_size: Some(36886), added: 39361, mode: MaxEncodedLen)
|
||||
fn check_proof_max() -> Weight {
|
||||
// Minimum execution time: 74_016 nanoseconds.
|
||||
Weight::from_ref_time(94_111_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `37177`
|
||||
// Estimated: `43382`
|
||||
// Minimum execution time: 55_793 nanoseconds.
|
||||
Weight::from_parts(57_128_000, 43382)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage ByteFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage EntryFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Proof: TransactionStorage BlockTransactions (max_values: Some(1), max_size: Some(36866), added: 37361, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[1, 8388608]`.
|
||||
fn store(l: u32, ) -> Weight {
|
||||
// Minimum execution time: 46_730 nanoseconds.
|
||||
Weight::from_ref_time(46_922_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `176`
|
||||
// Estimated: `38383`
|
||||
// Minimum execution time: 28_702 nanoseconds.
|
||||
Weight::from_parts(29_164_000, 38383)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_ref_time(5_601 as u64).saturating_mul(l as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(Weight::from_ref_time(5_601).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
/// Proof: TransactionStorage Transactions (max_values: None, max_size: Some(36886), added: 39361, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage ByteFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage ByteFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage EntryFee (r:1 w:0)
|
||||
/// Proof: TransactionStorage EntryFee (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
/// Proof: TransactionStorage BlockTransactions (max_values: Some(1), max_size: Some(36866), added: 37361, mode: MaxEncodedLen)
|
||||
fn renew() -> Weight {
|
||||
// Minimum execution time: 56_802 nanoseconds.
|
||||
Weight::from_ref_time(58_670_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `358`
|
||||
// Estimated: `77744`
|
||||
// Minimum execution time: 36_219 nanoseconds.
|
||||
Weight::from_parts(36_979_000, 77744)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: TransactionStorage ProofChecked (r:1 w:1)
|
||||
// Storage: TransactionStorage StoragePeriod (r:1 w:0)
|
||||
// Storage: TransactionStorage ChunkCount (r:1 w:0)
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
/// Storage: TransactionStorage ProofChecked (r:1 w:1)
|
||||
/// Proof: TransactionStorage ProofChecked (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage StoragePeriod (r:1 w:0)
|
||||
/// Proof: TransactionStorage StoragePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage ChunkCount (r:1 w:0)
|
||||
/// Proof: TransactionStorage ChunkCount (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
|
||||
/// Storage: System ParentHash (r:1 w:0)
|
||||
/// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
/// Proof: TransactionStorage Transactions (max_values: None, max_size: Some(36886), added: 39361, mode: MaxEncodedLen)
|
||||
fn check_proof_max() -> Weight {
|
||||
// Minimum execution time: 74_016 nanoseconds.
|
||||
Weight::from_ref_time(94_111_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `37177`
|
||||
// Estimated: `43382`
|
||||
// Minimum execution time: 55_793 nanoseconds.
|
||||
Weight::from_parts(57_128_000, 43382)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_treasury
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -58,114 +59,194 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_treasury using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
/// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Proposals (r:0 w:1)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
fn spend() -> Weight {
|
||||
// Minimum execution time: 137 nanoseconds.
|
||||
Weight::from_ref_time(153_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `1396`
|
||||
// Minimum execution time: 14_277 nanoseconds.
|
||||
Weight::from_parts(14_749_000, 1396)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:0 w:1)
|
||||
/// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
/// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Proposals (r:0 w:1)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
fn propose_spend() -> Weight {
|
||||
// Minimum execution time: 31_437 nanoseconds.
|
||||
Weight::from_ref_time(32_241_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 23_297 nanoseconds.
|
||||
Weight::from_parts(23_585_000, 499)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Treasury Proposals (r:1 w:1)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn reject_proposal() -> Weight {
|
||||
// Minimum execution time: 38_351 nanoseconds.
|
||||
Weight::from_ref_time(38_828_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `365`
|
||||
// Estimated: `5186`
|
||||
// Minimum execution time: 23_996 nanoseconds.
|
||||
Weight::from_parts(24_548_000, 5186)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:0)
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Storage: Treasury Proposals (r:1 w:0)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 99]`.
|
||||
fn approve_proposal(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 11_937 nanoseconds.
|
||||
Weight::from_ref_time(15_541_763 as u64)
|
||||
// Standard Error: 1_036
|
||||
.saturating_add(Weight::from_ref_time(128_326 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `501 + p * (8 ±0)`
|
||||
// Estimated: `3480`
|
||||
// Minimum execution time: 9_366 nanoseconds.
|
||||
Weight::from_parts(11_731_455, 3480)
|
||||
// Standard Error: 761
|
||||
.saturating_add(Weight::from_ref_time(21_665).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
fn remove_approval() -> Weight {
|
||||
// Minimum execution time: 9_611 nanoseconds.
|
||||
Weight::from_ref_time(10_012_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `127`
|
||||
// Estimated: `897`
|
||||
// Minimum execution time: 7_012 nanoseconds.
|
||||
Weight::from_parts(7_270_000, 897)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:2 w:2)
|
||||
// Storage: System Account (r:4 w:4)
|
||||
/// Storage: Treasury Deactivated (r:1 w:1)
|
||||
/// Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Proposals (r:100 w:100)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:200 w:200)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn on_initialize_proposals(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_016 nanoseconds.
|
||||
Weight::from_ref_time(56_538_751 as u64)
|
||||
// Standard Error: 14_890
|
||||
.saturating_add(Weight::from_ref_time(26_789_120 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(p as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `415 + p * (314 ±0)`
|
||||
// Estimated: `2305 + p * (7789 ±0)`
|
||||
// Minimum execution time: 37_834 nanoseconds.
|
||||
Weight::from_parts(47_496_917, 2305)
|
||||
// Standard Error: 12_505
|
||||
.saturating_add(Weight::from_ref_time(26_902_474).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(p.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(p.into())))
|
||||
.saturating_add(Weight::from_proof_size(7789).saturating_mul(p.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
/// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Proposals (r:0 w:1)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
fn spend() -> Weight {
|
||||
// Minimum execution time: 137 nanoseconds.
|
||||
Weight::from_ref_time(153_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `1396`
|
||||
// Minimum execution time: 14_277 nanoseconds.
|
||||
Weight::from_parts(14_749_000, 1396)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:0 w:1)
|
||||
/// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
/// Proof: Treasury ProposalCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Proposals (r:0 w:1)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
fn propose_spend() -> Weight {
|
||||
// Minimum execution time: 31_437 nanoseconds.
|
||||
Weight::from_ref_time(32_241_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Estimated: `499`
|
||||
// Minimum execution time: 23_297 nanoseconds.
|
||||
Weight::from_parts(23_585_000, 499)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Treasury Proposals (r:1 w:1)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn reject_proposal() -> Weight {
|
||||
// Minimum execution time: 38_351 nanoseconds.
|
||||
Weight::from_ref_time(38_828_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `365`
|
||||
// Estimated: `5186`
|
||||
// Minimum execution time: 23_996 nanoseconds.
|
||||
Weight::from_parts(24_548_000, 5186)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:0)
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Storage: Treasury Proposals (r:1 w:0)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 99]`.
|
||||
fn approve_proposal(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 11_937 nanoseconds.
|
||||
Weight::from_ref_time(15_541_763 as u64)
|
||||
// Standard Error: 1_036
|
||||
.saturating_add(Weight::from_ref_time(128_326 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `501 + p * (8 ±0)`
|
||||
// Estimated: `3480`
|
||||
// Minimum execution time: 9_366 nanoseconds.
|
||||
Weight::from_parts(11_731_455, 3480)
|
||||
// Standard Error: 761
|
||||
.saturating_add(Weight::from_ref_time(21_665).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
fn remove_approval() -> Weight {
|
||||
// Minimum execution time: 9_611 nanoseconds.
|
||||
Weight::from_ref_time(10_012_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `127`
|
||||
// Estimated: `897`
|
||||
// Minimum execution time: 7_012 nanoseconds.
|
||||
Weight::from_parts(7_270_000, 897)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:2 w:2)
|
||||
// Storage: System Account (r:4 w:4)
|
||||
/// Storage: Treasury Deactivated (r:1 w:1)
|
||||
/// Proof: Treasury Deactivated (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Approvals (r:1 w:1)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Proposals (r:100 w:100)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:200 w:200)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
/// Proof: Bounties BountyApprovals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn on_initialize_proposals(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_016 nanoseconds.
|
||||
Weight::from_ref_time(56_538_751 as u64)
|
||||
// Standard Error: 14_890
|
||||
.saturating_add(Weight::from_ref_time(26_789_120 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(p as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `415 + p * (314 ±0)`
|
||||
// Estimated: `2305 + p * (7789 ±0)`
|
||||
// Minimum execution time: 37_834 nanoseconds.
|
||||
Weight::from_parts(47_496_917, 2305)
|
||||
// Standard Error: 12_505
|
||||
.saturating_add(Weight::from_ref_time(26_902_474).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(p.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(p.into())))
|
||||
.saturating_add(Weight::from_proof_size(7789).saturating_mul(p.into()))
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_utility
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -59,32 +60,47 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_470 nanoseconds.
|
||||
Weight::from_ref_time(17_443_346 as u64)
|
||||
// Standard Error: 2_037
|
||||
.saturating_add(Weight::from_ref_time(3_510_555 as u64).saturating_mul(c as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_742 nanoseconds.
|
||||
Weight::from_ref_time(16_087_635)
|
||||
// Standard Error: 2_411
|
||||
.saturating_add(Weight::from_ref_time(3_665_506).saturating_mul(c.into()))
|
||||
}
|
||||
fn as_derivative() -> Weight {
|
||||
// Minimum execution time: 6_799 nanoseconds.
|
||||
Weight::from_ref_time(6_976_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_802 nanoseconds.
|
||||
Weight::from_ref_time(5_269_000)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_630 nanoseconds.
|
||||
Weight::from_ref_time(24_580_656 as u64)
|
||||
// Standard Error: 2_202
|
||||
.saturating_add(Weight::from_ref_time(3_584_516 as u64).saturating_mul(c as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_100 nanoseconds.
|
||||
Weight::from_ref_time(14_090_381)
|
||||
// Standard Error: 1_917
|
||||
.saturating_add(Weight::from_ref_time(3_744_891).saturating_mul(c.into()))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
// Minimum execution time: 16_597 nanoseconds.
|
||||
Weight::from_ref_time(16_950_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_840 nanoseconds.
|
||||
Weight::from_ref_time(9_280_000)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn force_batch(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 13_885 nanoseconds.
|
||||
Weight::from_ref_time(20_147_978 as u64)
|
||||
// Standard Error: 2_232
|
||||
.saturating_add(Weight::from_ref_time(3_516_969 as u64).saturating_mul(c as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_245 nanoseconds.
|
||||
Weight::from_ref_time(14_292_923)
|
||||
// Standard Error: 1_803
|
||||
.saturating_add(Weight::from_ref_time(3_645_950).saturating_mul(c.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,31 +108,46 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_470 nanoseconds.
|
||||
Weight::from_ref_time(17_443_346 as u64)
|
||||
// Standard Error: 2_037
|
||||
.saturating_add(Weight::from_ref_time(3_510_555 as u64).saturating_mul(c as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_742 nanoseconds.
|
||||
Weight::from_ref_time(16_087_635)
|
||||
// Standard Error: 2_411
|
||||
.saturating_add(Weight::from_ref_time(3_665_506).saturating_mul(c.into()))
|
||||
}
|
||||
fn as_derivative() -> Weight {
|
||||
// Minimum execution time: 6_799 nanoseconds.
|
||||
Weight::from_ref_time(6_976_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_802 nanoseconds.
|
||||
Weight::from_ref_time(5_269_000)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 14_630 nanoseconds.
|
||||
Weight::from_ref_time(24_580_656 as u64)
|
||||
// Standard Error: 2_202
|
||||
.saturating_add(Weight::from_ref_time(3_584_516 as u64).saturating_mul(c as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_100 nanoseconds.
|
||||
Weight::from_ref_time(14_090_381)
|
||||
// Standard Error: 1_917
|
||||
.saturating_add(Weight::from_ref_time(3_744_891).saturating_mul(c.into()))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
// Minimum execution time: 16_597 nanoseconds.
|
||||
Weight::from_ref_time(16_950_000 as u64)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_840 nanoseconds.
|
||||
Weight::from_ref_time(9_280_000)
|
||||
}
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn force_batch(c: u32, ) -> Weight {
|
||||
// Minimum execution time: 13_885 nanoseconds.
|
||||
Weight::from_ref_time(20_147_978 as u64)
|
||||
// Standard Error: 2_232
|
||||
.saturating_add(Weight::from_ref_time(3_516_969 as u64).saturating_mul(c as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_245 nanoseconds.
|
||||
Weight::from_ref_time(14_292_923)
|
||||
// Standard Error: 1_803
|
||||
.saturating_add(Weight::from_ref_time(3_645_950).saturating_mul(c.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_vesting
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-25, 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
|
||||
|
||||
@@ -60,244 +61,336 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_vesting using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 45_113 nanoseconds.
|
||||
Weight::from_ref_time(44_114_539 as u64)
|
||||
// Standard Error: 958
|
||||
.saturating_add(Weight::from_ref_time(56_239 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_704
|
||||
.saturating_add(Weight::from_ref_time(64_926 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `444 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `7306`
|
||||
// Minimum execution time: 28_062 nanoseconds.
|
||||
Weight::from_parts(26_857_563, 7306)
|
||||
// Standard Error: 623
|
||||
.saturating_add(Weight::from_ref_time(55_988).saturating_mul(l.into()))
|
||||
// Standard Error: 1_109
|
||||
.saturating_add(Weight::from_ref_time(59_714).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_918 nanoseconds.
|
||||
Weight::from_ref_time(43_452_573 as u64)
|
||||
// Standard Error: 984
|
||||
.saturating_add(Weight::from_ref_time(50_162 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_752
|
||||
.saturating_add(Weight::from_ref_time(42_080 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `444 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `7306`
|
||||
// Minimum execution time: 27_027 nanoseconds.
|
||||
Weight::from_parts(26_509_364, 7306)
|
||||
// Standard Error: 815
|
||||
.saturating_add(Weight::from_ref_time(54_711).saturating_mul(l.into()))
|
||||
// Standard Error: 1_451
|
||||
.saturating_add(Weight::from_ref_time(32_792).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_603 nanoseconds.
|
||||
Weight::from_ref_time(42_696_097 as u64)
|
||||
// Standard Error: 996
|
||||
.saturating_add(Weight::from_ref_time(65_316 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_772
|
||||
.saturating_add(Weight::from_ref_time(65_862 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `579 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 29_554 nanoseconds.
|
||||
Weight::from_parts(28_269_203, 9909)
|
||||
// Standard Error: 623
|
||||
.saturating_add(Weight::from_ref_time(59_058).saturating_mul(l.into()))
|
||||
// Standard Error: 1_108
|
||||
.saturating_add(Weight::from_ref_time(63_429).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_099 nanoseconds.
|
||||
Weight::from_ref_time(42_937_914 as u64)
|
||||
// Standard Error: 884
|
||||
.saturating_add(Weight::from_ref_time(52_079 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_573
|
||||
.saturating_add(Weight::from_ref_time(36_274 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `579 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 28_546 nanoseconds.
|
||||
Weight::from_parts(28_299_251, 9909)
|
||||
// Standard Error: 786
|
||||
.saturating_add(Weight::from_ref_time(53_401).saturating_mul(l.into()))
|
||||
// Standard Error: 1_399
|
||||
.saturating_add(Weight::from_ref_time(29_713).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 59_023 nanoseconds.
|
||||
Weight::from_ref_time(59_606_862 as u64)
|
||||
// Standard Error: 2_078
|
||||
.saturating_add(Weight::from_ref_time(55_335 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 3_698
|
||||
.saturating_add(Weight::from_ref_time(26_743 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `650 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 43_436 nanoseconds.
|
||||
Weight::from_parts(44_885_707, 9909)
|
||||
// Standard Error: 1_516
|
||||
.saturating_add(Weight::from_ref_time(59_066).saturating_mul(l.into()))
|
||||
// Standard Error: 2_698
|
||||
.saturating_add(Weight::from_ref_time(32_053).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 58_249 nanoseconds.
|
||||
Weight::from_ref_time(59_025_976 as u64)
|
||||
// Standard Error: 2_078
|
||||
.saturating_add(Weight::from_ref_time(55_736 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 3_697
|
||||
.saturating_add(Weight::from_ref_time(24_903 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `785 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `12512`
|
||||
// Minimum execution time: 45_805 nanoseconds.
|
||||
Weight::from_parts(46_869_490, 12512)
|
||||
// Standard Error: 1_445
|
||||
.saturating_add(Weight::from_ref_time(52_654).saturating_mul(l.into()))
|
||||
// Standard Error: 2_571
|
||||
.saturating_add(Weight::from_ref_time(34_202).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 45_279 nanoseconds.
|
||||
Weight::from_ref_time(44_197_440 as u64)
|
||||
// Standard Error: 946
|
||||
.saturating_add(Weight::from_ref_time(62_308 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_747
|
||||
.saturating_add(Weight::from_ref_time(64_473 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `577 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 30_460 nanoseconds.
|
||||
Weight::from_parts(29_407_637, 9909)
|
||||
// Standard Error: 794
|
||||
.saturating_add(Weight::from_ref_time(63_757).saturating_mul(l.into()))
|
||||
// Standard Error: 1_466
|
||||
.saturating_add(Weight::from_ref_time(56_032).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_925 nanoseconds.
|
||||
Weight::from_ref_time(44_219_676 as u64)
|
||||
// Standard Error: 889
|
||||
.saturating_add(Weight::from_ref_time(60_311 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_641
|
||||
.saturating_add(Weight::from_ref_time(63_095 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `577 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 30_413 nanoseconds.
|
||||
Weight::from_parts(29_350_467, 9909)
|
||||
// Standard Error: 724
|
||||
.saturating_add(Weight::from_ref_time(65_366).saturating_mul(l.into()))
|
||||
// Standard Error: 1_337
|
||||
.saturating_add(Weight::from_ref_time(53_799).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 45_113 nanoseconds.
|
||||
Weight::from_ref_time(44_114_539 as u64)
|
||||
// Standard Error: 958
|
||||
.saturating_add(Weight::from_ref_time(56_239 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_704
|
||||
.saturating_add(Weight::from_ref_time(64_926 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `444 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `7306`
|
||||
// Minimum execution time: 28_062 nanoseconds.
|
||||
Weight::from_parts(26_857_563, 7306)
|
||||
// Standard Error: 623
|
||||
.saturating_add(Weight::from_ref_time(55_988).saturating_mul(l.into()))
|
||||
// Standard Error: 1_109
|
||||
.saturating_add(Weight::from_ref_time(59_714).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_918 nanoseconds.
|
||||
Weight::from_ref_time(43_452_573 as u64)
|
||||
// Standard Error: 984
|
||||
.saturating_add(Weight::from_ref_time(50_162 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_752
|
||||
.saturating_add(Weight::from_ref_time(42_080 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `444 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `7306`
|
||||
// Minimum execution time: 27_027 nanoseconds.
|
||||
Weight::from_parts(26_509_364, 7306)
|
||||
// Standard Error: 815
|
||||
.saturating_add(Weight::from_ref_time(54_711).saturating_mul(l.into()))
|
||||
// Standard Error: 1_451
|
||||
.saturating_add(Weight::from_ref_time(32_792).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_603 nanoseconds.
|
||||
Weight::from_ref_time(42_696_097 as u64)
|
||||
// Standard Error: 996
|
||||
.saturating_add(Weight::from_ref_time(65_316 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_772
|
||||
.saturating_add(Weight::from_ref_time(65_862 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `579 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 29_554 nanoseconds.
|
||||
Weight::from_parts(28_269_203, 9909)
|
||||
// Standard Error: 623
|
||||
.saturating_add(Weight::from_ref_time(59_058).saturating_mul(l.into()))
|
||||
// Standard Error: 1_108
|
||||
.saturating_add(Weight::from_ref_time(63_429).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[1, 28]`.
|
||||
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 43_099 nanoseconds.
|
||||
Weight::from_ref_time(42_937_914 as u64)
|
||||
// Standard Error: 884
|
||||
.saturating_add(Weight::from_ref_time(52_079 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_573
|
||||
.saturating_add(Weight::from_ref_time(36_274 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `579 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 28_546 nanoseconds.
|
||||
Weight::from_parts(28_299_251, 9909)
|
||||
// Standard Error: 786
|
||||
.saturating_add(Weight::from_ref_time(53_401).saturating_mul(l.into()))
|
||||
// Standard Error: 1_399
|
||||
.saturating_add(Weight::from_ref_time(29_713).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 59_023 nanoseconds.
|
||||
Weight::from_ref_time(59_606_862 as u64)
|
||||
// Standard Error: 2_078
|
||||
.saturating_add(Weight::from_ref_time(55_335 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 3_698
|
||||
.saturating_add(Weight::from_ref_time(26_743 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `650 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 43_436 nanoseconds.
|
||||
Weight::from_parts(44_885_707, 9909)
|
||||
// Standard Error: 1_516
|
||||
.saturating_add(Weight::from_ref_time(59_066).saturating_mul(l.into()))
|
||||
// Standard Error: 2_698
|
||||
.saturating_add(Weight::from_ref_time(32_053).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:2 w:2)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[0, 27]`.
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 58_249 nanoseconds.
|
||||
Weight::from_ref_time(59_025_976 as u64)
|
||||
// Standard Error: 2_078
|
||||
.saturating_add(Weight::from_ref_time(55_736 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 3_697
|
||||
.saturating_add(Weight::from_ref_time(24_903 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `785 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `12512`
|
||||
// Minimum execution time: 45_805 nanoseconds.
|
||||
Weight::from_parts(46_869_490, 12512)
|
||||
// Standard Error: 1_445
|
||||
.saturating_add(Weight::from_ref_time(52_654).saturating_mul(l.into()))
|
||||
// Standard Error: 2_571
|
||||
.saturating_add(Weight::from_ref_time(34_202).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 45_279 nanoseconds.
|
||||
Weight::from_ref_time(44_197_440 as u64)
|
||||
// Standard Error: 946
|
||||
.saturating_add(Weight::from_ref_time(62_308 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_747
|
||||
.saturating_add(Weight::from_ref_time(64_473 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `577 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 30_460 nanoseconds.
|
||||
Weight::from_parts(29_407_637, 9909)
|
||||
// Standard Error: 794
|
||||
.saturating_add(Weight::from_ref_time(63_757).saturating_mul(l.into()))
|
||||
// Standard Error: 1_466
|
||||
.saturating_add(Weight::from_ref_time(56_032).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: Vesting Vesting (r:1 w:1)
|
||||
/// Proof: Vesting Vesting (max_values: None, max_size: Some(1057), added: 3532, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// The range of component `l` is `[0, 49]`.
|
||||
/// The range of component `s` is `[2, 28]`.
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_925 nanoseconds.
|
||||
Weight::from_ref_time(44_219_676 as u64)
|
||||
// Standard Error: 889
|
||||
.saturating_add(Weight::from_ref_time(60_311 as u64).saturating_mul(l as u64))
|
||||
// Standard Error: 1_641
|
||||
.saturating_add(Weight::from_ref_time(63_095 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `577 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `9909`
|
||||
// Minimum execution time: 30_413 nanoseconds.
|
||||
Weight::from_parts(29_350_467, 9909)
|
||||
// Standard Error: 724
|
||||
.saturating_add(Weight::from_ref_time(65_366).saturating_mul(l.into()))
|
||||
// Standard Error: 1_337
|
||||
.saturating_add(Weight::from_ref_time(53_799).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,6 +62,10 @@ benchmarks! {
|
||||
// We benchmark with the maximum possible size for a call.
|
||||
// If the resulting weight is too big, maybe it worth having a weight which depends
|
||||
// on the size of the call, with a new witness in parameter.
|
||||
#[pov_mode = MaxEncodedLen {
|
||||
// Use measured PoV size for the Preimages since we pass in a length witness.
|
||||
Preimage::PreimageFor: Measured
|
||||
}]
|
||||
dispatch_whitelisted_call {
|
||||
// NOTE: we remove `10` because we need some bytes to encode the variants and vec length
|
||||
let n in 1 .. T::Preimages::MAX_LENGTH as u32 - 10;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,25 +18,25 @@
|
||||
//! Autogenerated weights for pallet_whitelist
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-12-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! DATE: 2023-01-25, 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:
|
||||
// /home/benchbot/cargo_target_dir/production/substrate
|
||||
// ./target/production/substrate
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_whitelist
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_whitelist
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/whitelist/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -57,86 +57,130 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_whitelist using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn whitelist_call() -> Weight {
|
||||
// Minimum execution time: 26_261 nanoseconds.
|
||||
Weight::from_ref_time(26_842_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `217`
|
||||
// Estimated: `5081`
|
||||
// Minimum execution time: 18_618 nanoseconds.
|
||||
Weight::from_parts(19_133_000, 5081)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn remove_whitelisted_call() -> Weight {
|
||||
// Minimum execution time: 25_092 nanoseconds.
|
||||
Weight::from_ref_time(25_903_000)
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Estimated: `5081`
|
||||
// Minimum execution time: 16_685 nanoseconds.
|
||||
Weight::from_parts(17_325_000, 5081)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 4194294]`.
|
||||
fn dispatch_whitelisted_call(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_685 nanoseconds.
|
||||
Weight::from_ref_time(37_167_000)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `454 + n * (1 ±0)`
|
||||
// Estimated: `8007 + n * (1 ±0)`
|
||||
// Minimum execution time: 27_539 nanoseconds.
|
||||
Weight::from_parts(27_950_000, 8007)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_144).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
.saturating_add(Weight::from_ref_time(1_134).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(n.into()))
|
||||
}
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 10000]`.
|
||||
fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 29_187 nanoseconds.
|
||||
Weight::from_ref_time(29_896_714)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(1_505).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Estimated: `5081`
|
||||
// Minimum execution time: 20_581 nanoseconds.
|
||||
Weight::from_parts(21_762_318, 5081)
|
||||
// Standard Error: 4
|
||||
.saturating_add(Weight::from_ref_time(1_480).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn whitelist_call() -> Weight {
|
||||
// Minimum execution time: 26_261 nanoseconds.
|
||||
Weight::from_ref_time(26_842_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `217`
|
||||
// Estimated: `5081`
|
||||
// Minimum execution time: 18_618 nanoseconds.
|
||||
Weight::from_parts(19_133_000, 5081)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
fn remove_whitelisted_call() -> Weight {
|
||||
// Minimum execution time: 25_092 nanoseconds.
|
||||
Weight::from_ref_time(25_903_000)
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Estimated: `5081`
|
||||
// Minimum execution time: 16_685 nanoseconds.
|
||||
Weight::from_parts(17_325_000, 5081)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 4194294]`.
|
||||
fn dispatch_whitelisted_call(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 36_685 nanoseconds.
|
||||
Weight::from_ref_time(37_167_000)
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `454 + n * (1 ±0)`
|
||||
// Estimated: `8007 + n * (1 ±0)`
|
||||
// Minimum execution time: 27_539 nanoseconds.
|
||||
Weight::from_parts(27_950_000, 8007)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_ref_time(1_144).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
.saturating_add(Weight::from_ref_time(1_134).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_proof_size(1).saturating_mul(n.into()))
|
||||
}
|
||||
// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Storage: Whitelist WhitelistedCall (r:1 w:1)
|
||||
/// Proof: Whitelist WhitelistedCall (max_values: None, max_size: Some(40), added: 2515, mode: MaxEncodedLen)
|
||||
/// Storage: Preimage StatusFor (r:1 w:1)
|
||||
/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)
|
||||
/// The range of component `n` is `[1, 10000]`.
|
||||
fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight {
|
||||
// Minimum execution time: 29_187 nanoseconds.
|
||||
Weight::from_ref_time(29_896_714)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_ref_time(1_505).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(2))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Estimated: `5081`
|
||||
// Minimum execution time: 20_581 nanoseconds.
|
||||
Weight::from_parts(21_762_318, 5081)
|
||||
// Standard Error: 4
|
||||
.saturating_add(Weight::from_ref_time(1_480).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user