mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 11:01:08 +00:00
Update benchmarking macros (#3934)
Current benchmarking macro returns a closure with the captured
benchmarked code.
This can cause issues when the benchmarked code has complex lifetime
requirements.
This PR updates the existing macro by injecting the recording parameter
and invoking the start / stop method around the benchmarked block
instead of returning a closure
One other added benefit is that you can write this kind of code now as
well:
```rust
let v;
#[block]
{ v = func.call(); }
dbg!(v); // or assert something on v
```
[Weights compare
link](https://weights.tasty.limo/compare?unit=weight&ignore_errors=true&threshold=10&method=asymptotic&repo=polkadot-sdk&old=pg/fix-weights&new=pg/bench_update&path_pattern=substrate/frame/**/src/weights.rs,polkadot/runtime/*/src/weights/**/*.rs,polkadot/bridges/modules/*/src/weights.rs,cumulus/**/weights/*.rs,cumulus/**/weights/xcm/*.rs,cumulus/**/src/weights.rs)
---------
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
This commit is contained in:
@@ -107,5 +107,5 @@ frame_support::parameter_types! {
|
||||
|
||||
/// Transaction fee that is paid at the Rococo BridgeHub for delivering single outbound message confirmation.
|
||||
/// (initially was calculated by test `BridgeHubRococo::can_calculate_fee_for_complex_message_confirmation_transaction` + `33%`)
|
||||
pub const BridgeHubRococoBaseConfirmationFeeInRocs: u128 = 5_380_829_647;
|
||||
pub const BridgeHubRococoBaseConfirmationFeeInRocs: u128 = 5_380_901_781;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
title: Update benchmarking macros
|
||||
|
||||
doc:
|
||||
- audience: Runtime Dev
|
||||
description: |
|
||||
Current benchmarking macro return a closure with the captured benchmarked code.
|
||||
This could cause compilation issues when the benchmarked code has complex lifetime requirements.
|
||||
This PR updates the existing macro by injecting the recoding parameter and invoking the start / stop method around the benchmarked block instead of returning a closure
|
||||
|
||||
crates: []
|
||||
|
||||
Generated
+520
-513
File diff suppressed because it is too large
Load Diff
+78
-74
@@ -17,24 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_asset_conversion`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-10-30, STEPS: `5`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/debug/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=5
|
||||
// --repeat=2
|
||||
// --pallet=pallet-asset-conversion
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_asset_conversion
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./substrate/frame/asset-conversion/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -59,11 +63,9 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:1)
|
||||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:2 w:2)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Account` (r:2 w:2)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Asset` (r:2 w:2)
|
||||
/// Storage: `Assets::Asset` (r:2 w:0)
|
||||
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `AssetConversion::NextPoolAssetId` (r:1 w:1)
|
||||
/// Proof: `AssetConversion::NextPoolAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
@@ -73,11 +75,32 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn create_pool() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1081`
|
||||
// Measured: `910`
|
||||
// Estimated: `6360`
|
||||
// Minimum execution time: 1_576_000_000 picoseconds.
|
||||
Weight::from_parts(1_668_000_000, 6360)
|
||||
.saturating_add(T::DbWeight::get().reads(10_u64))
|
||||
// Minimum execution time: 86_709_000 picoseconds.
|
||||
Weight::from_parts(88_841_000, 6360)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:0)
|
||||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Asset` (r:2 w:2)
|
||||
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Account` (r:4 w:4)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Asset` (r:1 w:1)
|
||||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Account` (r:2 w:2)
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn add_liquidity() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1507`
|
||||
// Estimated: `11426`
|
||||
// Minimum execution time: 148_672_000 picoseconds.
|
||||
Weight::from_parts(151_824_000, 11426)
|
||||
.saturating_add(T::DbWeight::get().reads(11_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(10_u64))
|
||||
}
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:0)
|
||||
@@ -88,33 +111,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Asset` (r:1 w:1)
|
||||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Account` (r:2 w:2)
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn add_liquidity() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1761`
|
||||
// Estimated: `11426`
|
||||
// Minimum execution time: 1_636_000_000 picoseconds.
|
||||
Weight::from_parts(1_894_000_000, 11426)
|
||||
.saturating_add(T::DbWeight::get().reads(10_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(9_u64))
|
||||
}
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:0)
|
||||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Asset` (r:2 w:2)
|
||||
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Account` (r:4 w:4)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Asset` (r:1 w:1)
|
||||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Account` (r:1 w:1)
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn remove_liquidity() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1750`
|
||||
// Measured: `1650`
|
||||
// Estimated: `11426`
|
||||
// Minimum execution time: 1_507_000_000 picoseconds.
|
||||
Weight::from_parts(1_524_000_000, 11426)
|
||||
// Minimum execution time: 130_743_000 picoseconds.
|
||||
Weight::from_parts(132_793_000, 11426)
|
||||
.saturating_add(T::DbWeight::get().reads(9_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8_u64))
|
||||
}
|
||||
@@ -125,12 +129,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `n` is `[2, 4]`.
|
||||
fn swap_exact_tokens_for_tokens(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (522 ±0)`
|
||||
// Measured: `89 + n * (419 ±0)`
|
||||
// Estimated: `990 + n * (5218 ±0)`
|
||||
// Minimum execution time: 937_000_000 picoseconds.
|
||||
Weight::from_parts(941_000_000, 990)
|
||||
// Standard Error: 40_863_477
|
||||
.saturating_add(Weight::from_parts(205_862_068, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 81_173_000 picoseconds.
|
||||
Weight::from_parts(82_574_000, 990)
|
||||
// Standard Error: 335_929
|
||||
.saturating_add(Weight::from_parts(11_607_291, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
|
||||
@@ -142,12 +146,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `n` is `[2, 4]`.
|
||||
fn swap_tokens_for_exact_tokens(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (522 ±0)`
|
||||
// Measured: `89 + n * (419 ±0)`
|
||||
// Estimated: `990 + n * (5218 ±0)`
|
||||
// Minimum execution time: 935_000_000 picoseconds.
|
||||
Weight::from_parts(947_000_000, 990)
|
||||
// Standard Error: 46_904_620
|
||||
.saturating_add(Weight::from_parts(218_275_862, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 80_562_000 picoseconds.
|
||||
Weight::from_parts(82_501_000, 990)
|
||||
// Standard Error: 329_460
|
||||
.saturating_add(Weight::from_parts(11_295_339, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
|
||||
@@ -158,11 +162,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:1)
|
||||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:2 w:2)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Account` (r:2 w:2)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Asset` (r:2 w:2)
|
||||
/// Storage: `Assets::Asset` (r:2 w:0)
|
||||
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `AssetConversion::NextPoolAssetId` (r:1 w:1)
|
||||
/// Proof: `AssetConversion::NextPoolAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
@@ -172,12 +174,12 @@ impl WeightInfo for () {
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn create_pool() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1081`
|
||||
// Measured: `910`
|
||||
// Estimated: `6360`
|
||||
// Minimum execution time: 1_576_000_000 picoseconds.
|
||||
Weight::from_parts(1_668_000_000, 6360)
|
||||
.saturating_add(RocksDbWeight::get().reads(10_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(10_u64))
|
||||
// Minimum execution time: 86_709_000 picoseconds.
|
||||
Weight::from_parts(88_841_000, 6360)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:0)
|
||||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
@@ -185,18 +187,20 @@ impl WeightInfo for () {
|
||||
/// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Assets::Account` (r:4 w:4)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Asset` (r:1 w:1)
|
||||
/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
|
||||
/// Storage: `PoolAssets::Account` (r:2 w:2)
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn add_liquidity() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1761`
|
||||
// Measured: `1507`
|
||||
// Estimated: `11426`
|
||||
// Minimum execution time: 1_636_000_000 picoseconds.
|
||||
Weight::from_parts(1_894_000_000, 11426)
|
||||
.saturating_add(RocksDbWeight::get().reads(10_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(9_u64))
|
||||
// Minimum execution time: 148_672_000 picoseconds.
|
||||
Weight::from_parts(151_824_000, 11426)
|
||||
.saturating_add(RocksDbWeight::get().reads(11_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(10_u64))
|
||||
}
|
||||
/// Storage: `AssetConversion::Pools` (r:1 w:0)
|
||||
/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
@@ -210,10 +214,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn remove_liquidity() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1750`
|
||||
// Measured: `1650`
|
||||
// Estimated: `11426`
|
||||
// Minimum execution time: 1_507_000_000 picoseconds.
|
||||
Weight::from_parts(1_524_000_000, 11426)
|
||||
// Minimum execution time: 130_743_000 picoseconds.
|
||||
Weight::from_parts(132_793_000, 11426)
|
||||
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8_u64))
|
||||
}
|
||||
@@ -224,12 +228,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `n` is `[2, 4]`.
|
||||
fn swap_exact_tokens_for_tokens(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (522 ±0)`
|
||||
// Measured: `89 + n * (419 ±0)`
|
||||
// Estimated: `990 + n * (5218 ±0)`
|
||||
// Minimum execution time: 937_000_000 picoseconds.
|
||||
Weight::from_parts(941_000_000, 990)
|
||||
// Standard Error: 40_863_477
|
||||
.saturating_add(Weight::from_parts(205_862_068, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 81_173_000 picoseconds.
|
||||
Weight::from_parts(82_574_000, 990)
|
||||
// Standard Error: 335_929
|
||||
.saturating_add(Weight::from_parts(11_607_291, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
|
||||
@@ -241,12 +245,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `n` is `[2, 4]`.
|
||||
fn swap_tokens_for_exact_tokens(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (522 ±0)`
|
||||
// Measured: `89 + n * (419 ±0)`
|
||||
// Estimated: `990 + n * (5218 ±0)`
|
||||
// Minimum execution time: 935_000_000 picoseconds.
|
||||
Weight::from_parts(947_000_000, 990)
|
||||
// Standard Error: 46_904_620
|
||||
.saturating_add(Weight::from_parts(218_275_862, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 80_562_000 picoseconds.
|
||||
Weight::from_parts(82_501_000, 990)
|
||||
// Standard Error: 329_460
|
||||
.saturating_add(Weight::from_parts(11_295_339, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 5218).saturating_mul(n.into()))
|
||||
|
||||
+36
-37
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_asset_rate
|
||||
//! Autogenerated weights for `pallet_asset_rate`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/asset-rate/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/asset-rate/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,83 +49,83 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_asset_rate.
|
||||
/// Weight functions needed for `pallet_asset_rate`.
|
||||
pub trait WeightInfo {
|
||||
fn create() -> Weight;
|
||||
fn update() -> Weight;
|
||||
fn remove() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_asset_rate using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_asset_rate` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn create() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 11_700_000 picoseconds.
|
||||
Weight::from_parts(12_158_000, 3501)
|
||||
// Minimum execution time: 9_816_000 picoseconds.
|
||||
Weight::from_parts(10_076_000, 3501)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn update() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `137`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 12_119_000 picoseconds.
|
||||
Weight::from_parts(12_548_000, 3501)
|
||||
// Minimum execution time: 10_164_000 picoseconds.
|
||||
Weight::from_parts(10_598_000, 3501)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn remove() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `137`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 12_541_000 picoseconds.
|
||||
Weight::from_parts(12_956_000, 3501)
|
||||
// Minimum execution time: 10_837_000 picoseconds.
|
||||
Weight::from_parts(11_050_000, 3501)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn create() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 11_700_000 picoseconds.
|
||||
Weight::from_parts(12_158_000, 3501)
|
||||
// Minimum execution time: 9_816_000 picoseconds.
|
||||
Weight::from_parts(10_076_000, 3501)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn update() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `137`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 12_119_000 picoseconds.
|
||||
Weight::from_parts(12_548_000, 3501)
|
||||
// Minimum execution time: 10_164_000 picoseconds.
|
||||
Weight::from_parts(10_598_000, 3501)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:1)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:1)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn remove() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `137`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 12_541_000 picoseconds.
|
||||
Weight::from_parts(12_956_000, 3501)
|
||||
// Minimum execution time: 10_837_000 picoseconds.
|
||||
Weight::from_parts(11_050_000, 3501)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+428
-417
File diff suppressed because it is too large
Load Diff
Generated
+82
-83
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_bags_list
|
||||
//! Autogenerated weights for `pallet_bags_list`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/bags-list/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/bags-list/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,123 +49,123 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_bags_list.
|
||||
/// Weight functions needed for `pallet_bags_list`.
|
||||
pub trait WeightInfo {
|
||||
fn rebag_non_terminal() -> Weight;
|
||||
fn rebag_terminal() -> Weight;
|
||||
fn put_in_front_of() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_bags_list using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1724`
|
||||
// Measured: `1719`
|
||||
// Estimated: `11506`
|
||||
// Minimum execution time: 62_137_000 picoseconds.
|
||||
Weight::from_parts(64_050_000, 11506)
|
||||
// Minimum execution time: 60_062_000 picoseconds.
|
||||
Weight::from_parts(62_341_000, 11506)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1618`
|
||||
// Measured: `1613`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 60_880_000 picoseconds.
|
||||
Weight::from_parts(62_078_000, 8877)
|
||||
// Minimum execution time: 57_585_000 picoseconds.
|
||||
Weight::from_parts(59_480_000, 8877)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1930`
|
||||
// Measured: `1925`
|
||||
// Estimated: `11506`
|
||||
// Minimum execution time: 68_911_000 picoseconds.
|
||||
Weight::from_parts(70_592_000, 11506)
|
||||
// Minimum execution time: 69_552_000 picoseconds.
|
||||
Weight::from_parts(71_211_000, 11506)
|
||||
.saturating_add(T::DbWeight::get().reads(10_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1724`
|
||||
// Measured: `1719`
|
||||
// Estimated: `11506`
|
||||
// Minimum execution time: 62_137_000 picoseconds.
|
||||
Weight::from_parts(64_050_000, 11506)
|
||||
// Minimum execution time: 60_062_000 picoseconds.
|
||||
Weight::from_parts(62_341_000, 11506)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1618`
|
||||
// Measured: `1613`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 60_880_000 picoseconds.
|
||||
Weight::from_parts(62_078_000, 8877)
|
||||
// Minimum execution time: 57_585_000 picoseconds.
|
||||
Weight::from_parts(59_480_000, 8877)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1930`
|
||||
// Measured: `1925`
|
||||
// Estimated: `11506`
|
||||
// Minimum execution time: 68_911_000 picoseconds.
|
||||
Weight::from_parts(70_592_000, 11506)
|
||||
// Minimum execution time: 69_552_000 picoseconds.
|
||||
Weight::from_parts(71_211_000, 11506)
|
||||
.saturating_add(RocksDbWeight::get().reads(10_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
|
||||
Generated
+50
-48
@@ -17,26 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_balances`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_balances
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_balances
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/balances/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -69,8 +71,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 46_329_000 picoseconds.
|
||||
Weight::from_parts(47_297_000, 3593)
|
||||
// Minimum execution time: 50_062_000 picoseconds.
|
||||
Weight::from_parts(51_214_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -80,8 +82,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 36_187_000 picoseconds.
|
||||
Weight::from_parts(36_900_000, 3593)
|
||||
// Minimum execution time: 39_700_000 picoseconds.
|
||||
Weight::from_parts(40_754_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -91,8 +93,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 13_498_000 picoseconds.
|
||||
Weight::from_parts(14_143_000, 3593)
|
||||
// Minimum execution time: 14_939_000 picoseconds.
|
||||
Weight::from_parts(15_302_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -102,8 +104,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 18_756_000 picoseconds.
|
||||
Weight::from_parts(19_553_000, 3593)
|
||||
// Minimum execution time: 20_516_000 picoseconds.
|
||||
Weight::from_parts(21_179_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -113,8 +115,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `103`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 47_826_000 picoseconds.
|
||||
Weight::from_parts(48_834_000, 6196)
|
||||
// Minimum execution time: 51_281_000 picoseconds.
|
||||
Weight::from_parts(52_145_000, 6196)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -124,8 +126,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 44_621_000 picoseconds.
|
||||
Weight::from_parts(45_151_000, 3593)
|
||||
// Minimum execution time: 48_988_000 picoseconds.
|
||||
Weight::from_parts(49_935_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -135,8 +137,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 16_194_000 picoseconds.
|
||||
Weight::from_parts(16_945_000, 3593)
|
||||
// Minimum execution time: 17_594_000 picoseconds.
|
||||
Weight::from_parts(18_232_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -147,10 +149,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + u * (135 ±0)`
|
||||
// Estimated: `990 + u * (2603 ±0)`
|
||||
// Minimum execution time: 15_782_000 picoseconds.
|
||||
Weight::from_parts(16_118_000, 990)
|
||||
// Standard Error: 10_499
|
||||
.saturating_add(Weight::from_parts(13_327_660, 0).saturating_mul(u.into()))
|
||||
// Minimum execution time: 16_701_000 picoseconds.
|
||||
Weight::from_parts(16_897_000, 990)
|
||||
// Standard Error: 11_684
|
||||
.saturating_add(Weight::from_parts(14_375_201, 0).saturating_mul(u.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||
@@ -159,8 +161,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_157_000 picoseconds.
|
||||
Weight::from_parts(6_507_000, 0)
|
||||
// Minimum execution time: 6_692_000 picoseconds.
|
||||
Weight::from_parts(7_140_000, 0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,8 +174,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 46_329_000 picoseconds.
|
||||
Weight::from_parts(47_297_000, 3593)
|
||||
// Minimum execution time: 50_062_000 picoseconds.
|
||||
Weight::from_parts(51_214_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -183,8 +185,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 36_187_000 picoseconds.
|
||||
Weight::from_parts(36_900_000, 3593)
|
||||
// Minimum execution time: 39_700_000 picoseconds.
|
||||
Weight::from_parts(40_754_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -194,8 +196,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 13_498_000 picoseconds.
|
||||
Weight::from_parts(14_143_000, 3593)
|
||||
// Minimum execution time: 14_939_000 picoseconds.
|
||||
Weight::from_parts(15_302_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -205,8 +207,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 18_756_000 picoseconds.
|
||||
Weight::from_parts(19_553_000, 3593)
|
||||
// Minimum execution time: 20_516_000 picoseconds.
|
||||
Weight::from_parts(21_179_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -216,8 +218,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `103`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 47_826_000 picoseconds.
|
||||
Weight::from_parts(48_834_000, 6196)
|
||||
// Minimum execution time: 51_281_000 picoseconds.
|
||||
Weight::from_parts(52_145_000, 6196)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -227,8 +229,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 44_621_000 picoseconds.
|
||||
Weight::from_parts(45_151_000, 3593)
|
||||
// Minimum execution time: 48_988_000 picoseconds.
|
||||
Weight::from_parts(49_935_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -238,8 +240,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 16_194_000 picoseconds.
|
||||
Weight::from_parts(16_945_000, 3593)
|
||||
// Minimum execution time: 17_594_000 picoseconds.
|
||||
Weight::from_parts(18_232_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -250,10 +252,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + u * (135 ±0)`
|
||||
// Estimated: `990 + u * (2603 ±0)`
|
||||
// Minimum execution time: 15_782_000 picoseconds.
|
||||
Weight::from_parts(16_118_000, 990)
|
||||
// Standard Error: 10_499
|
||||
.saturating_add(Weight::from_parts(13_327_660, 0).saturating_mul(u.into()))
|
||||
// Minimum execution time: 16_701_000 picoseconds.
|
||||
Weight::from_parts(16_897_000, 990)
|
||||
// Standard Error: 11_684
|
||||
.saturating_add(Weight::from_parts(14_375_201, 0).saturating_mul(u.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||
@@ -262,7 +264,7 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_157_000 picoseconds.
|
||||
Weight::from_parts(6_507_000, 0)
|
||||
// Minimum execution time: 6_692_000 picoseconds.
|
||||
Weight::from_parts(7_140_000, 0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -262,15 +262,11 @@ mod benchmarks {
|
||||
let components = <SelectedBenchmark as BenchmarkingSetup<Test>>::components(&selected);
|
||||
assert_eq!(components, vec![(BenchmarkParameter::b, 1, 1000)]);
|
||||
|
||||
let closure = <SelectedBenchmark as BenchmarkingSetup<Test>>::instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
true,
|
||||
)
|
||||
.expect("failed to create closure");
|
||||
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_ok!(closure());
|
||||
assert_ok!(<SelectedBenchmark as BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -281,15 +277,11 @@ mod benchmarks {
|
||||
let components = <SelectedBenchmark as BenchmarkingSetup<Test>>::components(&selected);
|
||||
assert_eq!(components, vec![(BenchmarkParameter::b, 1, 1000)]);
|
||||
|
||||
let closure = <SelectedBenchmark as BenchmarkingSetup<Test>>::instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
true,
|
||||
)
|
||||
.expect("failed to create closure");
|
||||
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_ok!(closure());
|
||||
assert_ok!(<SelectedBenchmark as BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -300,14 +292,12 @@ mod benchmarks {
|
||||
let components = <SelectedBenchmark as BenchmarkingSetup<Test>>::components(&selected);
|
||||
assert_eq!(components, vec![(BenchmarkParameter::x, 1, 10000)]);
|
||||
|
||||
let closure = <SelectedBenchmark as BenchmarkingSetup<Test>>::instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::x, 1)],
|
||||
true,
|
||||
)
|
||||
.expect("failed to create closure");
|
||||
|
||||
assert_ok!(closure());
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_ok!(<SelectedBenchmark as BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::x, 1)],
|
||||
));
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -315,29 +305,24 @@ mod benchmarks {
|
||||
// Check postcondition for benchmark `set_value` is valid.
|
||||
let selected = SelectedBenchmark::set_value;
|
||||
|
||||
let closure = <SelectedBenchmark as BenchmarkingSetup<Test>>::instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
true,
|
||||
)
|
||||
.expect("failed to create closure");
|
||||
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_ok!(closure());
|
||||
assert_ok!(<SelectedBenchmark as BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
));
|
||||
});
|
||||
|
||||
// Check postcondition for benchmark `bad_verify` is invalid.
|
||||
let selected = SelectedBenchmark::bad_verify;
|
||||
|
||||
let closure = <SelectedBenchmark as BenchmarkingSetup<Test>>::instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::x, 10000)],
|
||||
true,
|
||||
)
|
||||
.expect("failed to create closure");
|
||||
|
||||
new_test_ext().execute_with(|| {
|
||||
assert_err!(closure(), "You forgot to sort!");
|
||||
assert_err!(
|
||||
<SelectedBenchmark as BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::x, 10000)],
|
||||
),
|
||||
"You forgot to sort!"
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -345,15 +330,11 @@ mod benchmarks {
|
||||
fn benchmark_override_works() {
|
||||
let selected = SelectedBenchmark::override_benchmark;
|
||||
|
||||
let closure = <SelectedBenchmark as BenchmarkingSetup<Test>>::instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
true,
|
||||
)
|
||||
.expect("failed to create closure");
|
||||
|
||||
new_test_ext().execute_with(|| {
|
||||
let result = closure();
|
||||
let result = <SelectedBenchmark as BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected,
|
||||
&[(BenchmarkParameter::b, 1)],
|
||||
);
|
||||
assert!(matches!(result, Err(BenchmarkError::Override(_))));
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ use scale_info::TypeInfo;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use sp_io::hashing::blake2_256;
|
||||
use sp_runtime::{traits::TrailingZeroInput, DispatchError};
|
||||
use sp_std::{prelude::Box, vec::Vec};
|
||||
use sp_std::vec::Vec;
|
||||
use sp_storage::TrackedStorageKey;
|
||||
|
||||
/// An alphabet of possible parameters to use for benchmarking.
|
||||
@@ -342,6 +342,90 @@ pub trait Benchmarking {
|
||||
) -> Result<Vec<BenchmarkResult>, BenchmarkError>;
|
||||
}
|
||||
|
||||
/// The recording trait used to mark the start and end of a benchmark.
|
||||
pub trait Recording {
|
||||
/// Start the benchmark.
|
||||
fn start(&mut self) {}
|
||||
|
||||
// Stop the benchmark.
|
||||
fn stop(&mut self) {}
|
||||
}
|
||||
|
||||
/// A no-op recording, used for unit test.
|
||||
struct NoopRecording;
|
||||
impl Recording for NoopRecording {}
|
||||
|
||||
/// A no-op recording, used for tests that should setup some state before running the benchmark.
|
||||
struct TestRecording<'a> {
|
||||
on_before_start: Option<&'a dyn Fn()>,
|
||||
}
|
||||
|
||||
impl<'a> TestRecording<'a> {
|
||||
fn new(on_before_start: &'a dyn Fn()) -> Self {
|
||||
Self { on_before_start: Some(on_before_start) }
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Recording for TestRecording<'a> {
|
||||
fn start(&mut self) {
|
||||
(self.on_before_start.take().expect("start called more than once"))();
|
||||
}
|
||||
}
|
||||
|
||||
/// Records the time and proof size of a single benchmark iteration.
|
||||
pub struct BenchmarkRecording<'a> {
|
||||
on_before_start: Option<&'a dyn Fn()>,
|
||||
start_extrinsic: Option<u128>,
|
||||
finish_extrinsic: Option<u128>,
|
||||
start_pov: Option<u32>,
|
||||
end_pov: Option<u32>,
|
||||
}
|
||||
|
||||
impl<'a> BenchmarkRecording<'a> {
|
||||
pub fn new(on_before_start: &'a dyn Fn()) -> Self {
|
||||
Self {
|
||||
on_before_start: Some(on_before_start),
|
||||
start_extrinsic: None,
|
||||
finish_extrinsic: None,
|
||||
start_pov: None,
|
||||
end_pov: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Recording for BenchmarkRecording<'a> {
|
||||
fn start(&mut self) {
|
||||
(self.on_before_start.take().expect("start called more than once"))();
|
||||
self.start_pov = crate::benchmarking::proof_size();
|
||||
self.start_extrinsic = Some(crate::benchmarking::current_time());
|
||||
}
|
||||
|
||||
fn stop(&mut self) {
|
||||
self.finish_extrinsic = Some(crate::benchmarking::current_time());
|
||||
self.end_pov = crate::benchmarking::proof_size();
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> BenchmarkRecording<'a> {
|
||||
pub fn start_pov(&self) -> Option<u32> {
|
||||
self.start_pov
|
||||
}
|
||||
|
||||
pub fn end_pov(&self) -> Option<u32> {
|
||||
self.end_pov
|
||||
}
|
||||
|
||||
pub fn diff_pov(&self) -> Option<u32> {
|
||||
self.start_pov.zip(self.end_pov).map(|(start, end)| end.saturating_sub(start))
|
||||
}
|
||||
|
||||
pub fn elapsed_extrinsic(&self) -> Option<u128> {
|
||||
self.start_extrinsic
|
||||
.zip(self.finish_extrinsic)
|
||||
.map(|(start, end)| end.saturating_sub(start))
|
||||
}
|
||||
}
|
||||
|
||||
/// The required setup for creating a benchmark.
|
||||
///
|
||||
/// Instance generic parameter is optional and can be used in order to capture unused generics for
|
||||
@@ -353,9 +437,27 @@ pub trait BenchmarkingSetup<T, I = ()> {
|
||||
/// Set up the storage, and prepare a closure to run the benchmark.
|
||||
fn instance(
|
||||
&self,
|
||||
recording: &mut impl Recording,
|
||||
components: &[(BenchmarkParameter, u32)],
|
||||
verify: bool,
|
||||
) -> Result<Box<dyn FnOnce() -> Result<(), BenchmarkError>>, BenchmarkError>;
|
||||
) -> Result<(), BenchmarkError>;
|
||||
|
||||
/// Same as `instance` but passing a closure to run before the benchmark starts.
|
||||
fn test_instance(
|
||||
&self,
|
||||
components: &[(BenchmarkParameter, u32)],
|
||||
on_before_start: &dyn Fn(),
|
||||
) -> Result<(), BenchmarkError> {
|
||||
return self.instance(&mut TestRecording::new(on_before_start), components, true);
|
||||
}
|
||||
|
||||
/// Same as `instance` but passing a no-op recording for unit tests.
|
||||
fn unit_test_instance(
|
||||
&self,
|
||||
components: &[(BenchmarkParameter, u32)],
|
||||
) -> Result<(), BenchmarkError> {
|
||||
return self.instance(&mut NoopRecording {}, components, true);
|
||||
}
|
||||
}
|
||||
|
||||
/// Grab an account, seeded by a name and index.
|
||||
|
||||
@@ -786,9 +786,10 @@ macro_rules! benchmark_backend {
|
||||
|
||||
fn instance(
|
||||
&self,
|
||||
recording: &mut impl $crate::Recording,
|
||||
components: &[($crate::BenchmarkParameter, u32)],
|
||||
verify: bool
|
||||
) -> Result<$crate::__private::Box<dyn FnOnce() -> Result<(), $crate::BenchmarkError>>, $crate::BenchmarkError> {
|
||||
) -> Result<(), $crate::BenchmarkError> {
|
||||
$(
|
||||
// Prepare instance
|
||||
let $param = components.iter()
|
||||
@@ -802,13 +803,14 @@ macro_rules! benchmark_backend {
|
||||
$( $param_instancer ; )*
|
||||
$( $post )*
|
||||
|
||||
Ok($crate::__private::Box::new(move || -> Result<(), $crate::BenchmarkError> {
|
||||
$eval;
|
||||
if verify {
|
||||
$postcode;
|
||||
}
|
||||
Ok(())
|
||||
}))
|
||||
recording.start();
|
||||
$eval;
|
||||
recording.stop();
|
||||
|
||||
if verify {
|
||||
$postcode;
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -960,14 +962,15 @@ macro_rules! selected_benchmark {
|
||||
|
||||
fn instance(
|
||||
&self,
|
||||
recording: &mut impl $crate::Recording,
|
||||
components: &[($crate::BenchmarkParameter, u32)],
|
||||
verify: bool
|
||||
) -> Result<$crate::__private::Box<dyn FnOnce() -> Result<(), $crate::BenchmarkError>>, $crate::BenchmarkError> {
|
||||
) -> Result<(), $crate::BenchmarkError> {
|
||||
match self {
|
||||
$(
|
||||
Self::$bench => <
|
||||
$bench as $crate::BenchmarkingSetup<T $(, $bench_inst)? >
|
||||
>::instance(&$bench, components, verify),
|
||||
>::instance(&$bench, recording, components, verify),
|
||||
)*
|
||||
}
|
||||
}
|
||||
@@ -1069,18 +1072,7 @@ macro_rules! impl_benchmark {
|
||||
$crate::benchmarking::set_whitelist(whitelist.clone());
|
||||
|
||||
let mut results: $crate::__private::Vec<$crate::BenchmarkResult> = $crate::__private::Vec::new();
|
||||
|
||||
// Always do at least one internal repeat...
|
||||
for _ in 0 .. internal_repeats.max(1) {
|
||||
// Always reset the state after the benchmark.
|
||||
$crate::__private::defer!($crate::benchmarking::wipe_db());
|
||||
|
||||
// Set up the externalities environment for the setup we want to
|
||||
// benchmark.
|
||||
let closure_to_benchmark = <
|
||||
SelectedBenchmark as $crate::BenchmarkingSetup<T $(, $instance)?>
|
||||
>::instance(&selected_benchmark, c, verify)?;
|
||||
|
||||
let on_before_start = || {
|
||||
// Set the block number to at least 1 so events are deposited.
|
||||
if $crate::__private::Zero::is_zero(&frame_system::Pallet::<T>::block_number()) {
|
||||
frame_system::Pallet::<T>::set_block_number(1u32.into());
|
||||
@@ -1098,6 +1090,12 @@ macro_rules! impl_benchmark {
|
||||
|
||||
// Reset the read/write counter so we don't count operations in the setup process.
|
||||
$crate::benchmarking::reset_read_write_count();
|
||||
};
|
||||
|
||||
// Always do at least one internal repeat...
|
||||
for _ in 0 .. internal_repeats.max(1) {
|
||||
// Always reset the state after the benchmark.
|
||||
$crate::__private::defer!($crate::benchmarking::wipe_db());
|
||||
|
||||
// Time the extrinsic logic.
|
||||
$crate::__private::log::trace!(
|
||||
@@ -1108,20 +1106,14 @@ macro_rules! impl_benchmark {
|
||||
verify
|
||||
);
|
||||
|
||||
let start_pov = $crate::benchmarking::proof_size();
|
||||
let start_extrinsic = $crate::benchmarking::current_time();
|
||||
|
||||
closure_to_benchmark()?;
|
||||
|
||||
let finish_extrinsic = $crate::benchmarking::current_time();
|
||||
let end_pov = $crate::benchmarking::proof_size();
|
||||
// Set up the externalities environment for the setup we want to
|
||||
// benchmark.
|
||||
let mut recording = $crate::BenchmarkRecording::new(&on_before_start);
|
||||
<SelectedBenchmark as $crate::BenchmarkingSetup<T $(, $instance)?>>::instance(&selected_benchmark, &mut recording, c, verify)?;
|
||||
|
||||
// Calculate the diff caused by the benchmark.
|
||||
let elapsed_extrinsic = finish_extrinsic.saturating_sub(start_extrinsic);
|
||||
let diff_pov = match (start_pov, end_pov) {
|
||||
(Some(start), Some(end)) => end.saturating_sub(start),
|
||||
_ => Default::default(),
|
||||
};
|
||||
let elapsed_extrinsic = recording.elapsed_extrinsic().expect("elapsed time should be recorded");
|
||||
let diff_pov = recording.diff_pov().unwrap_or_default();
|
||||
|
||||
// Commit the changes to get proper write count
|
||||
$crate::benchmarking::commit_db();
|
||||
@@ -1136,7 +1128,7 @@ macro_rules! impl_benchmark {
|
||||
);
|
||||
$crate::__private::log::trace!(
|
||||
target: "benchmark",
|
||||
"Proof sizes: before {:?} after {:?} diff {}", &start_pov, &end_pov, &diff_pov
|
||||
"Proof sizes: before {:?} after {:?} diff {}", recording.start_pov(), recording.end_pov(), &diff_pov
|
||||
);
|
||||
|
||||
// Time the storage root recalculation.
|
||||
@@ -1230,18 +1222,15 @@ macro_rules! impl_benchmark_test {
|
||||
// Always reset the state after the benchmark.
|
||||
$crate::__private::defer!($crate::benchmarking::wipe_db());
|
||||
|
||||
// Set up the benchmark, return execution + verification function.
|
||||
let closure_to_verify = <
|
||||
SelectedBenchmark as $crate::BenchmarkingSetup<T, _>
|
||||
>::instance(&selected_benchmark, &c, true)?;
|
||||
|
||||
// Set the block number to at least 1 so events are deposited.
|
||||
if $crate::__private::Zero::is_zero(&frame_system::Pallet::<T>::block_number()) {
|
||||
frame_system::Pallet::<T>::set_block_number(1u32.into());
|
||||
}
|
||||
let on_before_start = || {
|
||||
// Set the block number to at least 1 so events are deposited.
|
||||
if $crate::__private::Zero::is_zero(&frame_system::Pallet::<T>::block_number()) {
|
||||
frame_system::Pallet::<T>::set_block_number(1u32.into());
|
||||
}
|
||||
};
|
||||
|
||||
// Run execution + verification
|
||||
closure_to_verify()
|
||||
<SelectedBenchmark as $crate::BenchmarkingSetup<T, _>>::test_instance(&selected_benchmark, &c, &on_before_start)
|
||||
};
|
||||
|
||||
if components.is_empty() {
|
||||
|
||||
+40
-41
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for frame_benchmarking
|
||||
//! Autogenerated weights for `frame_benchmarking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/benchmarking/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/benchmarking/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for frame_benchmarking.
|
||||
/// Weight functions needed for `frame_benchmarking`.
|
||||
pub trait WeightInfo {
|
||||
fn addition(i: u32, ) -> Weight;
|
||||
fn subtraction(i: u32, ) -> Weight;
|
||||
@@ -60,7 +59,7 @@ pub trait WeightInfo {
|
||||
fn sr25519_verification(i: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for frame_benchmarking using the Substrate node and recommended hardware.
|
||||
/// Weights for `frame_benchmarking` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
@@ -68,101 +67,101 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 147_000 picoseconds.
|
||||
Weight::from_parts(185_656, 0)
|
||||
// Minimum execution time: 132_000 picoseconds.
|
||||
Weight::from_parts(160_546, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn subtraction(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 146_000 picoseconds.
|
||||
Weight::from_parts(189_816, 0)
|
||||
// Minimum execution time: 133_000 picoseconds.
|
||||
Weight::from_parts(171_395, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn multiplication(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 148_000 picoseconds.
|
||||
Weight::from_parts(202_367, 0)
|
||||
// Minimum execution time: 126_000 picoseconds.
|
||||
Weight::from_parts(166_417, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn division(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 143_000 picoseconds.
|
||||
Weight::from_parts(189_693, 0)
|
||||
// Minimum execution time: 131_000 picoseconds.
|
||||
Weight::from_parts(166_348, 0)
|
||||
}
|
||||
fn hashing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 24_167_071_000 picoseconds.
|
||||
Weight::from_parts(24_391_749_000, 0)
|
||||
// Minimum execution time: 26_583_601_000 picoseconds.
|
||||
Weight::from_parts(26_795_212_000, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 100]`.
|
||||
fn sr25519_verification(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 231_000 picoseconds.
|
||||
Weight::from_parts(2_998_013, 0)
|
||||
// Standard Error: 6_256
|
||||
.saturating_add(Weight::from_parts(55_456_705, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 158_000 picoseconds.
|
||||
Weight::from_parts(5_277_102, 0)
|
||||
// Standard Error: 6_279
|
||||
.saturating_add(Weight::from_parts(40_610_511, 0).saturating_mul(i.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn addition(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 147_000 picoseconds.
|
||||
Weight::from_parts(185_656, 0)
|
||||
// Minimum execution time: 132_000 picoseconds.
|
||||
Weight::from_parts(160_546, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn subtraction(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 146_000 picoseconds.
|
||||
Weight::from_parts(189_816, 0)
|
||||
// Minimum execution time: 133_000 picoseconds.
|
||||
Weight::from_parts(171_395, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn multiplication(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 148_000 picoseconds.
|
||||
Weight::from_parts(202_367, 0)
|
||||
// Minimum execution time: 126_000 picoseconds.
|
||||
Weight::from_parts(166_417, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 1000000]`.
|
||||
fn division(_i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 143_000 picoseconds.
|
||||
Weight::from_parts(189_693, 0)
|
||||
// Minimum execution time: 131_000 picoseconds.
|
||||
Weight::from_parts(166_348, 0)
|
||||
}
|
||||
fn hashing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 24_167_071_000 picoseconds.
|
||||
Weight::from_parts(24_391_749_000, 0)
|
||||
// Minimum execution time: 26_583_601_000 picoseconds.
|
||||
Weight::from_parts(26_795_212_000, 0)
|
||||
}
|
||||
/// The range of component `i` is `[0, 100]`.
|
||||
fn sr25519_verification(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 231_000 picoseconds.
|
||||
Weight::from_parts(2_998_013, 0)
|
||||
// Standard Error: 6_256
|
||||
.saturating_add(Weight::from_parts(55_456_705, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 158_000 picoseconds.
|
||||
Weight::from_parts(5_277_102, 0)
|
||||
// Standard Error: 6_279
|
||||
.saturating_add(Weight::from_parts(40_610_511, 0).saturating_mul(i.into()))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+202
-203
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_bounties
|
||||
//! Autogenerated weights for `pallet_bounties`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/bounties/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/bounties/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_bounties.
|
||||
/// Weight functions needed for `pallet_bounties`.
|
||||
pub trait WeightInfo {
|
||||
fn propose_bounty(d: u32, ) -> Weight;
|
||||
fn approve_bounty() -> Weight;
|
||||
@@ -65,169 +64,169 @@ pub trait WeightInfo {
|
||||
fn spend_funds(b: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_bounties using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `276`
|
||||
// Measured: `309`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 29_384_000 picoseconds.
|
||||
Weight::from_parts(30_820_018, 3593)
|
||||
// Standard Error: 298
|
||||
.saturating_add(Weight::from_parts(2_920, 0).saturating_mul(d.into()))
|
||||
// Minimum execution time: 25_206_000 picoseconds.
|
||||
Weight::from_parts(26_925_800, 3593)
|
||||
// Standard Error: 239
|
||||
.saturating_add(Weight::from_parts(501, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `368`
|
||||
// Measured: `401`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 10_873_000 picoseconds.
|
||||
Weight::from_parts(11_421_000, 3642)
|
||||
// Minimum execution time: 13_150_000 picoseconds.
|
||||
Weight::from_parts(13_708_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `388`
|
||||
// Measured: `421`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 9_181_000 picoseconds.
|
||||
Weight::from_parts(9_726_000, 3642)
|
||||
// Minimum execution time: 12_277_000 picoseconds.
|
||||
Weight::from_parts(12_769_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `564`
|
||||
// Measured: `597`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 30_257_000 picoseconds.
|
||||
Weight::from_parts(30_751_000, 3642)
|
||||
// Minimum execution time: 29_041_000 picoseconds.
|
||||
Weight::from_parts(29_979_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `560`
|
||||
// Measured: `593`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 27_850_000 picoseconds.
|
||||
Weight::from_parts(28_821_000, 3642)
|
||||
// Minimum execution time: 27_936_000 picoseconds.
|
||||
Weight::from_parts(28_925_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `572`
|
||||
// Measured: `605`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 19_164_000 picoseconds.
|
||||
Weight::from_parts(20_136_000, 3642)
|
||||
// Minimum execution time: 16_759_000 picoseconds.
|
||||
Weight::from_parts(17_699_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `936`
|
||||
// Measured: `969`
|
||||
// Estimated: `8799`
|
||||
// Minimum execution time: 120_235_000 picoseconds.
|
||||
Weight::from_parts(121_673_000, 8799)
|
||||
// Minimum execution time: 112_056_000 picoseconds.
|
||||
Weight::from_parts(114_275_000, 8799)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `616`
|
||||
// Measured: `649`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 35_713_000 picoseconds.
|
||||
Weight::from_parts(37_174_000, 3642)
|
||||
// Minimum execution time: 32_625_000 picoseconds.
|
||||
Weight::from_parts(33_719_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `852`
|
||||
// Measured: `885`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 81_037_000 picoseconds.
|
||||
Weight::from_parts(83_294_000, 6196)
|
||||
// Minimum execution time: 76_895_000 picoseconds.
|
||||
Weight::from_parts(79_161_000, 6196)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `424`
|
||||
// Measured: `457`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 15_348_000 picoseconds.
|
||||
Weight::from_parts(15_776_000, 3642)
|
||||
// Minimum execution time: 12_635_000 picoseconds.
|
||||
Weight::from_parts(13_423_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4 + b * (297 ±0)`
|
||||
// Measured: `37 + b * (297 ±0)`
|
||||
// Estimated: `1887 + b * (5206 ±0)`
|
||||
// Minimum execution time: 5_082_000 picoseconds.
|
||||
Weight::from_parts(5_126_000, 1887)
|
||||
// Standard Error: 21_949
|
||||
.saturating_add(Weight::from_parts(42_635_308, 0).saturating_mul(b.into()))
|
||||
// Minimum execution time: 2_840_000 picoseconds.
|
||||
Weight::from_parts(6_076_743, 1887)
|
||||
// Standard Error: 18_569
|
||||
.saturating_add(Weight::from_parts(34_771_846, 0).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_u64))
|
||||
@@ -236,168 +235,168 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `276`
|
||||
// Measured: `309`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 29_384_000 picoseconds.
|
||||
Weight::from_parts(30_820_018, 3593)
|
||||
// Standard Error: 298
|
||||
.saturating_add(Weight::from_parts(2_920, 0).saturating_mul(d.into()))
|
||||
// Minimum execution time: 25_206_000 picoseconds.
|
||||
Weight::from_parts(26_925_800, 3593)
|
||||
// Standard Error: 239
|
||||
.saturating_add(Weight::from_parts(501, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `368`
|
||||
// Measured: `401`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 10_873_000 picoseconds.
|
||||
Weight::from_parts(11_421_000, 3642)
|
||||
// Minimum execution time: 13_150_000 picoseconds.
|
||||
Weight::from_parts(13_708_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `388`
|
||||
// Measured: `421`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 9_181_000 picoseconds.
|
||||
Weight::from_parts(9_726_000, 3642)
|
||||
// Minimum execution time: 12_277_000 picoseconds.
|
||||
Weight::from_parts(12_769_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `564`
|
||||
// Measured: `597`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 30_257_000 picoseconds.
|
||||
Weight::from_parts(30_751_000, 3642)
|
||||
// Minimum execution time: 29_041_000 picoseconds.
|
||||
Weight::from_parts(29_979_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `560`
|
||||
// Measured: `593`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 27_850_000 picoseconds.
|
||||
Weight::from_parts(28_821_000, 3642)
|
||||
// Minimum execution time: 27_936_000 picoseconds.
|
||||
Weight::from_parts(28_925_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `572`
|
||||
// Measured: `605`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 19_164_000 picoseconds.
|
||||
Weight::from_parts(20_136_000, 3642)
|
||||
// Minimum execution time: 16_759_000 picoseconds.
|
||||
Weight::from_parts(17_699_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `936`
|
||||
// Measured: `969`
|
||||
// Estimated: `8799`
|
||||
// Minimum execution time: 120_235_000 picoseconds.
|
||||
Weight::from_parts(121_673_000, 8799)
|
||||
// Minimum execution time: 112_056_000 picoseconds.
|
||||
Weight::from_parts(114_275_000, 8799)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `616`
|
||||
// Measured: `649`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 35_713_000 picoseconds.
|
||||
Weight::from_parts(37_174_000, 3642)
|
||||
// Minimum execution time: 32_625_000 picoseconds.
|
||||
Weight::from_parts(33_719_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `852`
|
||||
// Measured: `885`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 81_037_000 picoseconds.
|
||||
Weight::from_parts(83_294_000, 6196)
|
||||
// Minimum execution time: 76_895_000 picoseconds.
|
||||
Weight::from_parts(79_161_000, 6196)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Bounties Bounties (r:1 w:1)
|
||||
/// Proof: Bounties Bounties (max_values: None, max_size: Some(177), added: 2652, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `424`
|
||||
// Measured: `457`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 15_348_000 picoseconds.
|
||||
Weight::from_parts(15_776_000, 3642)
|
||||
// Minimum execution time: 12_635_000 picoseconds.
|
||||
Weight::from_parts(13_423_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4 + b * (297 ±0)`
|
||||
// Measured: `37 + b * (297 ±0)`
|
||||
// Estimated: `1887 + b * (5206 ±0)`
|
||||
// Minimum execution time: 5_082_000 picoseconds.
|
||||
Weight::from_parts(5_126_000, 1887)
|
||||
// Standard Error: 21_949
|
||||
.saturating_add(Weight::from_parts(42_635_308, 0).saturating_mul(b.into()))
|
||||
// Minimum execution time: 2_840_000 picoseconds.
|
||||
Weight::from_parts(6_076_743, 1887)
|
||||
// Standard Error: 18_569
|
||||
.saturating_add(Weight::from_parts(34_771_846, 0).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_u64))
|
||||
|
||||
Generated
+141
-139
@@ -18,25 +18,27 @@
|
||||
//! Autogenerated weights for `pallet_broker`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-03-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-h2rr8wx7-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_broker
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_broker
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/broker/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -88,8 +90,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_865_000 picoseconds.
|
||||
Weight::from_parts(3_061_000, 0)
|
||||
// Minimum execution time: 2_624_000 picoseconds.
|
||||
Weight::from_parts(2_804_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Reservations` (r:1 w:1)
|
||||
@@ -98,8 +100,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5016`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 18_431_000 picoseconds.
|
||||
Weight::from_parts(19_558_000, 7496)
|
||||
// Minimum execution time: 18_451_000 picoseconds.
|
||||
Weight::from_parts(18_853_000, 7496)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -109,8 +111,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6218`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 17_724_000 picoseconds.
|
||||
Weight::from_parts(18_688_000, 7496)
|
||||
// Minimum execution time: 16_899_000 picoseconds.
|
||||
Weight::from_parts(17_645_000, 7496)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -120,8 +122,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 10_513_000 picoseconds.
|
||||
Weight::from_parts(11_138_000, 1526)
|
||||
// Minimum execution time: 10_239_000 picoseconds.
|
||||
Weight::from_parts(10_754_000, 1526)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -140,12 +142,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `Broker::Workplan` (r:0 w:10)
|
||||
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn start_sales(_n: u32, ) -> Weight {
|
||||
fn start_sales(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6330`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 50_864_000 picoseconds.
|
||||
Weight::from_parts(54_000_280, 8499)
|
||||
// Minimum execution time: 51_250_000 picoseconds.
|
||||
Weight::from_parts(54_643_012, 8499)
|
||||
// Standard Error: 147
|
||||
.saturating_add(Weight::from_parts(18, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(16_u64))
|
||||
}
|
||||
@@ -163,8 +167,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `635`
|
||||
// Estimated: `2120`
|
||||
// Minimum execution time: 43_630_000 picoseconds.
|
||||
Weight::from_parts(44_622_000, 2120)
|
||||
// Minimum execution time: 43_660_000 picoseconds.
|
||||
Weight::from_parts(45_543_000, 2120)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -186,8 +190,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `753`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 62_453_000 picoseconds.
|
||||
Weight::from_parts(63_882_000, 4698)
|
||||
// Minimum execution time: 63_122_000 picoseconds.
|
||||
Weight::from_parts(64_366_000, 4698)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -197,8 +201,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 17_237_000 picoseconds.
|
||||
Weight::from_parts(17_757_000, 3550)
|
||||
// Minimum execution time: 17_552_000 picoseconds.
|
||||
Weight::from_parts(18_251_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -208,8 +212,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 18_504_000 picoseconds.
|
||||
Weight::from_parts(19_273_000, 3550)
|
||||
// Minimum execution time: 18_551_000 picoseconds.
|
||||
Weight::from_parts(19_727_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -219,8 +223,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 20_477_000 picoseconds.
|
||||
Weight::from_parts(21_328_000, 3550)
|
||||
// Minimum execution time: 20_636_000 picoseconds.
|
||||
Weight::from_parts(21_060_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -236,8 +240,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `740`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 31_815_000 picoseconds.
|
||||
Weight::from_parts(32_700_000, 4681)
|
||||
// Minimum execution time: 32_394_000 picoseconds.
|
||||
Weight::from_parts(33_324_000, 4681)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -255,8 +259,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `775`
|
||||
// Estimated: `5996`
|
||||
// Minimum execution time: 38_313_000 picoseconds.
|
||||
Weight::from_parts(38_985_000, 5996)
|
||||
// Minimum execution time: 38_128_000 picoseconds.
|
||||
Weight::from_parts(39_274_000, 5996)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -271,10 +275,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `859`
|
||||
// Estimated: `6196 + m * (2520 ±0)`
|
||||
// Minimum execution time: 70_170_000 picoseconds.
|
||||
Weight::from_parts(71_245_388, 6196)
|
||||
// Standard Error: 54_382
|
||||
.saturating_add(Weight::from_parts(1_488_794, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 70_453_000 picoseconds.
|
||||
Weight::from_parts(70_652_822, 6196)
|
||||
// Standard Error: 75_524
|
||||
.saturating_add(Weight::from_parts(2_335_289, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
@@ -286,8 +290,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `103`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 43_414_000 picoseconds.
|
||||
Weight::from_parts(44_475_000, 3593)
|
||||
// Minimum execution time: 43_945_000 picoseconds.
|
||||
Weight::from_parts(45_249_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -299,8 +303,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 31_327_000 picoseconds.
|
||||
Weight::from_parts(32_050_000, 3550)
|
||||
// Minimum execution time: 30_680_000 picoseconds.
|
||||
Weight::from_parts(32_995_000, 3550)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -314,8 +318,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `601`
|
||||
// Estimated: `3533`
|
||||
// Minimum execution time: 41_315_000 picoseconds.
|
||||
Weight::from_parts(42_421_000, 3533)
|
||||
// Minimum execution time: 48_053_000 picoseconds.
|
||||
Weight::from_parts(51_364_000, 3533)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -331,8 +335,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `995`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 49_707_000 picoseconds.
|
||||
Weight::from_parts(51_516_000, 3593)
|
||||
// Minimum execution time: 57_372_000 picoseconds.
|
||||
Weight::from_parts(59_466_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -344,20 +348,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `661`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 26_207_000 picoseconds.
|
||||
Weight::from_parts(27_227_000, 4698)
|
||||
// Minimum execution time: 27_768_000 picoseconds.
|
||||
Weight::from_parts(29_000_000, 4698)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn request_core_count(n: u32, ) -> Weight {
|
||||
fn request_core_count(_n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_670_000 picoseconds.
|
||||
Weight::from_parts(5_170_450, 0)
|
||||
// Standard Error: 16
|
||||
.saturating_add(Weight::from_parts(37, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 4_588_000 picoseconds.
|
||||
Weight::from_parts(5_201_705, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:1 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -366,10 +368,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `404`
|
||||
// Estimated: `1487`
|
||||
// Minimum execution time: 6_916_000 picoseconds.
|
||||
Weight::from_parts(7_485_053, 1487)
|
||||
// Standard Error: 23
|
||||
.saturating_add(Weight::from_parts(30, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 6_889_000 picoseconds.
|
||||
Weight::from_parts(7_380_363, 1487)
|
||||
// Standard Error: 21
|
||||
.saturating_add(Weight::from_parts(63, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -387,8 +389,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `972`
|
||||
// Estimated: `4437`
|
||||
// Minimum execution time: 50_987_000 picoseconds.
|
||||
Weight::from_parts(52_303_000, 4437)
|
||||
// Minimum execution time: 50_156_000 picoseconds.
|
||||
Weight::from_parts(51_610_000, 4437)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -407,10 +409,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6281`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 38_334_000 picoseconds.
|
||||
Weight::from_parts(40_517_609, 8499)
|
||||
// Standard Error: 90
|
||||
.saturating_add(Weight::from_parts(338, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 38_246_000 picoseconds.
|
||||
Weight::from_parts(40_008_850, 8499)
|
||||
// Standard Error: 94
|
||||
.saturating_add(Weight::from_parts(964, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(15_u64))
|
||||
}
|
||||
@@ -422,8 +424,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `180`
|
||||
// Estimated: `3493`
|
||||
// Minimum execution time: 7_850_000 picoseconds.
|
||||
Weight::from_parts(8_157_000, 3493)
|
||||
// Minimum execution time: 7_962_000 picoseconds.
|
||||
Weight::from_parts(8_313_000, 3493)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -435,8 +437,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1423`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 17_313_000 picoseconds.
|
||||
Weight::from_parts(17_727_000, 4681)
|
||||
// Minimum execution time: 17_457_000 picoseconds.
|
||||
Weight::from_parts(18_387_000, 4681)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -444,8 +446,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 171_000 picoseconds.
|
||||
Weight::from_parts(196_000, 0)
|
||||
// Minimum execution time: 133_000 picoseconds.
|
||||
Weight::from_parts(149_000, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:0 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -453,8 +455,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_413_000 picoseconds.
|
||||
Weight::from_parts(2_587_000, 0)
|
||||
// Minimum execution time: 2_407_000 picoseconds.
|
||||
Weight::from_parts(2_634_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Status` (r:1 w:1)
|
||||
@@ -469,8 +471,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `4068`
|
||||
// Minimum execution time: 13_121_000 picoseconds.
|
||||
Weight::from_parts(13_685_000, 4068)
|
||||
// Minimum execution time: 13_043_000 picoseconds.
|
||||
Weight::from_parts(13_541_000, 4068)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -480,8 +482,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 6_847_000 picoseconds.
|
||||
Weight::from_parts(7_185_000, 1526)
|
||||
// Minimum execution time: 6_606_000 picoseconds.
|
||||
Weight::from_parts(6_964_000, 1526)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -495,8 +497,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_865_000 picoseconds.
|
||||
Weight::from_parts(3_061_000, 0)
|
||||
// Minimum execution time: 2_624_000 picoseconds.
|
||||
Weight::from_parts(2_804_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Reservations` (r:1 w:1)
|
||||
@@ -505,8 +507,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `5016`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 18_431_000 picoseconds.
|
||||
Weight::from_parts(19_558_000, 7496)
|
||||
// Minimum execution time: 18_451_000 picoseconds.
|
||||
Weight::from_parts(18_853_000, 7496)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -516,8 +518,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6218`
|
||||
// Estimated: `7496`
|
||||
// Minimum execution time: 17_724_000 picoseconds.
|
||||
Weight::from_parts(18_688_000, 7496)
|
||||
// Minimum execution time: 16_899_000 picoseconds.
|
||||
Weight::from_parts(17_645_000, 7496)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -527,8 +529,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 10_513_000 picoseconds.
|
||||
Weight::from_parts(11_138_000, 1526)
|
||||
// Minimum execution time: 10_239_000 picoseconds.
|
||||
Weight::from_parts(10_754_000, 1526)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -547,12 +549,14 @@ impl WeightInfo for () {
|
||||
/// Storage: `Broker::Workplan` (r:0 w:10)
|
||||
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn start_sales(_n: u32, ) -> Weight {
|
||||
fn start_sales(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6330`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 50_864_000 picoseconds.
|
||||
Weight::from_parts(54_000_280, 8499)
|
||||
// Minimum execution time: 51_250_000 picoseconds.
|
||||
Weight::from_parts(54_643_012, 8499)
|
||||
// Standard Error: 147
|
||||
.saturating_add(Weight::from_parts(18, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(16_u64))
|
||||
}
|
||||
@@ -570,8 +574,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `635`
|
||||
// Estimated: `2120`
|
||||
// Minimum execution time: 43_630_000 picoseconds.
|
||||
Weight::from_parts(44_622_000, 2120)
|
||||
// Minimum execution time: 43_660_000 picoseconds.
|
||||
Weight::from_parts(45_543_000, 2120)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -593,8 +597,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `753`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 62_453_000 picoseconds.
|
||||
Weight::from_parts(63_882_000, 4698)
|
||||
// Minimum execution time: 63_122_000 picoseconds.
|
||||
Weight::from_parts(64_366_000, 4698)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -604,8 +608,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 17_237_000 picoseconds.
|
||||
Weight::from_parts(17_757_000, 3550)
|
||||
// Minimum execution time: 17_552_000 picoseconds.
|
||||
Weight::from_parts(18_251_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -615,8 +619,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 18_504_000 picoseconds.
|
||||
Weight::from_parts(19_273_000, 3550)
|
||||
// Minimum execution time: 18_551_000 picoseconds.
|
||||
Weight::from_parts(19_727_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -626,8 +630,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 20_477_000 picoseconds.
|
||||
Weight::from_parts(21_328_000, 3550)
|
||||
// Minimum execution time: 20_636_000 picoseconds.
|
||||
Weight::from_parts(21_060_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -643,8 +647,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `740`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 31_815_000 picoseconds.
|
||||
Weight::from_parts(32_700_000, 4681)
|
||||
// Minimum execution time: 32_394_000 picoseconds.
|
||||
Weight::from_parts(33_324_000, 4681)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -662,8 +666,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `775`
|
||||
// Estimated: `5996`
|
||||
// Minimum execution time: 38_313_000 picoseconds.
|
||||
Weight::from_parts(38_985_000, 5996)
|
||||
// Minimum execution time: 38_128_000 picoseconds.
|
||||
Weight::from_parts(39_274_000, 5996)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -678,10 +682,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `859`
|
||||
// Estimated: `6196 + m * (2520 ±0)`
|
||||
// Minimum execution time: 70_170_000 picoseconds.
|
||||
Weight::from_parts(71_245_388, 6196)
|
||||
// Standard Error: 54_382
|
||||
.saturating_add(Weight::from_parts(1_488_794, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 70_453_000 picoseconds.
|
||||
Weight::from_parts(70_652_822, 6196)
|
||||
// Standard Error: 75_524
|
||||
.saturating_add(Weight::from_parts(2_335_289, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
@@ -693,8 +697,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `103`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 43_414_000 picoseconds.
|
||||
Weight::from_parts(44_475_000, 3593)
|
||||
// Minimum execution time: 43_945_000 picoseconds.
|
||||
Weight::from_parts(45_249_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -706,8 +710,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 31_327_000 picoseconds.
|
||||
Weight::from_parts(32_050_000, 3550)
|
||||
// Minimum execution time: 30_680_000 picoseconds.
|
||||
Weight::from_parts(32_995_000, 3550)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -721,8 +725,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `601`
|
||||
// Estimated: `3533`
|
||||
// Minimum execution time: 41_315_000 picoseconds.
|
||||
Weight::from_parts(42_421_000, 3533)
|
||||
// Minimum execution time: 48_053_000 picoseconds.
|
||||
Weight::from_parts(51_364_000, 3533)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -738,8 +742,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `995`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 49_707_000 picoseconds.
|
||||
Weight::from_parts(51_516_000, 3593)
|
||||
// Minimum execution time: 57_372_000 picoseconds.
|
||||
Weight::from_parts(59_466_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -751,20 +755,18 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `661`
|
||||
// Estimated: `4698`
|
||||
// Minimum execution time: 26_207_000 picoseconds.
|
||||
Weight::from_parts(27_227_000, 4698)
|
||||
// Minimum execution time: 27_768_000 picoseconds.
|
||||
Weight::from_parts(29_000_000, 4698)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn request_core_count(n: u32, ) -> Weight {
|
||||
fn request_core_count(_n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_670_000 picoseconds.
|
||||
Weight::from_parts(5_170_450, 0)
|
||||
// Standard Error: 16
|
||||
.saturating_add(Weight::from_parts(37, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 4_588_000 picoseconds.
|
||||
Weight::from_parts(5_201_705, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:1 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -773,10 +775,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `404`
|
||||
// Estimated: `1487`
|
||||
// Minimum execution time: 6_916_000 picoseconds.
|
||||
Weight::from_parts(7_485_053, 1487)
|
||||
// Standard Error: 23
|
||||
.saturating_add(Weight::from_parts(30, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 6_889_000 picoseconds.
|
||||
Weight::from_parts(7_380_363, 1487)
|
||||
// Standard Error: 21
|
||||
.saturating_add(Weight::from_parts(63, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -794,8 +796,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `972`
|
||||
// Estimated: `4437`
|
||||
// Minimum execution time: 50_987_000 picoseconds.
|
||||
Weight::from_parts(52_303_000, 4437)
|
||||
// Minimum execution time: 50_156_000 picoseconds.
|
||||
Weight::from_parts(51_610_000, 4437)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -814,10 +816,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6281`
|
||||
// Estimated: `8499`
|
||||
// Minimum execution time: 38_334_000 picoseconds.
|
||||
Weight::from_parts(40_517_609, 8499)
|
||||
// Standard Error: 90
|
||||
.saturating_add(Weight::from_parts(338, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 38_246_000 picoseconds.
|
||||
Weight::from_parts(40_008_850, 8499)
|
||||
// Standard Error: 94
|
||||
.saturating_add(Weight::from_parts(964, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(15_u64))
|
||||
}
|
||||
@@ -829,8 +831,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `180`
|
||||
// Estimated: `3493`
|
||||
// Minimum execution time: 7_850_000 picoseconds.
|
||||
Weight::from_parts(8_157_000, 3493)
|
||||
// Minimum execution time: 7_962_000 picoseconds.
|
||||
Weight::from_parts(8_313_000, 3493)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -842,8 +844,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1423`
|
||||
// Estimated: `4681`
|
||||
// Minimum execution time: 17_313_000 picoseconds.
|
||||
Weight::from_parts(17_727_000, 4681)
|
||||
// Minimum execution time: 17_457_000 picoseconds.
|
||||
Weight::from_parts(18_387_000, 4681)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -851,8 +853,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 171_000 picoseconds.
|
||||
Weight::from_parts(196_000, 0)
|
||||
// Minimum execution time: 133_000 picoseconds.
|
||||
Weight::from_parts(149_000, 0)
|
||||
}
|
||||
/// Storage: `Broker::CoreCountInbox` (r:0 w:1)
|
||||
/// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
|
||||
@@ -860,8 +862,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_413_000 picoseconds.
|
||||
Weight::from_parts(2_587_000, 0)
|
||||
// Minimum execution time: 2_407_000 picoseconds.
|
||||
Weight::from_parts(2_634_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Broker::Status` (r:1 w:1)
|
||||
@@ -876,8 +878,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `603`
|
||||
// Estimated: `4068`
|
||||
// Minimum execution time: 13_121_000 picoseconds.
|
||||
Weight::from_parts(13_685_000, 4068)
|
||||
// Minimum execution time: 13_043_000 picoseconds.
|
||||
Weight::from_parts(13_541_000, 4068)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -887,8 +889,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `239`
|
||||
// Estimated: `1526`
|
||||
// Minimum execution time: 6_847_000 picoseconds.
|
||||
Weight::from_parts(7_185_000, 1526)
|
||||
// Minimum execution time: 6_606_000 picoseconds.
|
||||
Weight::from_parts(6_964_000, 1526)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
+190
-191
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_child_bounties
|
||||
//! Autogenerated weights for `pallet_child_bounties`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/child-bounties/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/child-bounties/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_child_bounties.
|
||||
/// Weight functions needed for `pallet_child_bounties`.
|
||||
pub trait WeightInfo {
|
||||
fn add_child_bounty(d: u32, ) -> Weight;
|
||||
fn propose_curator() -> Weight;
|
||||
@@ -62,288 +61,288 @@ pub trait WeightInfo {
|
||||
fn close_child_bounty_active() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_child_bounties using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `712`
|
||||
// Measured: `745`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 69_805_000 picoseconds.
|
||||
Weight::from_parts(73_216_717, 6196)
|
||||
// Minimum execution time: 65_654_000 picoseconds.
|
||||
Weight::from_parts(68_255_084, 6196)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `766`
|
||||
// Measured: `799`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 18_190_000 picoseconds.
|
||||
Weight::from_parts(18_932_000, 3642)
|
||||
// Minimum execution time: 18_534_000 picoseconds.
|
||||
Weight::from_parts(19_332_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `912`
|
||||
// Measured: `945`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 35_035_000 picoseconds.
|
||||
Weight::from_parts(35_975_000, 3642)
|
||||
// Minimum execution time: 33_212_000 picoseconds.
|
||||
Weight::from_parts(35_407_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `912`
|
||||
// Measured: `945`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 37_636_000 picoseconds.
|
||||
Weight::from_parts(38_610_000, 3642)
|
||||
// Minimum execution time: 35_510_000 picoseconds.
|
||||
Weight::from_parts(36_345_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `809`
|
||||
// Measured: `842`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 22_457_000 picoseconds.
|
||||
Weight::from_parts(23_691_000, 3642)
|
||||
// Minimum execution time: 19_085_000 picoseconds.
|
||||
Weight::from_parts(20_094_000, 3642)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `682`
|
||||
// Estimated: `8799`
|
||||
// Minimum execution time: 118_272_000 picoseconds.
|
||||
Weight::from_parts(121_646_000, 8799)
|
||||
// Minimum execution time: 110_529_000 picoseconds.
|
||||
Weight::from_parts(112_660_000, 8799)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1012`
|
||||
// Measured: `1045`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 75_717_000 picoseconds.
|
||||
Weight::from_parts(77_837_000, 6196)
|
||||
// Minimum execution time: 76_363_000 picoseconds.
|
||||
Weight::from_parts(77_799_000, 6196)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1199`
|
||||
// Measured: `1232`
|
||||
// Estimated: `8799`
|
||||
// Minimum execution time: 94_215_000 picoseconds.
|
||||
Weight::from_parts(97_017_000, 8799)
|
||||
// Minimum execution time: 89_977_000 picoseconds.
|
||||
Weight::from_parts(92_978_000, 8799)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `712`
|
||||
// Measured: `745`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 69_805_000 picoseconds.
|
||||
Weight::from_parts(73_216_717, 6196)
|
||||
// Minimum execution time: 65_654_000 picoseconds.
|
||||
Weight::from_parts(68_255_084, 6196)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `766`
|
||||
// Measured: `799`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 18_190_000 picoseconds.
|
||||
Weight::from_parts(18_932_000, 3642)
|
||||
// Minimum execution time: 18_534_000 picoseconds.
|
||||
Weight::from_parts(19_332_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `912`
|
||||
// Measured: `945`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 35_035_000 picoseconds.
|
||||
Weight::from_parts(35_975_000, 3642)
|
||||
// Minimum execution time: 33_212_000 picoseconds.
|
||||
Weight::from_parts(35_407_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `912`
|
||||
// Measured: `945`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 37_636_000 picoseconds.
|
||||
Weight::from_parts(38_610_000, 3642)
|
||||
// Minimum execution time: 35_510_000 picoseconds.
|
||||
Weight::from_parts(36_345_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `809`
|
||||
// Measured: `842`
|
||||
// Estimated: `3642`
|
||||
// Minimum execution time: 22_457_000 picoseconds.
|
||||
Weight::from_parts(23_691_000, 3642)
|
||||
// Minimum execution time: 19_085_000 picoseconds.
|
||||
Weight::from_parts(20_094_000, 3642)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `682`
|
||||
// Estimated: `8799`
|
||||
// Minimum execution time: 118_272_000 picoseconds.
|
||||
Weight::from_parts(121_646_000, 8799)
|
||||
// Minimum execution time: 110_529_000 picoseconds.
|
||||
Weight::from_parts(112_660_000, 8799)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1012`
|
||||
// Measured: `1045`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 75_717_000 picoseconds.
|
||||
Weight::from_parts(77_837_000, 6196)
|
||||
// Minimum execution time: 76_363_000 picoseconds.
|
||||
Weight::from_parts(77_799_000, 6196)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1199`
|
||||
// Measured: `1232`
|
||||
// Estimated: `8799`
|
||||
// Minimum execution time: 94_215_000 picoseconds.
|
||||
Weight::from_parts(97_017_000, 8799)
|
||||
// Minimum execution time: 89_977_000 picoseconds.
|
||||
Weight::from_parts(92_978_000, 8799)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
|
||||
+354
-323
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_collective
|
||||
//! Autogenerated weights for `pallet_collective`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/collective/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/collective/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_collective.
|
||||
/// Weight functions needed for `pallet_collective`.
|
||||
pub trait WeightInfo {
|
||||
fn set_members(m: u32, n: u32, p: u32, ) -> Weight;
|
||||
fn execute(b: u32, m: u32, ) -> Weight;
|
||||
@@ -64,30 +63,30 @@ pub trait WeightInfo {
|
||||
fn disapprove_proposal(p: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_collective using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_collective` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Council Members (r:1 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:0)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:100 w:100)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:0 w:1)
|
||||
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:100 w:100)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:0 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
|
||||
// Estimated: `15861 + m * (1967 ±24) + p * (4332 ±24)`
|
||||
// Minimum execution time: 17_506_000 picoseconds.
|
||||
Weight::from_parts(17_767_000, 15861)
|
||||
// Standard Error: 60_220
|
||||
.saturating_add(Weight::from_parts(4_374_805, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 60_220
|
||||
.saturating_add(Weight::from_parts(8_398_316, 0).saturating_mul(p.into()))
|
||||
// Estimated: `15894 + m * (1967 ±24) + p * (4332 ±24)`
|
||||
// Minimum execution time: 15_780_000 picoseconds.
|
||||
Weight::from_parts(16_193_000, 15894)
|
||||
// Standard Error: 56_777
|
||||
.saturating_add(Weight::from_parts(4_269_920, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 56_777
|
||||
.saturating_add(Weight::from_parts(8_046_697, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
@@ -95,245 +94,261 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn execute(b: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `202 + m * (32 ±0)`
|
||||
// Estimated: `1688 + m * (32 ±0)`
|
||||
// Minimum execution time: 16_203_000 picoseconds.
|
||||
Weight::from_parts(15_348_267, 1688)
|
||||
// Standard Error: 37
|
||||
.saturating_add(Weight::from_parts(1_766, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 382
|
||||
.saturating_add(Weight::from_parts(15_765, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
// Measured: `380 + m * (32 ±0)`
|
||||
// Estimated: `3997 + m * (32 ±0)`
|
||||
// Minimum execution time: 19_760_000 picoseconds.
|
||||
Weight::from_parts(18_849_113, 3997)
|
||||
// Standard Error: 48
|
||||
.saturating_add(Weight::from_parts(2_076, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 501
|
||||
.saturating_add(Weight::from_parts(17_171, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:0)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:0)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `202 + m * (32 ±0)`
|
||||
// Estimated: `3668 + m * (32 ±0)`
|
||||
// Minimum execution time: 18_642_000 picoseconds.
|
||||
Weight::from_parts(17_708_609, 3668)
|
||||
// Standard Error: 58
|
||||
.saturating_add(Weight::from_parts(2_285, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 598
|
||||
.saturating_add(Weight::from_parts(30_454, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
// Measured: `380 + m * (32 ±0)`
|
||||
// Estimated: `3997 + m * (32 ±0)`
|
||||
// Minimum execution time: 21_535_000 picoseconds.
|
||||
Weight::from_parts(20_564_012, 3997)
|
||||
// Standard Error: 66
|
||||
.saturating_add(Weight::from_parts(2_252, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 689
|
||||
.saturating_add(Weight::from_parts(33_509, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalCount (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:0 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalCount` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:0 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 27_067_000 picoseconds.
|
||||
Weight::from_parts(25_456_964, 3884)
|
||||
// Standard Error: 112
|
||||
.saturating_add(Weight::from_parts(3_773, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_177
|
||||
.saturating_add(Weight::from_parts(32_783, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_162
|
||||
.saturating_add(Weight::from_parts(194_388, 0).saturating_mul(p.into()))
|
||||
// Measured: `525 + m * (32 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3917 + m * (33 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 22_759_000 picoseconds.
|
||||
Weight::from_parts(21_344_363, 3917)
|
||||
// Standard Error: 121
|
||||
.saturating_add(Weight::from_parts(3_231, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_265
|
||||
.saturating_add(Weight::from_parts(31_197, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_249
|
||||
.saturating_add(Weight::from_parts(200_231, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[5, 100]`.
|
||||
fn vote(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `941 + m * (64 ±0)`
|
||||
// Estimated: `4405 + m * (64 ±0)`
|
||||
// Minimum execution time: 26_055_000 picoseconds.
|
||||
Weight::from_parts(27_251_907, 4405)
|
||||
// Standard Error: 1_008
|
||||
.saturating_add(Weight::from_parts(65_947, 0).saturating_mul(m.into()))
|
||||
// Measured: `974 + m * (64 ±0)`
|
||||
// Estimated: `4438 + m * (64 ±0)`
|
||||
// Minimum execution time: 22_935_000 picoseconds.
|
||||
Weight::from_parts(23_694_302, 4438)
|
||||
// Standard Error: 959
|
||||
.saturating_add(Weight::from_parts(57_721, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:0 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 28_363_000 picoseconds.
|
||||
Weight::from_parts(28_733_464, 3975)
|
||||
// Standard Error: 1_275
|
||||
.saturating_add(Weight::from_parts(43_236, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_244
|
||||
.saturating_add(Weight::from_parts(180_187, 0).saturating_mul(p.into()))
|
||||
// Measured: `563 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `4008 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 25_507_000 picoseconds.
|
||||
Weight::from_parts(24_849_399, 4008)
|
||||
// Standard Error: 1_089
|
||||
.saturating_add(Weight::from_parts(40_933, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_062
|
||||
.saturating_add(Weight::from_parts(198_325, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 40_391_000 picoseconds.
|
||||
Weight::from_parts(42_695_215, 4149)
|
||||
// Standard Error: 167
|
||||
.saturating_add(Weight::from_parts(3_622, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_772
|
||||
.saturating_add(Weight::from_parts(33_830, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_727
|
||||
.saturating_add(Weight::from_parts(205_374, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
// Measured: `1010 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4327 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 43_927_000 picoseconds.
|
||||
Weight::from_parts(43_733_720, 4327)
|
||||
// Standard Error: 157
|
||||
.saturating_add(Weight::from_parts(3_737, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_664
|
||||
.saturating_add(Weight::from_parts(31_334, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_622
|
||||
.saturating_add(Weight::from_parts(222_964, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:0)
|
||||
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:0)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:0 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 31_368_000 picoseconds.
|
||||
Weight::from_parts(32_141_835, 3995)
|
||||
// Standard Error: 1_451
|
||||
.saturating_add(Weight::from_parts(36_372, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_415
|
||||
.saturating_add(Weight::from_parts(210_635, 0).saturating_mul(p.into()))
|
||||
// Measured: `583 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `4028 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 28_129_000 picoseconds.
|
||||
Weight::from_parts(26_799_151, 4028)
|
||||
// Standard Error: 1_325
|
||||
.saturating_add(Weight::from_parts(41_545, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_292
|
||||
.saturating_add(Weight::from_parts(224_499, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:0)
|
||||
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:0)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 43_271_000 picoseconds.
|
||||
Weight::from_parts(45_495_648, 4169)
|
||||
// Standard Error: 174
|
||||
.saturating_add(Weight::from_parts(3_034, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_840
|
||||
.saturating_add(Weight::from_parts(42_209, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_793
|
||||
.saturating_add(Weight::from_parts(207_525, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
// Measured: `1030 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4347 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 45_700_000 picoseconds.
|
||||
Weight::from_parts(45_661_144, 4347)
|
||||
// Standard Error: 149
|
||||
.saturating_add(Weight::from_parts(3_068, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_583
|
||||
.saturating_add(Weight::from_parts(36_426, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_543
|
||||
.saturating_add(Weight::from_parts(229_986, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:0 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:0 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:0 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn disapprove_proposal(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359 + p * (32 ±0)`
|
||||
// Estimated: `1844 + p * (32 ±0)`
|
||||
// Minimum execution time: 15_170_000 picoseconds.
|
||||
Weight::from_parts(17_567_243, 1844)
|
||||
// Standard Error: 1_430
|
||||
.saturating_add(Weight::from_parts(169_040, 0).saturating_mul(p.into()))
|
||||
// Measured: `392 + p * (32 ±0)`
|
||||
// Estimated: `1877 + p * (32 ±0)`
|
||||
// Minimum execution time: 13_163_000 picoseconds.
|
||||
Weight::from_parts(14_467_031, 1877)
|
||||
// Standard Error: 1_073
|
||||
.saturating_add(Weight::from_parts(190_879, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Council Members (r:1 w:1)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:0)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:100 w:100)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:0 w:1)
|
||||
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:100 w:100)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:0 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[0, 100]`.
|
||||
/// The range of component `n` is `[0, 100]`.
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_members(m: u32, _n: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
|
||||
// Estimated: `15861 + m * (1967 ±24) + p * (4332 ±24)`
|
||||
// Minimum execution time: 17_506_000 picoseconds.
|
||||
Weight::from_parts(17_767_000, 15861)
|
||||
// Standard Error: 60_220
|
||||
.saturating_add(Weight::from_parts(4_374_805, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 60_220
|
||||
.saturating_add(Weight::from_parts(8_398_316, 0).saturating_mul(p.into()))
|
||||
// Estimated: `15894 + m * (1967 ±24) + p * (4332 ±24)`
|
||||
// Minimum execution time: 15_780_000 picoseconds.
|
||||
Weight::from_parts(16_193_000, 15894)
|
||||
// Standard Error: 56_777
|
||||
.saturating_add(Weight::from_parts(4_269_920, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 56_777
|
||||
.saturating_add(Weight::from_parts(8_046_697, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
@@ -341,216 +356,232 @@ impl WeightInfo for () {
|
||||
.saturating_add(Weight::from_parts(0, 1967).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn execute(b: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `202 + m * (32 ±0)`
|
||||
// Estimated: `1688 + m * (32 ±0)`
|
||||
// Minimum execution time: 16_203_000 picoseconds.
|
||||
Weight::from_parts(15_348_267, 1688)
|
||||
// Standard Error: 37
|
||||
.saturating_add(Weight::from_parts(1_766, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 382
|
||||
.saturating_add(Weight::from_parts(15_765, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
// Measured: `380 + m * (32 ±0)`
|
||||
// Estimated: `3997 + m * (32 ±0)`
|
||||
// Minimum execution time: 19_760_000 picoseconds.
|
||||
Weight::from_parts(18_849_113, 3997)
|
||||
// Standard Error: 48
|
||||
.saturating_add(Weight::from_parts(2_076, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 501
|
||||
.saturating_add(Weight::from_parts(17_171, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:0)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:0)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `202 + m * (32 ±0)`
|
||||
// Estimated: `3668 + m * (32 ±0)`
|
||||
// Minimum execution time: 18_642_000 picoseconds.
|
||||
Weight::from_parts(17_708_609, 3668)
|
||||
// Standard Error: 58
|
||||
.saturating_add(Weight::from_parts(2_285, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 598
|
||||
.saturating_add(Weight::from_parts(30_454, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
// Measured: `380 + m * (32 ±0)`
|
||||
// Estimated: `3997 + m * (32 ±0)`
|
||||
// Minimum execution time: 21_535_000 picoseconds.
|
||||
Weight::from_parts(20_564_012, 3997)
|
||||
// Standard Error: 66
|
||||
.saturating_add(Weight::from_parts(2_252, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 689
|
||||
.saturating_add(Weight::from_parts(33_509, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalCount (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:0 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalCount` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalCount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:0 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `492 + m * (32 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3884 + m * (33 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 27_067_000 picoseconds.
|
||||
Weight::from_parts(25_456_964, 3884)
|
||||
// Standard Error: 112
|
||||
.saturating_add(Weight::from_parts(3_773, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_177
|
||||
.saturating_add(Weight::from_parts(32_783, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_162
|
||||
.saturating_add(Weight::from_parts(194_388, 0).saturating_mul(p.into()))
|
||||
// Measured: `525 + m * (32 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3917 + m * (33 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 22_759_000 picoseconds.
|
||||
Weight::from_parts(21_344_363, 3917)
|
||||
// Standard Error: 121
|
||||
.saturating_add(Weight::from_parts(3_231, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_265
|
||||
.saturating_add(Weight::from_parts(31_197, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_249
|
||||
.saturating_add(Weight::from_parts(200_231, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 33).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[5, 100]`.
|
||||
fn vote(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `941 + m * (64 ±0)`
|
||||
// Estimated: `4405 + m * (64 ±0)`
|
||||
// Minimum execution time: 26_055_000 picoseconds.
|
||||
Weight::from_parts(27_251_907, 4405)
|
||||
// Standard Error: 1_008
|
||||
.saturating_add(Weight::from_parts(65_947, 0).saturating_mul(m.into()))
|
||||
// Measured: `974 + m * (64 ±0)`
|
||||
// Estimated: `4438 + m * (64 ±0)`
|
||||
// Minimum execution time: 22_935_000 picoseconds.
|
||||
Weight::from_parts(23_694_302, 4438)
|
||||
// Standard Error: 959
|
||||
.saturating_add(Weight::from_parts(57_721, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:0 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `530 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3975 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 28_363_000 picoseconds.
|
||||
Weight::from_parts(28_733_464, 3975)
|
||||
// Standard Error: 1_275
|
||||
.saturating_add(Weight::from_parts(43_236, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_244
|
||||
.saturating_add(Weight::from_parts(180_187, 0).saturating_mul(p.into()))
|
||||
// Measured: `563 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `4008 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 25_507_000 picoseconds.
|
||||
Weight::from_parts(24_849_399, 4008)
|
||||
// Standard Error: 1_089
|
||||
.saturating_add(Weight::from_parts(40_933, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_062
|
||||
.saturating_add(Weight::from_parts(198_325, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `832 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4149 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 40_391_000 picoseconds.
|
||||
Weight::from_parts(42_695_215, 4149)
|
||||
// Standard Error: 167
|
||||
.saturating_add(Weight::from_parts(3_622, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_772
|
||||
.saturating_add(Weight::from_parts(33_830, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_727
|
||||
.saturating_add(Weight::from_parts(205_374, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
// Measured: `1010 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4327 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 43_927_000 picoseconds.
|
||||
Weight::from_parts(43_733_720, 4327)
|
||||
// Standard Error: 157
|
||||
.saturating_add(Weight::from_parts(3_737, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_664
|
||||
.saturating_add(Weight::from_parts(31_334, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_622
|
||||
.saturating_add(Weight::from_parts(222_964, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:0)
|
||||
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:0)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:0 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `550 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `3995 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 31_368_000 picoseconds.
|
||||
Weight::from_parts(32_141_835, 3995)
|
||||
// Standard Error: 1_451
|
||||
.saturating_add(Weight::from_parts(36_372, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_415
|
||||
.saturating_add(Weight::from_parts(210_635, 0).saturating_mul(p.into()))
|
||||
// Measured: `583 + m * (64 ±0) + p * (36 ±0)`
|
||||
// Estimated: `4028 + m * (65 ±0) + p * (36 ±0)`
|
||||
// Minimum execution time: 28_129_000 picoseconds.
|
||||
Weight::from_parts(26_799_151, 4028)
|
||||
// Standard Error: 1_325
|
||||
.saturating_add(Weight::from_parts(41_545, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_292
|
||||
.saturating_add(Weight::from_parts(224_499, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 65).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Voting (r:1 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Members (r:1 w:0)
|
||||
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Prime (r:1 w:0)
|
||||
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:1 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Voting` (r:1 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:1 w:0)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:0)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:1 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `b` is `[2, 1024]`.
|
||||
/// The range of component `m` is `[4, 100]`.
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `852 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4169 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 43_271_000 picoseconds.
|
||||
Weight::from_parts(45_495_648, 4169)
|
||||
// Standard Error: 174
|
||||
.saturating_add(Weight::from_parts(3_034, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_840
|
||||
.saturating_add(Weight::from_parts(42_209, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_793
|
||||
.saturating_add(Weight::from_parts(207_525, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
// Measured: `1030 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
||||
// Estimated: `4347 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
||||
// Minimum execution time: 45_700_000 picoseconds.
|
||||
Weight::from_parts(45_661_144, 4347)
|
||||
// Standard Error: 149
|
||||
.saturating_add(Weight::from_parts(3_068, 0).saturating_mul(b.into()))
|
||||
// Standard Error: 1_583
|
||||
.saturating_add(Weight::from_parts(36_426, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 1_543
|
||||
.saturating_add(Weight::from_parts(229_986, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: Council Proposals (r:1 w:1)
|
||||
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Council Voting (r:0 w:1)
|
||||
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Council ProposalOf (r:0 w:1)
|
||||
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Council::Proposals` (r:1 w:1)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Voting` (r:0 w:1)
|
||||
/// Proof: `Council::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::ProposalOf` (r:0 w:1)
|
||||
/// Proof: `Council::ProposalOf` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `p` is `[1, 100]`.
|
||||
fn disapprove_proposal(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359 + p * (32 ±0)`
|
||||
// Estimated: `1844 + p * (32 ±0)`
|
||||
// Minimum execution time: 15_170_000 picoseconds.
|
||||
Weight::from_parts(17_567_243, 1844)
|
||||
// Standard Error: 1_430
|
||||
.saturating_add(Weight::from_parts(169_040, 0).saturating_mul(p.into()))
|
||||
// Measured: `392 + p * (32 ±0)`
|
||||
// Estimated: `1877 + p * (32 ±0)`
|
||||
// Minimum execution time: 13_163_000 picoseconds.
|
||||
Weight::from_parts(14_467_031, 1877)
|
||||
// Standard Error: 1_073
|
||||
.saturating_add(Weight::from_parts(190_879, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(p.into()))
|
||||
|
||||
Generated
+625
-619
File diff suppressed because it is too large
Load Diff
+212
-193
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_conviction_voting
|
||||
//! Autogenerated weights for `pallet_conviction_voting`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/conviction-voting/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/conviction-voting/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_conviction_voting.
|
||||
/// Weight functions needed for `pallet_conviction_voting`.
|
||||
pub trait WeightInfo {
|
||||
fn vote_new() -> Weight;
|
||||
fn vote_existing() -> Weight;
|
||||
@@ -61,280 +60,300 @@ pub trait WeightInfo {
|
||||
fn unlock() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_conviction_voting using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// 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: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn vote_new() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `13074`
|
||||
// Measured: `13141`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 112_936_000 picoseconds.
|
||||
Weight::from_parts(116_972_000, 219984)
|
||||
// Minimum execution time: 114_422_000 picoseconds.
|
||||
Weight::from_parts(118_642_000, 219984)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// 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: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// 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: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn vote_existing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `20216`
|
||||
// Measured: `20283`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 291_971_000 picoseconds.
|
||||
Weight::from_parts(301_738_000, 219984)
|
||||
// Minimum execution time: 290_934_000 picoseconds.
|
||||
Weight::from_parts(303_286_000, 219984)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn remove_vote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `19968`
|
||||
// Measured: `20035`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 262_582_000 picoseconds.
|
||||
Weight::from_parts(270_955_000, 219984)
|
||||
// Minimum execution time: 277_464_000 picoseconds.
|
||||
Weight::from_parts(284_288_000, 219984)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `12675`
|
||||
// Measured: `12742`
|
||||
// Estimated: `30706`
|
||||
// Minimum execution time: 52_909_000 picoseconds.
|
||||
Weight::from_parts(56_365_000, 30706)
|
||||
// Minimum execution time: 54_538_000 picoseconds.
|
||||
Weight::from_parts(55_758_000, 30706)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// 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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `240 + r * (1627 ±0)`
|
||||
// Measured: `306 + r * (1628 ±0)`
|
||||
// Estimated: `109992 + r * (109992 ±0)`
|
||||
// Minimum execution time: 54_640_000 picoseconds.
|
||||
Weight::from_parts(57_185_281, 109992)
|
||||
// Standard Error: 193_362
|
||||
.saturating_add(Weight::from_parts(44_897_418, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 47_243_000 picoseconds.
|
||||
Weight::from_parts(50_023_534, 109992)
|
||||
// Standard Error: 228_993
|
||||
.saturating_add(Weight::from_parts(43_173_465, 0).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_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(T::DbWeight::get().writes((4_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
|
||||
}
|
||||
/// 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::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: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `406 + r * (1376 ±0)`
|
||||
// Measured: `472 + r * (1377 ±0)`
|
||||
// Estimated: `109992 + r * (109992 ±0)`
|
||||
// Minimum execution time: 26_514_000 picoseconds.
|
||||
Weight::from_parts(28_083_732, 109992)
|
||||
// Standard Error: 104_905
|
||||
.saturating_add(Weight::from_parts(40_722_467, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 23_529_000 picoseconds.
|
||||
Weight::from_parts(25_071_526, 109992)
|
||||
// Standard Error: 138_190
|
||||
.saturating_add(Weight::from_parts(40_350_973, 0).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(T::DbWeight::get().writes((4_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
|
||||
}
|
||||
/// 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: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, 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: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
fn unlock() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `11734`
|
||||
// Measured: `11800`
|
||||
// Estimated: `30706`
|
||||
// Minimum execution time: 71_140_000 picoseconds.
|
||||
Weight::from_parts(77_388_000, 30706)
|
||||
// Minimum execution time: 69_473_000 picoseconds.
|
||||
Weight::from_parts(71_519_000, 30706)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// 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: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn vote_new() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `13074`
|
||||
// Measured: `13141`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 112_936_000 picoseconds.
|
||||
Weight::from_parts(116_972_000, 219984)
|
||||
// Minimum execution time: 114_422_000 picoseconds.
|
||||
Weight::from_parts(118_642_000, 219984)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// 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: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// Proof: Scheduler Agenda (max_values: None, max_size: Some(107022), added: 109497, mode: MaxEncodedLen)
|
||||
/// 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: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Agenda` (r:2 w:2)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn vote_existing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `20216`
|
||||
// Measured: `20283`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 291_971_000 picoseconds.
|
||||
Weight::from_parts(301_738_000, 219984)
|
||||
// Minimum execution time: 290_934_000 picoseconds.
|
||||
Weight::from_parts(303_286_000, 219984)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn remove_vote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `19968`
|
||||
// Measured: `20035`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 262_582_000 picoseconds.
|
||||
Weight::from_parts(270_955_000, 219984)
|
||||
// Minimum execution time: 277_464_000 picoseconds.
|
||||
Weight::from_parts(284_288_000, 219984)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `12675`
|
||||
// Measured: `12742`
|
||||
// Estimated: `30706`
|
||||
// Minimum execution time: 52_909_000 picoseconds.
|
||||
Weight::from_parts(56_365_000, 30706)
|
||||
// Minimum execution time: 54_538_000 picoseconds.
|
||||
Weight::from_parts(55_758_000, 30706)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// 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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `240 + r * (1627 ±0)`
|
||||
// Measured: `306 + r * (1628 ±0)`
|
||||
// Estimated: `109992 + r * (109992 ±0)`
|
||||
// Minimum execution time: 54_640_000 picoseconds.
|
||||
Weight::from_parts(57_185_281, 109992)
|
||||
// Standard Error: 193_362
|
||||
.saturating_add(Weight::from_parts(44_897_418, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 47_243_000 picoseconds.
|
||||
Weight::from_parts(50_023_534, 109992)
|
||||
// Standard Error: 228_993
|
||||
.saturating_add(Weight::from_parts(43_173_465, 0).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_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(RocksDbWeight::get().writes((4_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
|
||||
}
|
||||
/// 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::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: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `406 + r * (1376 ±0)`
|
||||
// Measured: `472 + r * (1377 ±0)`
|
||||
// Estimated: `109992 + r * (109992 ±0)`
|
||||
// Minimum execution time: 26_514_000 picoseconds.
|
||||
Weight::from_parts(28_083_732, 109992)
|
||||
// Standard Error: 104_905
|
||||
.saturating_add(Weight::from_parts(40_722_467, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 23_529_000 picoseconds.
|
||||
Weight::from_parts(25_071_526, 109992)
|
||||
// Standard Error: 138_190
|
||||
.saturating_add(Weight::from_parts(40_350_973, 0).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(RocksDbWeight::get().writes((4_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_parts(0, 109992).saturating_mul(r.into()))
|
||||
}
|
||||
/// 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: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, 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: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
fn unlock() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `11734`
|
||||
// Measured: `11800`
|
||||
// Estimated: `30706`
|
||||
// Minimum execution time: 71_140_000 picoseconds.
|
||||
Weight::from_parts(77_388_000, 30706)
|
||||
// Minimum execution time: 69_473_000 picoseconds.
|
||||
Weight::from_parts(71_519_000, 30706)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
|
||||
+220
-213
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_core_fellowship
|
||||
//! Autogenerated weights for `pallet_core_fellowship`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/core-fellowship/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/core-fellowship/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_core_fellowship.
|
||||
/// Weight functions needed for `pallet_core_fellowship`.
|
||||
pub trait WeightInfo {
|
||||
fn set_params() -> Weight;
|
||||
fn bump_offboard() -> Weight;
|
||||
@@ -64,336 +63,344 @@ pub trait WeightInfo {
|
||||
fn submit_evidence() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_core_fellowship using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_core_fellowship` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: CoreFellowship Params (r:0 w:1)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Params` (r:0 w:1)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
|
||||
fn set_params() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_454_000 picoseconds.
|
||||
Weight::from_parts(9_804_000, 0)
|
||||
// Minimum execution time: 6_836_000 picoseconds.
|
||||
Weight::from_parts(7_057_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Params (r:1 w:0)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, 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:0)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Params` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, 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: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
|
||||
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
fn bump_offboard() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16887`
|
||||
// Measured: `17274`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 58_489_000 picoseconds.
|
||||
Weight::from_parts(60_202_000, 19894)
|
||||
// Minimum execution time: 55_535_000 picoseconds.
|
||||
Weight::from_parts(57_104_000, 19894)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Params (r:1 w:0)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, 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:0)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Params` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, 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: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
|
||||
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
fn bump_demote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16997`
|
||||
// Measured: `17384`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 60_605_000 picoseconds.
|
||||
Weight::from_parts(63_957_000, 19894)
|
||||
// Minimum execution time: 59_111_000 picoseconds.
|
||||
Weight::from_parts(61_394_000, 19894)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn set_active() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `388`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 17_816_000 picoseconds.
|
||||
Weight::from_parts(18_524_000, 3514)
|
||||
// Minimum execution time: 16_166_000 picoseconds.
|
||||
Weight::from_parts(16_773_000, 3514)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// 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)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// 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 induct() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `146`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 27_249_000 picoseconds.
|
||||
Weight::from_parts(28_049_000, 3514)
|
||||
// Minimum execution time: 25_508_000 picoseconds.
|
||||
Weight::from_parts(25_952_000, 3514)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Params (r:1 w:0)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, 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)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Params` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, 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 promote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16865`
|
||||
// Measured: `17252`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 56_642_000 picoseconds.
|
||||
Weight::from_parts(59_353_000, 19894)
|
||||
// Minimum execution time: 51_102_000 picoseconds.
|
||||
Weight::from_parts(53_302_000, 19894)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:0 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:0 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
fn offboard() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359`
|
||||
// Measured: `293`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 17_459_000 picoseconds.
|
||||
Weight::from_parts(18_033_000, 3514)
|
||||
// Minimum execution time: 16_035_000 picoseconds.
|
||||
Weight::from_parts(16_529_000, 3514)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
fn import() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `313`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 16_728_000 picoseconds.
|
||||
Weight::from_parts(17_263_000, 3514)
|
||||
// Minimum execution time: 14_966_000 picoseconds.
|
||||
Weight::from_parts(15_340_000, 3514)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
fn approve() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16843`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 41_487_000 picoseconds.
|
||||
Weight::from_parts(43_459_000, 19894)
|
||||
// Minimum execution time: 35_137_000 picoseconds.
|
||||
Weight::from_parts(36_285_000, 19894)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:0)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
fn submit_evidence() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `79`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 26_033_000 picoseconds.
|
||||
Weight::from_parts(26_612_000, 19894)
|
||||
// Minimum execution time: 24_307_000 picoseconds.
|
||||
Weight::from_parts(25_426_000, 19894)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: CoreFellowship Params (r:0 w:1)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Params` (r:0 w:1)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
|
||||
fn set_params() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_454_000 picoseconds.
|
||||
Weight::from_parts(9_804_000, 0)
|
||||
// Minimum execution time: 6_836_000 picoseconds.
|
||||
Weight::from_parts(7_057_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Params (r:1 w:0)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, 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:0)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Params` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, 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: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
|
||||
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
fn bump_offboard() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16887`
|
||||
// Measured: `17274`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 58_489_000 picoseconds.
|
||||
Weight::from_parts(60_202_000, 19894)
|
||||
// Minimum execution time: 55_535_000 picoseconds.
|
||||
Weight::from_parts(57_104_000, 19894)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Params (r:1 w:0)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, 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:0)
|
||||
/// Proof: RankedCollective IdToIndex (max_values: None, max_size: Some(54), added: 2529, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Params` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, 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: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:0 w:1)
|
||||
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
fn bump_demote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16997`
|
||||
// Measured: `17384`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 60_605_000 picoseconds.
|
||||
Weight::from_parts(63_957_000, 19894)
|
||||
// Minimum execution time: 59_111_000 picoseconds.
|
||||
Weight::from_parts(61_394_000, 19894)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn set_active() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `388`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 17_816_000 picoseconds.
|
||||
Weight::from_parts(18_524_000, 3514)
|
||||
// Minimum execution time: 16_166_000 picoseconds.
|
||||
Weight::from_parts(16_773_000, 3514)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// 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)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// 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 induct() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `146`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 27_249_000 picoseconds.
|
||||
Weight::from_parts(28_049_000, 3514)
|
||||
// Minimum execution time: 25_508_000 picoseconds.
|
||||
Weight::from_parts(25_952_000, 3514)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:1)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Params (r:1 w:0)
|
||||
/// Proof: CoreFellowship Params (max_values: Some(1), max_size: Some(364), added: 859, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective MemberCount (r:1 w:1)
|
||||
/// Proof: RankedCollective MemberCount (max_values: None, max_size: Some(14), added: 2489, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, 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)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Params` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Params` (`max_values`: Some(1), `max_size`: Some(364), added: 859, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::MemberCount` (r:1 w:1)
|
||||
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, 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 promote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16865`
|
||||
// Measured: `17252`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 56_642_000 picoseconds.
|
||||
Weight::from_parts(59_353_000, 19894)
|
||||
// Minimum execution time: 51_102_000 picoseconds.
|
||||
Weight::from_parts(53_302_000, 19894)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:0 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:0 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
fn offboard() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `359`
|
||||
// Measured: `293`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 17_459_000 picoseconds.
|
||||
Weight::from_parts(18_033_000, 3514)
|
||||
// Minimum execution time: 16_035_000 picoseconds.
|
||||
Weight::from_parts(16_529_000, 3514)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
fn import() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `313`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 16_728_000 picoseconds.
|
||||
Weight::from_parts(17_263_000, 3514)
|
||||
// Minimum execution time: 14_966_000 picoseconds.
|
||||
Weight::from_parts(15_340_000, 3514)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship Member (r:1 w:1)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
fn approve() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `16843`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 41_487_000 picoseconds.
|
||||
Weight::from_parts(43_459_000, 19894)
|
||||
// Minimum execution time: 35_137_000 picoseconds.
|
||||
Weight::from_parts(36_285_000, 19894)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: CoreFellowship Member (r:1 w:0)
|
||||
/// Proof: CoreFellowship Member (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: CoreFellowship MemberEvidence (r:1 w:1)
|
||||
/// Proof: CoreFellowship MemberEvidence (max_values: None, max_size: Some(16429), added: 18904, mode: MaxEncodedLen)
|
||||
/// Storage: `CoreFellowship::Member` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:1)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
fn submit_evidence() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `79`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 26_033_000 picoseconds.
|
||||
Weight::from_parts(26_612_000, 19894)
|
||||
// Minimum execution time: 24_307_000 picoseconds.
|
||||
Weight::from_parts(25_426_000, 19894)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+552
-541
File diff suppressed because it is too large
Load Diff
+264
-257
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_election_provider_multi_phase
|
||||
//! Autogenerated weights for `pallet_election_provider_multi_phase`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/election-provider-multi-phase/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/election-provider-multi-phase/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_election_provider_multi_phase.
|
||||
/// Weight functions needed for `pallet_election_provider_multi_phase`.
|
||||
pub trait WeightInfo {
|
||||
fn on_initialize_nothing() -> Weight;
|
||||
fn on_initialize_open_signed() -> Weight;
|
||||
@@ -64,169 +63,173 @@ pub trait WeightInfo {
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_election_provider_multi_phase using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1028`
|
||||
// Measured: `1061`
|
||||
// Estimated: `3481`
|
||||
// Minimum execution time: 22_089_000 picoseconds.
|
||||
Weight::from_parts(22_677_000, 3481)
|
||||
// Minimum execution time: 19_436_000 picoseconds.
|
||||
Weight::from_parts(20_138_000, 3481)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `148`
|
||||
// Estimated: `1633`
|
||||
// Minimum execution time: 11_986_000 picoseconds.
|
||||
Weight::from_parts(12_445_000, 1633)
|
||||
// Minimum execution time: 8_356_000 picoseconds.
|
||||
Weight::from_parts(8_708_000, 1633)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `148`
|
||||
// Estimated: `1633`
|
||||
// Minimum execution time: 12_988_000 picoseconds.
|
||||
Weight::from_parts(13_281_000, 1633)
|
||||
// Minimum execution time: 9_088_000 picoseconds.
|
||||
Weight::from_parts(9_382_000, 1633)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 32_659_000 picoseconds.
|
||||
Weight::from_parts(33_281_000, 3593)
|
||||
// Minimum execution time: 25_899_000 picoseconds.
|
||||
Weight::from_parts(26_456_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 22_471_000 picoseconds.
|
||||
Weight::from_parts(23_046_000, 3593)
|
||||
// Minimum execution time: 17_671_000 picoseconds.
|
||||
Weight::from_parts(18_131_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
|
||||
/// Proof: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 262_360_000 picoseconds.
|
||||
Weight::from_parts(279_313_000, 0)
|
||||
// Standard Error: 2_384
|
||||
.saturating_add(Weight::from_parts(176_415, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 251_900_000 picoseconds.
|
||||
Weight::from_parts(257_174_000, 0)
|
||||
// Standard Error: 1_606
|
||||
.saturating_add(Weight::from_parts(250_961, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionsMap` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
|
||||
/// Proof: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `371 + a * (768 ±0) + d * (48 ±0)`
|
||||
// Estimated: `3923 + a * (768 ±0) + d * (49 ±0)`
|
||||
// Minimum execution time: 301_283_000 picoseconds.
|
||||
Weight::from_parts(324_586_000, 3923)
|
||||
// Standard Error: 4_763
|
||||
.saturating_add(Weight::from_parts(279_812, 0).saturating_mul(a.into()))
|
||||
// Minimum execution time: 331_717_000 picoseconds.
|
||||
Weight::from_parts(29_922_189, 3923)
|
||||
// Standard Error: 9_972
|
||||
.saturating_add(Weight::from_parts(570_967, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 14_948
|
||||
.saturating_add(Weight::from_parts(159_043, 0).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8_u64))
|
||||
.saturating_add(Weight::from_parts(0, 768).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_parts(0, 49).saturating_mul(d.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`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::SignedSubmissionsMap` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn submit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `927`
|
||||
// Estimated: `2412`
|
||||
// Minimum execution time: 52_276_000 picoseconds.
|
||||
Weight::from_parts(53_846_000, 2412)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
// Minimum execution time: 44_129_000 picoseconds.
|
||||
Weight::from_parts(46_420_000, 2412)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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 Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (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::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`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]`.
|
||||
@@ -235,25 +238,25 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `253 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Estimated: `1738 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Minimum execution time: 5_448_459_000 picoseconds.
|
||||
Weight::from_parts(5_525_622_000, 1738)
|
||||
// Standard Error: 21_478
|
||||
.saturating_add(Weight::from_parts(256_345, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 63_648
|
||||
.saturating_add(Weight::from_parts(5_103_224, 0).saturating_mul(a.into()))
|
||||
// Minimum execution time: 5_585_830_000 picoseconds.
|
||||
Weight::from_parts(5_662_741_000, 1738)
|
||||
// Standard Error: 17_454
|
||||
.saturating_add(Weight::from_parts(352_514, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 51_723
|
||||
.saturating_add(Weight::from_parts(4_182_087, 0).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
|
||||
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
|
||||
}
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (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)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (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::DesiredTargets` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`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]`.
|
||||
@@ -262,180 +265,184 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `228 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Estimated: `1713 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Minimum execution time: 4_724_399_000 picoseconds.
|
||||
Weight::from_parts(4_886_472_000, 1713)
|
||||
// Standard Error: 15_220
|
||||
.saturating_add(Weight::from_parts(365_569, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 45_104
|
||||
.saturating_add(Weight::from_parts(3_176_675, 0).saturating_mul(a.into()))
|
||||
// Minimum execution time: 4_902_422_000 picoseconds.
|
||||
Weight::from_parts(5_001_852_000, 1713)
|
||||
// Standard Error: 15_536
|
||||
.saturating_add(Weight::from_parts(354_309, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 46_041
|
||||
.saturating_add(Weight::from_parts(3_090_094, 0).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
|
||||
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1028`
|
||||
// Measured: `1061`
|
||||
// Estimated: `3481`
|
||||
// Minimum execution time: 22_089_000 picoseconds.
|
||||
Weight::from_parts(22_677_000, 3481)
|
||||
// Minimum execution time: 19_436_000 picoseconds.
|
||||
Weight::from_parts(20_138_000, 3481)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `148`
|
||||
// Estimated: `1633`
|
||||
// Minimum execution time: 11_986_000 picoseconds.
|
||||
Weight::from_parts(12_445_000, 1633)
|
||||
// Minimum execution time: 8_356_000 picoseconds.
|
||||
Weight::from_parts(8_708_000, 1633)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `148`
|
||||
// Estimated: `1633`
|
||||
// Minimum execution time: 12_988_000 picoseconds.
|
||||
Weight::from_parts(13_281_000, 1633)
|
||||
// Minimum execution time: 9_088_000 picoseconds.
|
||||
Weight::from_parts(9_382_000, 1633)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 32_659_000 picoseconds.
|
||||
Weight::from_parts(33_281_000, 3593)
|
||||
// Minimum execution time: 25_899_000 picoseconds.
|
||||
Weight::from_parts(26_456_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 22_471_000 picoseconds.
|
||||
Weight::from_parts(23_046_000, 3593)
|
||||
// Minimum execution time: 17_671_000 picoseconds.
|
||||
Weight::from_parts(18_131_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
|
||||
/// Proof: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 262_360_000 picoseconds.
|
||||
Weight::from_parts(279_313_000, 0)
|
||||
// Standard Error: 2_384
|
||||
.saturating_add(Weight::from_parts(176_415, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 251_900_000 picoseconds.
|
||||
Weight::from_parts(257_174_000, 0)
|
||||
// Standard Error: 1_606
|
||||
.saturating_add(Weight::from_parts(250_961, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionsMap` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:0 w:1)
|
||||
/// Proof: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `371 + a * (768 ±0) + d * (48 ±0)`
|
||||
// Estimated: `3923 + a * (768 ±0) + d * (49 ±0)`
|
||||
// Minimum execution time: 301_283_000 picoseconds.
|
||||
Weight::from_parts(324_586_000, 3923)
|
||||
// Standard Error: 4_763
|
||||
.saturating_add(Weight::from_parts(279_812, 0).saturating_mul(a.into()))
|
||||
// Minimum execution time: 331_717_000 picoseconds.
|
||||
Weight::from_parts(29_922_189, 3923)
|
||||
// Standard Error: 9_972
|
||||
.saturating_add(Weight::from_parts(570_967, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 14_948
|
||||
.saturating_add(Weight::from_parts(159_043, 0).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8_u64))
|
||||
.saturating_add(Weight::from_parts(0, 768).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_parts(0, 49).saturating_mul(d.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionIndices` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionIndices` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionNextIndex` (`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::SignedSubmissionsMap` (r:0 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::SignedSubmissionsMap` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn submit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `927`
|
||||
// Estimated: `2412`
|
||||
// Minimum execution time: 52_276_000 picoseconds.
|
||||
Weight::from_parts(53_846_000, 2412)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
// Minimum execution time: 44_129_000 picoseconds.
|
||||
Weight::from_parts(46_420_000, 2412)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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 Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (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::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::DesiredTargets` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::QueuedSolution` (r:1 w:1)
|
||||
/// Proof: `ElectionProviderMultiPhase::QueuedSolution` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::SnapshotMetadata` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::SnapshotMetadata` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`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]`.
|
||||
@@ -444,25 +451,25 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `253 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Estimated: `1738 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Minimum execution time: 5_448_459_000 picoseconds.
|
||||
Weight::from_parts(5_525_622_000, 1738)
|
||||
// Standard Error: 21_478
|
||||
.saturating_add(Weight::from_parts(256_345, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 63_648
|
||||
.saturating_add(Weight::from_parts(5_103_224, 0).saturating_mul(a.into()))
|
||||
// Minimum execution time: 5_585_830_000 picoseconds.
|
||||
Weight::from_parts(5_662_741_000, 1738)
|
||||
// Standard Error: 17_454
|
||||
.saturating_add(Weight::from_parts(352_514, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 51_723
|
||||
.saturating_add(Weight::from_parts(4_182_087, 0).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
|
||||
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
|
||||
}
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (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)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (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::DesiredTargets` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::DesiredTargets` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Snapshot` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Snapshot` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::Round` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::Round` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `ElectionProviderMultiPhase::MinimumUntrustedScore` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::MinimumUntrustedScore` (`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]`.
|
||||
@@ -471,12 +478,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `228 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Estimated: `1713 + t * (32 ±0) + v * (553 ±0)`
|
||||
// Minimum execution time: 4_724_399_000 picoseconds.
|
||||
Weight::from_parts(4_886_472_000, 1713)
|
||||
// Standard Error: 15_220
|
||||
.saturating_add(Weight::from_parts(365_569, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 45_104
|
||||
.saturating_add(Weight::from_parts(3_176_675, 0).saturating_mul(a.into()))
|
||||
// Minimum execution time: 4_902_422_000 picoseconds.
|
||||
Weight::from_parts(5_001_852_000, 1713)
|
||||
// Standard Error: 15_536
|
||||
.saturating_add(Weight::from_parts(354_309, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 46_041
|
||||
.saturating_add(Weight::from_parts(3_090_094, 0).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(t.into()))
|
||||
.saturating_add(Weight::from_parts(0, 553).saturating_mul(v.into()))
|
||||
|
||||
+330
-325
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_elections_phragmen
|
||||
//! Autogenerated weights for `pallet_elections_phragmen`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/elections-phragmen/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/elections-phragmen/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_elections_phragmen.
|
||||
/// Weight functions needed for `pallet_elections_phragmen`.
|
||||
pub trait WeightInfo {
|
||||
fn vote_equal(v: u32, ) -> Weight;
|
||||
fn vote_more(v: u32, ) -> Weight;
|
||||
@@ -66,165 +65,165 @@ pub trait WeightInfo {
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_elections_phragmen using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[1, 16]`.
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + v * (80 ±0)`
|
||||
// Estimated: `4764 + v * (80 ±0)`
|
||||
// Minimum execution time: 33_028_000 picoseconds.
|
||||
Weight::from_parts(34_073_914, 4764)
|
||||
// Standard Error: 3_474
|
||||
.saturating_add(Weight::from_parts(205_252, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 30_160_000 picoseconds.
|
||||
Weight::from_parts(31_473_640, 4764)
|
||||
// Standard Error: 3_581
|
||||
.saturating_add(Weight::from_parts(135_663, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `371 + v * (80 ±0)`
|
||||
// Estimated: `4764 + v * (80 ±0)`
|
||||
// Minimum execution time: 45_725_000 picoseconds.
|
||||
Weight::from_parts(47_169_586, 4764)
|
||||
// Standard Error: 5_148
|
||||
.saturating_add(Weight::from_parts(213_742, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 41_429_000 picoseconds.
|
||||
Weight::from_parts(42_684_714, 4764)
|
||||
// Standard Error: 4_828
|
||||
.saturating_add(Weight::from_parts(173_254, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + v * (80 ±0)`
|
||||
// Estimated: `4764 + v * (80 ±0)`
|
||||
// Minimum execution time: 45_519_000 picoseconds.
|
||||
Weight::from_parts(47_339_108, 4764)
|
||||
// Standard Error: 5_501
|
||||
.saturating_add(Weight::from_parts(195_247, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 41_013_000 picoseconds.
|
||||
Weight::from_parts(42_555_632, 4764)
|
||||
// Standard Error: 4_627
|
||||
.saturating_add(Weight::from_parts(162_225, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
fn remove_voter() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `925`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 50_386_000 picoseconds.
|
||||
Weight::from_parts(51_378_000, 4764)
|
||||
// Minimum execution time: 43_431_000 picoseconds.
|
||||
Weight::from_parts(44_500_000, 4764)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:1)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `c` is `[1, 64]`.
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1570 + c * (48 ±0)`
|
||||
// Estimated: `3055 + c * (48 ±0)`
|
||||
// Minimum execution time: 38_987_000 picoseconds.
|
||||
Weight::from_parts(41_302_276, 3055)
|
||||
// Standard Error: 2_047
|
||||
.saturating_add(Weight::from_parts(125_200, 0).saturating_mul(c.into()))
|
||||
// Minimum execution time: 34_520_000 picoseconds.
|
||||
Weight::from_parts(35_911_881, 3055)
|
||||
// Standard Error: 1_885
|
||||
.saturating_add(Weight::from_parts(123_837, 0).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
|
||||
}
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:1)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `c` is `[1, 64]`.
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `285 + c * (48 ±0)`
|
||||
// Estimated: `1770 + c * (48 ±0)`
|
||||
// Minimum execution time: 33_510_000 picoseconds.
|
||||
Weight::from_parts(34_947_760, 1770)
|
||||
// Standard Error: 1_781
|
||||
.saturating_add(Weight::from_parts(78_851, 0).saturating_mul(c.into()))
|
||||
// Minimum execution time: 28_020_000 picoseconds.
|
||||
Weight::from_parts(29_227_248, 1770)
|
||||
// Standard Error: 1_202
|
||||
.saturating_add(Weight::from_parts(83_328, 0).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:1)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:1)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:0 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn renounce_candidacy_members() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1900`
|
||||
// Estimated: `3385`
|
||||
// Minimum execution time: 50_603_000 picoseconds.
|
||||
Weight::from_parts(51_715_000, 3385)
|
||||
// Measured: `1933`
|
||||
// Estimated: `3418`
|
||||
// Minimum execution time: 42_489_000 picoseconds.
|
||||
Weight::from_parts(43_710_000, 3418)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:1)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn renounce_candidacy_runners_up() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `880`
|
||||
// Estimated: `2365`
|
||||
// Minimum execution time: 33_441_000 picoseconds.
|
||||
Weight::from_parts(34_812_000, 2365)
|
||||
// Minimum execution time: 29_228_000 picoseconds.
|
||||
Weight::from_parts(30_343_000, 2365)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Benchmark Override (r:0 w:0)
|
||||
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Benchmark::Override` (r:0 w:0)
|
||||
/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
@@ -232,87 +231,90 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Minimum execution time: 2_000_000_000_000 picoseconds.
|
||||
Weight::from_parts(2_000_000_000_000, 0)
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:1)
|
||||
/// Proof: `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: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:0 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn remove_member_with_replacement() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1900`
|
||||
// Measured: `1933`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 57_289_000 picoseconds.
|
||||
Weight::from_parts(58_328_000, 3593)
|
||||
// Minimum execution time: 46_909_000 picoseconds.
|
||||
Weight::from_parts(47_907_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: Elections Voting (r:513 w:512)
|
||||
/// 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:512 w:512)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:512 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:512 w:512)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Voting` (r:257 w:256)
|
||||
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Balances::Locks` (r:256 w:256)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:256 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:256 w:256)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[256, 512]`.
|
||||
/// The range of component `d` is `[0, 256]`.
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
fn clean_defunct_voters(v: u32, d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1149 + v * (811 ±0)`
|
||||
// Estimated: `4621 + v * (3774 ±0)`
|
||||
// Minimum execution time: 18_774_231_000 picoseconds.
|
||||
Weight::from_parts(18_933_040_000, 4621)
|
||||
// Standard Error: 301_534
|
||||
.saturating_add(Weight::from_parts(44_306_903, 0).saturating_mul(v.into()))
|
||||
// Measured: `0 + d * (818 ±0) + v * (57 ±0)`
|
||||
// Estimated: `24906 + d * (3774 ±0) + v * (24 ±0)`
|
||||
// Minimum execution time: 5_175_000 picoseconds.
|
||||
Weight::from_parts(5_797_000, 24906)
|
||||
// Standard Error: 10_951
|
||||
.saturating_add(Weight::from_parts(39_675, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 23_850
|
||||
.saturating_add(Weight::from_parts(53_959_224, 0).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(d.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(d.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(d.into()))
|
||||
.saturating_add(Weight::from_parts(0, 24).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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:513 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:44 w:44)
|
||||
/// 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)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:1)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:1)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:1)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:513 w:0)
|
||||
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `System::Account` (r:44 w:44)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Elections::ElectionRounds` (r:1 w:1)
|
||||
/// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:0 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:0 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `c` is `[1, 64]`.
|
||||
/// The range of component `v` is `[1, 512]`.
|
||||
/// The range of component `e` is `[512, 8192]`.
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + e * (28 ±0) + v * (606 ±0)`
|
||||
// Estimated: `178887 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
|
||||
// Minimum execution time: 1_281_877_000 picoseconds.
|
||||
Weight::from_parts(1_288_147_000, 178887)
|
||||
// Standard Error: 528_851
|
||||
.saturating_add(Weight::from_parts(17_761_407, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 33_932
|
||||
.saturating_add(Weight::from_parts(698_277, 0).saturating_mul(e.into()))
|
||||
// Estimated: `178920 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
|
||||
// Minimum execution time: 1_136_994_000 picoseconds.
|
||||
Weight::from_parts(1_142_143_000, 178920)
|
||||
// Standard Error: 595_387
|
||||
.saturating_add(Weight::from_parts(19_373_386, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 38_201
|
||||
.saturating_add(Weight::from_parts(797_696, 0).saturating_mul(e.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(21_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())))
|
||||
@@ -324,164 +326,164 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[1, 16]`.
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + v * (80 ±0)`
|
||||
// Estimated: `4764 + v * (80 ±0)`
|
||||
// Minimum execution time: 33_028_000 picoseconds.
|
||||
Weight::from_parts(34_073_914, 4764)
|
||||
// Standard Error: 3_474
|
||||
.saturating_add(Weight::from_parts(205_252, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 30_160_000 picoseconds.
|
||||
Weight::from_parts(31_473_640, 4764)
|
||||
// Standard Error: 3_581
|
||||
.saturating_add(Weight::from_parts(135_663, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `371 + v * (80 ±0)`
|
||||
// Estimated: `4764 + v * (80 ±0)`
|
||||
// Minimum execution time: 45_725_000 picoseconds.
|
||||
Weight::from_parts(47_169_586, 4764)
|
||||
// Standard Error: 5_148
|
||||
.saturating_add(Weight::from_parts(213_742, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 41_429_000 picoseconds.
|
||||
Weight::from_parts(42_684_714, 4764)
|
||||
// Standard Error: 4_828
|
||||
.saturating_add(Weight::from_parts(173_254, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[2, 16]`.
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + v * (80 ±0)`
|
||||
// Estimated: `4764 + v * (80 ±0)`
|
||||
// Minimum execution time: 45_519_000 picoseconds.
|
||||
Weight::from_parts(47_339_108, 4764)
|
||||
// Standard Error: 5_501
|
||||
.saturating_add(Weight::from_parts(195_247, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 41_013_000 picoseconds.
|
||||
Weight::from_parts(42_555_632, 4764)
|
||||
// Standard Error: 4_627
|
||||
.saturating_add(Weight::from_parts(162_225, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 80).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Voting` (r:1 w:1)
|
||||
/// Proof: `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`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
fn remove_voter() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `925`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 50_386_000 picoseconds.
|
||||
Weight::from_parts(51_378_000, 4764)
|
||||
// Minimum execution time: 43_431_000 picoseconds.
|
||||
Weight::from_parts(44_500_000, 4764)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:1)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `c` is `[1, 64]`.
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1570 + c * (48 ±0)`
|
||||
// Estimated: `3055 + c * (48 ±0)`
|
||||
// Minimum execution time: 38_987_000 picoseconds.
|
||||
Weight::from_parts(41_302_276, 3055)
|
||||
// Standard Error: 2_047
|
||||
.saturating_add(Weight::from_parts(125_200, 0).saturating_mul(c.into()))
|
||||
// Minimum execution time: 34_520_000 picoseconds.
|
||||
Weight::from_parts(35_911_881, 3055)
|
||||
// Standard Error: 1_885
|
||||
.saturating_add(Weight::from_parts(123_837, 0).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
|
||||
}
|
||||
/// Storage: Elections Candidates (r:1 w:1)
|
||||
/// Proof Skipped: Elections Candidates (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:1)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `c` is `[1, 64]`.
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `285 + c * (48 ±0)`
|
||||
// Estimated: `1770 + c * (48 ±0)`
|
||||
// Minimum execution time: 33_510_000 picoseconds.
|
||||
Weight::from_parts(34_947_760, 1770)
|
||||
// Standard Error: 1_781
|
||||
.saturating_add(Weight::from_parts(78_851, 0).saturating_mul(c.into()))
|
||||
// Minimum execution time: 28_020_000 picoseconds.
|
||||
Weight::from_parts(29_227_248, 1770)
|
||||
// Standard Error: 1_202
|
||||
.saturating_add(Weight::from_parts(83_328, 0).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 48).saturating_mul(c.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:1)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:1)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:0 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn renounce_candidacy_members() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1900`
|
||||
// Estimated: `3385`
|
||||
// Minimum execution time: 50_603_000 picoseconds.
|
||||
Weight::from_parts(51_715_000, 3385)
|
||||
// Measured: `1933`
|
||||
// Estimated: `3418`
|
||||
// Minimum execution time: 42_489_000 picoseconds.
|
||||
Weight::from_parts(43_710_000, 3418)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Elections RunnersUp (r:1 w:1)
|
||||
/// Proof Skipped: Elections RunnersUp (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:1)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn renounce_candidacy_runners_up() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `880`
|
||||
// Estimated: `2365`
|
||||
// Minimum execution time: 33_441_000 picoseconds.
|
||||
Weight::from_parts(34_812_000, 2365)
|
||||
// Minimum execution time: 29_228_000 picoseconds.
|
||||
Weight::from_parts(30_343_000, 2365)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Benchmark Override (r:0 w:0)
|
||||
/// Proof Skipped: Benchmark Override (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Benchmark::Override` (r:0 w:0)
|
||||
/// Proof: `Benchmark::Override` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
@@ -489,87 +491,90 @@ impl WeightInfo for () {
|
||||
// Minimum execution time: 2_000_000_000_000 picoseconds.
|
||||
Weight::from_parts(2_000_000_000_000, 0)
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:1)
|
||||
/// Proof: `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: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:1 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:0 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn remove_member_with_replacement() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1900`
|
||||
// Measured: `1933`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 57_289_000 picoseconds.
|
||||
Weight::from_parts(58_328_000, 3593)
|
||||
// Minimum execution time: 46_909_000 picoseconds.
|
||||
Weight::from_parts(47_907_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: Elections Voting (r:513 w:512)
|
||||
/// 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:512 w:512)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:512 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:512 w:512)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Elections::Voting` (r:257 w:256)
|
||||
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:0)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:0)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Balances::Locks` (r:256 w:256)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:256 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:256 w:256)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// The range of component `v` is `[256, 512]`.
|
||||
/// The range of component `d` is `[0, 256]`.
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
fn clean_defunct_voters(v: u32, d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1149 + v * (811 ±0)`
|
||||
// Estimated: `4621 + v * (3774 ±0)`
|
||||
// Minimum execution time: 18_774_231_000 picoseconds.
|
||||
Weight::from_parts(18_933_040_000, 4621)
|
||||
// Standard Error: 301_534
|
||||
.saturating_add(Weight::from_parts(44_306_903, 0).saturating_mul(v.into()))
|
||||
// Measured: `0 + d * (818 ±0) + v * (57 ±0)`
|
||||
// Estimated: `24906 + d * (3774 ±0) + v * (24 ±0)`
|
||||
// Minimum execution time: 5_175_000 picoseconds.
|
||||
Weight::from_parts(5_797_000, 24906)
|
||||
// Standard Error: 10_951
|
||||
.saturating_add(Weight::from_parts(39_675, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 23_850
|
||||
.saturating_add(Weight::from_parts(53_959_224, 0).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(v.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(d.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(d.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(d.into()))
|
||||
.saturating_add(Weight::from_parts(0, 24).saturating_mul(v.into()))
|
||||
}
|
||||
/// 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:513 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:44 w:44)
|
||||
/// 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)
|
||||
/// Storage: `Elections::Candidates` (r:1 w:1)
|
||||
/// Proof: `Elections::Candidates` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:1)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::RunnersUp` (r:1 w:1)
|
||||
/// Proof: `Elections::RunnersUp` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Voting` (r:513 w:0)
|
||||
/// Proof: `Elections::Voting` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Proposals` (r:1 w:0)
|
||||
/// Proof: `Council::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `System::Account` (r:44 w:44)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Elections::ElectionRounds` (r:1 w:1)
|
||||
/// Proof: `Elections::ElectionRounds` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Members` (r:0 w:1)
|
||||
/// Proof: `Council::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Council::Prime` (r:0 w:1)
|
||||
/// Proof: `Council::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `c` is `[1, 64]`.
|
||||
/// The range of component `v` is `[1, 512]`.
|
||||
/// The range of component `e` is `[512, 8192]`.
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + e * (28 ±0) + v * (606 ±0)`
|
||||
// Estimated: `178887 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
|
||||
// Minimum execution time: 1_281_877_000 picoseconds.
|
||||
Weight::from_parts(1_288_147_000, 178887)
|
||||
// Standard Error: 528_851
|
||||
.saturating_add(Weight::from_parts(17_761_407, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 33_932
|
||||
.saturating_add(Weight::from_parts(698_277, 0).saturating_mul(e.into()))
|
||||
// Estimated: `178920 + c * (2135 ±7) + e * (12 ±0) + v * (2653 ±6)`
|
||||
// Minimum execution time: 1_136_994_000 picoseconds.
|
||||
Weight::from_parts(1_142_143_000, 178920)
|
||||
// Standard Error: 595_387
|
||||
.saturating_add(Weight::from_parts(19_373_386, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 38_201
|
||||
.saturating_add(Weight::from_parts(797_696, 0).saturating_mul(e.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(21_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(c.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
|
||||
+244
-237
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_fast_unstake
|
||||
//! Autogenerated weights for `pallet_fast_unstake`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/fast-unstake/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/fast-unstake/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_fast_unstake.
|
||||
/// Weight functions needed for `pallet_fast_unstake`.
|
||||
pub trait WeightInfo {
|
||||
fn on_idle_unstake(b: u32, ) -> Weight;
|
||||
fn on_idle_check(v: u32, b: u32, ) -> Weight;
|
||||
@@ -59,301 +58,309 @@ pub trait WeightInfo {
|
||||
fn control() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_fast_unstake using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_fast_unstake` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ValidatorCount (r:1 w:0)
|
||||
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:1)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking SlashingSpans (r:64 w:0)
|
||||
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Staking Bonded (r:64 w:64)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Validators (r:64 w:0)
|
||||
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Nominators (r:64 w:0)
|
||||
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:64 w:64)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:64 w:64)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:64 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:0 w:64)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Payee (r:0 w:64)
|
||||
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
|
||||
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::CurrentEra` (r:1 w:0)
|
||||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::SlashingSpans` (r:64 w:0)
|
||||
/// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::Bonded` (r:64 w:64)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:64 w:64)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:64 w:64)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:64 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:64 w:64)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Validators` (r:64 w:0)
|
||||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Nominators` (r:64 w:0)
|
||||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Payee` (r:0 w:64)
|
||||
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
/// The range of component `b` is `[1, 64]`.
|
||||
fn on_idle_unstake(b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1378 + b * (343 ±0)`
|
||||
// Measured: `1475 + b * (452 ±0)`
|
||||
// Estimated: `7253 + b * (3774 ±0)`
|
||||
// Minimum execution time: 92_847_000 picoseconds.
|
||||
Weight::from_parts(42_300_813, 7253)
|
||||
// Standard Error: 40_514
|
||||
.saturating_add(Weight::from_parts(58_412_402, 0).saturating_mul(b.into()))
|
||||
// Minimum execution time: 84_536_000 picoseconds.
|
||||
Weight::from_parts(41_949_894, 7253)
|
||||
// Standard Error: 28_494
|
||||
.saturating_add(Weight::from_parts(52_945_820, 0).saturating_mul(b.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((7_u64).saturating_mul(b.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((8_u64).saturating_mul(b.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(b.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ValidatorCount (r:1 w:0)
|
||||
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:1)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ErasStakers (r:257 w:0)
|
||||
/// Proof Skipped: Staking ErasStakers (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
|
||||
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::CurrentEra` (r:1 w:0)
|
||||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ErasStakers` (r:1 w:0)
|
||||
/// Proof: `Staking::ErasStakers` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::ErasStakersPaged` (r:257 w:0)
|
||||
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `v` is `[1, 256]`.
|
||||
/// The range of component `b` is `[1, 64]`.
|
||||
fn on_idle_check(v: u32, b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1546 + b * (48 ±0) + v * (10037 ±0)`
|
||||
// Estimated: `7253 + b * (49 ±0) + v * (12513 ±0)`
|
||||
// Minimum execution time: 1_685_784_000 picoseconds.
|
||||
Weight::from_parts(1_693_370_000, 7253)
|
||||
// Standard Error: 13_295_842
|
||||
.saturating_add(Weight::from_parts(425_349_148, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 53_198_180
|
||||
.saturating_add(Weight::from_parts(1_673_328_444, 0).saturating_mul(b.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
// Measured: `1879 + b * (55 ±0) + v * (10055 ±0)`
|
||||
// Estimated: `7253 + b * (56 ±0) + v * (12531 ±0)`
|
||||
// Minimum execution time: 1_745_807_000 picoseconds.
|
||||
Weight::from_parts(1_757_648_000, 7253)
|
||||
// Standard Error: 12_994_693
|
||||
.saturating_add(Weight::from_parts(416_410_247, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 51_993_247
|
||||
.saturating_add(Weight::from_parts(1_654_551_441, 0).saturating_mul(b.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 49).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 12513).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_parts(0, 56).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 12531).saturating_mul(v.into()))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:1)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Queue (r:1 w:1)
|
||||
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:0)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Validators (r:1 w:0)
|
||||
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Nominators (r:1 w:1)
|
||||
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:1 w:1)
|
||||
/// 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)
|
||||
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:1 w:1)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Queue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Validators` (r:1 w:0)
|
||||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Nominators` (r:1 w:1)
|
||||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::CounterForNominators` (r:1 w:1)
|
||||
/// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `VoterList::ListNodes` (r:1 w:1)
|
||||
/// 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`)
|
||||
/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
|
||||
/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::CurrentEra` (r:1 w:0)
|
||||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn register_fast_unstake() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1964`
|
||||
// Measured: `1955`
|
||||
// Estimated: `7253`
|
||||
// Minimum execution time: 125_512_000 picoseconds.
|
||||
Weight::from_parts(129_562_000, 7253)
|
||||
// Minimum execution time: 136_437_000 picoseconds.
|
||||
Weight::from_parts(138_827_000, 7253)
|
||||
.saturating_add(T::DbWeight::get().reads(15_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(9_u64))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Queue (r:1 w:1)
|
||||
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:0)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:1 w:0)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Queue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn deregister() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1223`
|
||||
// Measured: `1350`
|
||||
// Estimated: `7253`
|
||||
// Minimum execution time: 43_943_000 picoseconds.
|
||||
Weight::from_parts(45_842_000, 7253)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
// Minimum execution time: 45_337_000 picoseconds.
|
||||
Weight::from_parts(47_359_000, 7253)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:0 w:1)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn control() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_677_000 picoseconds.
|
||||
Weight::from_parts(2_849_000, 0)
|
||||
// Minimum execution time: 2_258_000 picoseconds.
|
||||
Weight::from_parts(2_406_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ValidatorCount (r:1 w:0)
|
||||
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:1)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking SlashingSpans (r:64 w:0)
|
||||
/// Proof Skipped: Staking SlashingSpans (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: Staking Bonded (r:64 w:64)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Validators (r:64 w:0)
|
||||
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Nominators (r:64 w:0)
|
||||
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:64 w:64)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:64 w:64)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:64 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:0 w:64)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Payee (r:0 w:64)
|
||||
/// Proof: Staking Payee (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
|
||||
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::CurrentEra` (r:1 w:0)
|
||||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::SlashingSpans` (r:64 w:0)
|
||||
/// Proof: `Staking::SlashingSpans` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::Bonded` (r:64 w:64)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:64 w:64)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:64 w:64)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:64 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:64 w:64)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Validators` (r:64 w:0)
|
||||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Nominators` (r:64 w:0)
|
||||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Payee` (r:0 w:64)
|
||||
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
/// The range of component `b` is `[1, 64]`.
|
||||
fn on_idle_unstake(b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1378 + b * (343 ±0)`
|
||||
// Measured: `1475 + b * (452 ±0)`
|
||||
// Estimated: `7253 + b * (3774 ±0)`
|
||||
// Minimum execution time: 92_847_000 picoseconds.
|
||||
Weight::from_parts(42_300_813, 7253)
|
||||
// Standard Error: 40_514
|
||||
.saturating_add(Weight::from_parts(58_412_402, 0).saturating_mul(b.into()))
|
||||
// Minimum execution time: 84_536_000 picoseconds.
|
||||
Weight::from_parts(41_949_894, 7253)
|
||||
// Standard Error: 28_494
|
||||
.saturating_add(Weight::from_parts(52_945_820, 0).saturating_mul(b.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((7_u64).saturating_mul(b.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((8_u64).saturating_mul(b.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((5_u64).saturating_mul(b.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3774).saturating_mul(b.into()))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ValidatorCount (r:1 w:0)
|
||||
/// Proof: Staking ValidatorCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:1)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:0)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ErasStakers (r:257 w:0)
|
||||
/// Proof Skipped: Staking ErasStakers (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ValidatorCount` (r:1 w:0)
|
||||
/// Proof: `Staking::ValidatorCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `ElectionProviderMultiPhase::CurrentPhase` (r:1 w:0)
|
||||
/// Proof: `ElectionProviderMultiPhase::CurrentPhase` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::CurrentEra` (r:1 w:0)
|
||||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::ErasStakers` (r:1 w:0)
|
||||
/// Proof: `Staking::ErasStakers` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Staking::ErasStakersPaged` (r:257 w:0)
|
||||
/// Proof: `Staking::ErasStakersPaged` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `v` is `[1, 256]`.
|
||||
/// The range of component `b` is `[1, 64]`.
|
||||
fn on_idle_check(v: u32, b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1546 + b * (48 ±0) + v * (10037 ±0)`
|
||||
// Estimated: `7253 + b * (49 ±0) + v * (12513 ±0)`
|
||||
// Minimum execution time: 1_685_784_000 picoseconds.
|
||||
Weight::from_parts(1_693_370_000, 7253)
|
||||
// Standard Error: 13_295_842
|
||||
.saturating_add(Weight::from_parts(425_349_148, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 53_198_180
|
||||
.saturating_add(Weight::from_parts(1_673_328_444, 0).saturating_mul(b.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
// Measured: `1879 + b * (55 ±0) + v * (10055 ±0)`
|
||||
// Estimated: `7253 + b * (56 ±0) + v * (12531 ±0)`
|
||||
// Minimum execution time: 1_745_807_000 picoseconds.
|
||||
Weight::from_parts(1_757_648_000, 7253)
|
||||
// Standard Error: 12_994_693
|
||||
.saturating_add(Weight::from_parts(416_410_247, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 51_993_247
|
||||
.saturating_add(Weight::from_parts(1_654_551_441, 0).saturating_mul(b.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 49).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 12513).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_parts(0, 56).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(0, 12531).saturating_mul(v.into()))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:1)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Queue (r:1 w:1)
|
||||
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:0)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Bonded (r:1 w:0)
|
||||
/// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Validators (r:1 w:0)
|
||||
/// Proof: Staking Validators (max_values: None, max_size: Some(45), added: 2520, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Nominators (r:1 w:1)
|
||||
/// Proof: Staking Nominators (max_values: None, max_size: Some(558), added: 3033, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
/// Proof: Staking CounterForNominators (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: VoterList ListNodes (r:1 w:1)
|
||||
/// 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)
|
||||
/// Storage: VoterList CounterForListNodes (r:1 w:1)
|
||||
/// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Locks (r:1 w:1)
|
||||
/// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Freezes (r:1 w:0)
|
||||
/// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:1 w:1)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Queue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Validators` (r:1 w:0)
|
||||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Nominators` (r:1 w:1)
|
||||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::CounterForNominators` (r:1 w:1)
|
||||
/// Proof: `Staking::CounterForNominators` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `VoterList::ListNodes` (r:1 w:1)
|
||||
/// 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`)
|
||||
/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
|
||||
/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::CurrentEra` (r:1 w:0)
|
||||
/// Proof: `Staking::CurrentEra` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn register_fast_unstake() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1964`
|
||||
// Measured: `1955`
|
||||
// Estimated: `7253`
|
||||
// Minimum execution time: 125_512_000 picoseconds.
|
||||
Weight::from_parts(129_562_000, 7253)
|
||||
// Minimum execution time: 136_437_000 picoseconds.
|
||||
Weight::from_parts(138_827_000, 7253)
|
||||
.saturating_add(RocksDbWeight::get().reads(15_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(9_u64))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:1 w:0)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking Ledger (r:1 w:0)
|
||||
/// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Queue (r:1 w:1)
|
||||
/// Proof: FastUnstake Queue (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake Head (r:1 w:0)
|
||||
/// Proof: FastUnstake Head (max_values: Some(1), max_size: Some(5768), added: 6263, mode: MaxEncodedLen)
|
||||
/// Storage: FastUnstake CounterForQueue (r:1 w:1)
|
||||
/// Proof: FastUnstake CounterForQueue (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:1 w:0)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Queue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::Queue` (`max_values`: None, `max_size`: Some(56), added: 2531, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::Head` (r:1 w:0)
|
||||
/// Proof: `FastUnstake::Head` (`max_values`: Some(1), `max_size`: Some(5768), added: 6263, mode: `MaxEncodedLen`)
|
||||
/// Storage: `FastUnstake::CounterForQueue` (r:1 w:1)
|
||||
/// Proof: `FastUnstake::CounterForQueue` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn deregister() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1223`
|
||||
// Measured: `1350`
|
||||
// Estimated: `7253`
|
||||
// Minimum execution time: 43_943_000 picoseconds.
|
||||
Weight::from_parts(45_842_000, 7253)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
// Minimum execution time: 45_337_000 picoseconds.
|
||||
Weight::from_parts(47_359_000, 7253)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: FastUnstake ErasToCheckPerBlock (r:0 w:1)
|
||||
/// Proof: FastUnstake ErasToCheckPerBlock (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `FastUnstake::ErasToCheckPerBlock` (r:0 w:1)
|
||||
/// Proof: `FastUnstake::ErasToCheckPerBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn control() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_677_000 picoseconds.
|
||||
Weight::from_parts(2_849_000, 0)
|
||||
// Minimum execution time: 2_258_000 picoseconds.
|
||||
Weight::from_parts(2_406_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+124
-125
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_glutton
|
||||
//! Autogenerated weights for `pallet_glutton`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/glutton/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/glutton/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_glutton.
|
||||
/// Weight functions needed for `pallet_glutton`.
|
||||
pub trait WeightInfo {
|
||||
fn initialize_pallet_grow(n: u32, ) -> Weight;
|
||||
fn initialize_pallet_shrink(n: u32, ) -> Weight;
|
||||
@@ -63,39 +62,39 @@ pub trait WeightInfo {
|
||||
fn set_storage() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_glutton using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_glutton` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Glutton TrashDataCount (r:1 w:1)
|
||||
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:0 w:1000)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
|
||||
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:0 w:1000)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn initialize_pallet_grow(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `86`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 11_488_000 picoseconds.
|
||||
Weight::from_parts(93_073_710, 1489)
|
||||
// Standard Error: 22_390
|
||||
.saturating_add(Weight::from_parts(9_572_012, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 8_453_000 picoseconds.
|
||||
Weight::from_parts(5_470_386, 1489)
|
||||
// Standard Error: 4_723
|
||||
.saturating_add(Weight::from_parts(10_418_732, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
}
|
||||
/// Storage: Glutton TrashDataCount (r:1 w:1)
|
||||
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:0 w:1000)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
|
||||
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:0 w:1000)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn initialize_pallet_shrink(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `119`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 11_378_000 picoseconds.
|
||||
Weight::from_parts(5_591_508, 1489)
|
||||
// Standard Error: 1_592
|
||||
.saturating_add(Weight::from_parts(1_163_758, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 8_646_000 picoseconds.
|
||||
Weight::from_parts(7_948_965, 1489)
|
||||
// Standard Error: 2_154
|
||||
.saturating_add(Weight::from_parts(1_197_352, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
@@ -105,119 +104,119 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 669_000 picoseconds.
|
||||
Weight::from_parts(990_745, 0)
|
||||
// Standard Error: 10
|
||||
.saturating_add(Weight::from_parts(105_224, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 643_000 picoseconds.
|
||||
Weight::from_parts(4_035_744, 0)
|
||||
// Standard Error: 14
|
||||
.saturating_add(Weight::from_parts(105_406, 0).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Glutton TrashData (r:5000 w:0)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::TrashData` (r:5000 w:0)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
/// The range of component `i` is `[0, 5000]`.
|
||||
fn waste_proof_size_some(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `119114 + i * (1022 ±0)`
|
||||
// Estimated: `990 + i * (3016 ±0)`
|
||||
// Minimum execution time: 435_000 picoseconds.
|
||||
Weight::from_parts(66_547_542, 990)
|
||||
// Standard Error: 4_557
|
||||
.saturating_add(Weight::from_parts(5_851_324, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 228_000 picoseconds.
|
||||
Weight::from_parts(62_060_711, 990)
|
||||
// Standard Error: 5_638
|
||||
.saturating_add(Weight::from_parts(5_970_065, 0).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3016).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:1 w:0)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton Compute (r:1 w:0)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:1737 w:0)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:1 w:0)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::Compute` (r:1 w:0)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:1737 w:0)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
fn on_idle_high_proof_waste() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1900497`
|
||||
// Estimated: `5239782`
|
||||
// Minimum execution time: 67_699_845_000 picoseconds.
|
||||
Weight::from_parts(67_893_204_000, 5239782)
|
||||
// Minimum execution time: 57_557_511_000 picoseconds.
|
||||
Weight::from_parts(57_644_868_000, 5239782)
|
||||
.saturating_add(T::DbWeight::get().reads(1739_u64))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:1 w:0)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton Compute (r:1 w:0)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:5 w:0)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:1 w:0)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::Compute` (r:1 w:0)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:5 w:0)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
fn on_idle_low_proof_waste() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `9547`
|
||||
// Estimated: `16070`
|
||||
// Minimum execution time: 122_297_527_000 picoseconds.
|
||||
Weight::from_parts(122_394_818_000, 16070)
|
||||
// Minimum execution time: 101_362_469_000 picoseconds.
|
||||
Weight::from_parts(101_583_065_000, 16070)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:1 w:0)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton Compute (r:1 w:0)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:1 w:0)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::Compute` (r:1 w:0)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
fn empty_on_idle() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `86`
|
||||
// Estimated: `1493`
|
||||
// Minimum execution time: 5_882_000 picoseconds.
|
||||
Weight::from_parts(6_138_000, 1493)
|
||||
// Minimum execution time: 5_118_000 picoseconds.
|
||||
Weight::from_parts(5_320_000, 1493)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Glutton Compute (r:0 w:1)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Compute` (r:0 w:1)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
fn set_compute() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_830_000 picoseconds.
|
||||
Weight::from_parts(8_366_000, 0)
|
||||
// Minimum execution time: 5_925_000 picoseconds.
|
||||
Weight::from_parts(6_193_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:0 w:1)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:0 w:1)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
fn set_storage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_933_000 picoseconds.
|
||||
Weight::from_parts(8_213_000, 0)
|
||||
// Minimum execution time: 5_912_000 picoseconds.
|
||||
Weight::from_parts(6_170_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Glutton TrashDataCount (r:1 w:1)
|
||||
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:0 w:1000)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
|
||||
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:0 w:1000)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn initialize_pallet_grow(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `86`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 11_488_000 picoseconds.
|
||||
Weight::from_parts(93_073_710, 1489)
|
||||
// Standard Error: 22_390
|
||||
.saturating_add(Weight::from_parts(9_572_012, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 8_453_000 picoseconds.
|
||||
Weight::from_parts(5_470_386, 1489)
|
||||
// Standard Error: 4_723
|
||||
.saturating_add(Weight::from_parts(10_418_732, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
}
|
||||
/// Storage: Glutton TrashDataCount (r:1 w:1)
|
||||
/// Proof: Glutton TrashDataCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:0 w:1000)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::TrashDataCount` (r:1 w:1)
|
||||
/// Proof: `Glutton::TrashDataCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:0 w:1000)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1000]`.
|
||||
fn initialize_pallet_shrink(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `119`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 11_378_000 picoseconds.
|
||||
Weight::from_parts(5_591_508, 1489)
|
||||
// Standard Error: 1_592
|
||||
.saturating_add(Weight::from_parts(1_163_758, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 8_646_000 picoseconds.
|
||||
Weight::from_parts(7_948_965, 1489)
|
||||
// Standard Error: 2_154
|
||||
.saturating_add(Weight::from_parts(1_197_352, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
@@ -227,83 +226,83 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 669_000 picoseconds.
|
||||
Weight::from_parts(990_745, 0)
|
||||
// Standard Error: 10
|
||||
.saturating_add(Weight::from_parts(105_224, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 643_000 picoseconds.
|
||||
Weight::from_parts(4_035_744, 0)
|
||||
// Standard Error: 14
|
||||
.saturating_add(Weight::from_parts(105_406, 0).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Glutton TrashData (r:5000 w:0)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::TrashData` (r:5000 w:0)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
/// The range of component `i` is `[0, 5000]`.
|
||||
fn waste_proof_size_some(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `119114 + i * (1022 ±0)`
|
||||
// Estimated: `990 + i * (3016 ±0)`
|
||||
// Minimum execution time: 435_000 picoseconds.
|
||||
Weight::from_parts(66_547_542, 990)
|
||||
// Standard Error: 4_557
|
||||
.saturating_add(Weight::from_parts(5_851_324, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 228_000 picoseconds.
|
||||
Weight::from_parts(62_060_711, 990)
|
||||
// Standard Error: 5_638
|
||||
.saturating_add(Weight::from_parts(5_970_065, 0).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(i.into())))
|
||||
.saturating_add(Weight::from_parts(0, 3016).saturating_mul(i.into()))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:1 w:0)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton Compute (r:1 w:0)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:1737 w:0)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:1 w:0)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::Compute` (r:1 w:0)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:1737 w:0)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
fn on_idle_high_proof_waste() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1900497`
|
||||
// Estimated: `5239782`
|
||||
// Minimum execution time: 67_699_845_000 picoseconds.
|
||||
Weight::from_parts(67_893_204_000, 5239782)
|
||||
// Minimum execution time: 57_557_511_000 picoseconds.
|
||||
Weight::from_parts(57_644_868_000, 5239782)
|
||||
.saturating_add(RocksDbWeight::get().reads(1739_u64))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:1 w:0)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton Compute (r:1 w:0)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton TrashData (r:5 w:0)
|
||||
/// Proof: Glutton TrashData (max_values: Some(65000), max_size: Some(1036), added: 3016, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:1 w:0)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::Compute` (r:1 w:0)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::TrashData` (r:5 w:0)
|
||||
/// Proof: `Glutton::TrashData` (`max_values`: Some(65000), `max_size`: Some(1036), added: 3016, mode: `MaxEncodedLen`)
|
||||
fn on_idle_low_proof_waste() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `9547`
|
||||
// Estimated: `16070`
|
||||
// Minimum execution time: 122_297_527_000 picoseconds.
|
||||
Weight::from_parts(122_394_818_000, 16070)
|
||||
// Minimum execution time: 101_362_469_000 picoseconds.
|
||||
Weight::from_parts(101_583_065_000, 16070)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:1 w:0)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Glutton Compute (r:1 w:0)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:1 w:0)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Glutton::Compute` (r:1 w:0)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
fn empty_on_idle() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `86`
|
||||
// Estimated: `1493`
|
||||
// Minimum execution time: 5_882_000 picoseconds.
|
||||
Weight::from_parts(6_138_000, 1493)
|
||||
// Minimum execution time: 5_118_000 picoseconds.
|
||||
Weight::from_parts(5_320_000, 1493)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Glutton Compute (r:0 w:1)
|
||||
/// Proof: Glutton Compute (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Compute` (r:0 w:1)
|
||||
/// Proof: `Glutton::Compute` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
fn set_compute() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_830_000 picoseconds.
|
||||
Weight::from_parts(8_366_000, 0)
|
||||
// Minimum execution time: 5_925_000 picoseconds.
|
||||
Weight::from_parts(6_193_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Glutton Storage (r:0 w:1)
|
||||
/// Proof: Glutton Storage (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: `Glutton::Storage` (r:0 w:1)
|
||||
/// Proof: `Glutton::Storage` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
fn set_storage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_933_000 picoseconds.
|
||||
Weight::from_parts(8_213_000, 0)
|
||||
// Minimum execution time: 5_912_000 picoseconds.
|
||||
Weight::from_parts(6_170_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+404
-413
File diff suppressed because it is too large
Load Diff
Generated
+42
-43
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_im_online
|
||||
//! Autogenerated weights for `pallet_im_online`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/im-online/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/im-online/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,60 +49,60 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_im_online.
|
||||
/// Weight functions needed for `pallet_im_online`.
|
||||
pub trait WeightInfo {
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_im_online using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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(25), added: 2500, mode: MaxEncodedLen)
|
||||
/// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
/// Proof: ImOnline AuthoredBlocks (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// Storage: `Session::Validators` (r:1 w:0)
|
||||
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Session::CurrentIndex` (r:1 w:0)
|
||||
/// Proof: `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(25), added: 2500, 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]`.
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `295 + k * (32 ±0)`
|
||||
// Measured: `327 + k * (32 ±0)`
|
||||
// Estimated: `321487 + k * (1761 ±0)`
|
||||
// Minimum execution time: 80_568_000 picoseconds.
|
||||
Weight::from_parts(95_175_595, 321487)
|
||||
// Standard Error: 627
|
||||
.saturating_add(Weight::from_parts(39_094, 0).saturating_mul(k.into()))
|
||||
// Minimum execution time: 64_011_000 picoseconds.
|
||||
Weight::from_parts(80_632_380, 321487)
|
||||
// Standard Error: 676
|
||||
.saturating_add(Weight::from_parts(34_921, 0).saturating_mul(k.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1761).saturating_mul(k.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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(25), added: 2500, mode: MaxEncodedLen)
|
||||
/// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
/// Proof: ImOnline AuthoredBlocks (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen)
|
||||
/// Storage: `Session::Validators` (r:1 w:0)
|
||||
/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Session::CurrentIndex` (r:1 w:0)
|
||||
/// Proof: `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(25), added: 2500, 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]`.
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `295 + k * (32 ±0)`
|
||||
// Measured: `327 + k * (32 ±0)`
|
||||
// Estimated: `321487 + k * (1761 ±0)`
|
||||
// Minimum execution time: 80_568_000 picoseconds.
|
||||
Weight::from_parts(95_175_595, 321487)
|
||||
// Standard Error: 627
|
||||
.saturating_add(Weight::from_parts(39_094, 0).saturating_mul(k.into()))
|
||||
// Minimum execution time: 64_011_000 picoseconds.
|
||||
Weight::from_parts(80_632_380, 321487)
|
||||
// Standard Error: 676
|
||||
.saturating_add(Weight::from_parts(34_921, 0).saturating_mul(k.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1761).saturating_mul(k.into()))
|
||||
|
||||
Generated
+60
-61
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_indices
|
||||
//! Autogenerated weights for `pallet_indices`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/indices/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/indices/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_indices.
|
||||
/// Weight functions needed for `pallet_indices`.
|
||||
pub trait WeightInfo {
|
||||
fn claim() -> Weight;
|
||||
fn transfer() -> Weight;
|
||||
@@ -59,128 +58,128 @@ pub trait WeightInfo {
|
||||
fn freeze() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_indices using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Indices::Accounts` (r:1 w:1)
|
||||
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
||||
fn claim() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 25_491_000 picoseconds.
|
||||
Weight::from_parts(26_456_000, 3534)
|
||||
// Minimum execution time: 22_026_000 picoseconds.
|
||||
Weight::from_parts(22_522_000, 3534)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `275`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 38_027_000 picoseconds.
|
||||
Weight::from_parts(38_749_000, 3593)
|
||||
// Minimum execution time: 34_160_000 picoseconds.
|
||||
Weight::from_parts(35_138_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Indices::Accounts` (r:1 w:1)
|
||||
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
||||
fn free() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 26_652_000 picoseconds.
|
||||
Weight::from_parts(27_273_000, 3534)
|
||||
// Minimum execution time: 23_736_000 picoseconds.
|
||||
Weight::from_parts(24_247_000, 3534)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `275`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 29_464_000 picoseconds.
|
||||
Weight::from_parts(30_959_000, 3593)
|
||||
// Minimum execution time: 25_810_000 picoseconds.
|
||||
Weight::from_parts(26_335_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Indices::Accounts` (r:1 w:1)
|
||||
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
||||
fn freeze() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 29_015_000 picoseconds.
|
||||
Weight::from_parts(29_714_000, 3534)
|
||||
// Minimum execution time: 24_502_000 picoseconds.
|
||||
Weight::from_parts(25_425_000, 3534)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Indices::Accounts` (r:1 w:1)
|
||||
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
||||
fn claim() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 25_491_000 picoseconds.
|
||||
Weight::from_parts(26_456_000, 3534)
|
||||
// Minimum execution time: 22_026_000 picoseconds.
|
||||
Weight::from_parts(22_522_000, 3534)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `275`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 38_027_000 picoseconds.
|
||||
Weight::from_parts(38_749_000, 3593)
|
||||
// Minimum execution time: 34_160_000 picoseconds.
|
||||
Weight::from_parts(35_138_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Indices::Accounts` (r:1 w:1)
|
||||
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
||||
fn free() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 26_652_000 picoseconds.
|
||||
Weight::from_parts(27_273_000, 3534)
|
||||
// Minimum execution time: 23_736_000 picoseconds.
|
||||
Weight::from_parts(24_247_000, 3534)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `275`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 29_464_000 picoseconds.
|
||||
Weight::from_parts(30_959_000, 3593)
|
||||
// Minimum execution time: 25_810_000 picoseconds.
|
||||
Weight::from_parts(26_335_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Indices Accounts (r:1 w:1)
|
||||
/// Proof: Indices Accounts (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Indices::Accounts` (r:1 w:1)
|
||||
/// Proof: `Indices::Accounts` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
|
||||
fn freeze() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 29_015_000 picoseconds.
|
||||
Weight::from_parts(29_714_000, 3534)
|
||||
// Minimum execution time: 24_502_000 picoseconds.
|
||||
Weight::from_parts(25_425_000, 3534)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+154
-147
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_lottery
|
||||
//! Autogenerated weights for `pallet_lottery`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/lottery/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/lottery/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_lottery.
|
||||
/// Weight functions needed for `pallet_lottery`.
|
||||
pub trait WeightInfo {
|
||||
fn buy_ticket() -> Weight;
|
||||
fn set_calls(n: u32, ) -> Weight;
|
||||
@@ -60,214 +59,222 @@ pub trait WeightInfo {
|
||||
fn on_initialize_repeat() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_lottery using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `452`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 60_298_000 picoseconds.
|
||||
Weight::from_parts(62_058_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
// Measured: `492`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 60_979_000 picoseconds.
|
||||
Weight::from_parts(63_452_000, 3997)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Lottery CallIndices (r:0 w:1)
|
||||
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_291_000 picoseconds.
|
||||
Weight::from_parts(8_178_186, 0)
|
||||
// Standard Error: 3_048
|
||||
.saturating_add(Weight::from_parts(330_871, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 5_245_000 picoseconds.
|
||||
Weight::from_parts(6_113_777, 0)
|
||||
// Standard Error: 3_280
|
||||
.saturating_add(Weight::from_parts(349_366, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Measured: `194`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 36_741_000 picoseconds.
|
||||
Weight::from_parts(38_288_000, 3593)
|
||||
// Minimum execution time: 29_131_000 picoseconds.
|
||||
Weight::from_parts(29_722_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `219`
|
||||
// Measured: `252`
|
||||
// Estimated: `1514`
|
||||
// Minimum execution time: 7_270_000 picoseconds.
|
||||
Weight::from_parts(7_578_000, 1514)
|
||||
// Minimum execution time: 6_413_000 picoseconds.
|
||||
Weight::from_parts(6_702_000, 1514)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `558`
|
||||
// Measured: `591`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 76_611_000 picoseconds.
|
||||
Weight::from_parts(78_107_000, 6196)
|
||||
// Minimum execution time: 65_913_000 picoseconds.
|
||||
Weight::from_parts(66_864_000, 6196)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `558`
|
||||
// Measured: `591`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 78_731_000 picoseconds.
|
||||
Weight::from_parts(80_248_000, 6196)
|
||||
// Minimum execution time: 66_950_000 picoseconds.
|
||||
Weight::from_parts(68_405_000, 6196)
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `452`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 60_298_000 picoseconds.
|
||||
Weight::from_parts(62_058_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
// Measured: `492`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 60_979_000 picoseconds.
|
||||
Weight::from_parts(63_452_000, 3997)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// Storage: Lottery CallIndices (r:0 w:1)
|
||||
/// Proof: Lottery CallIndices (max_values: Some(1), max_size: Some(21), added: 516, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_291_000 picoseconds.
|
||||
Weight::from_parts(8_178_186, 0)
|
||||
// Standard Error: 3_048
|
||||
.saturating_add(Weight::from_parts(330_871, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 5_245_000 picoseconds.
|
||||
Weight::from_parts(6_113_777, 0)
|
||||
// Standard Error: 3_280
|
||||
.saturating_add(Weight::from_parts(349_366, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Measured: `194`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 36_741_000 picoseconds.
|
||||
Weight::from_parts(38_288_000, 3593)
|
||||
// Minimum execution time: 29_131_000 picoseconds.
|
||||
Weight::from_parts(29_722_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Lottery Lottery (r:1 w:1)
|
||||
/// Proof: Lottery Lottery (max_values: Some(1), max_size: Some(29), added: 524, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `219`
|
||||
// Measured: `252`
|
||||
// Estimated: `1514`
|
||||
// Minimum execution time: 7_270_000 picoseconds.
|
||||
Weight::from_parts(7_578_000, 1514)
|
||||
// Minimum execution time: 6_413_000 picoseconds.
|
||||
Weight::from_parts(6_702_000, 1514)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `558`
|
||||
// Measured: `591`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 76_611_000 picoseconds.
|
||||
Weight::from_parts(78_107_000, 6196)
|
||||
// Minimum execution time: 65_913_000 picoseconds.
|
||||
Weight::from_parts(66_864_000, 6196)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `558`
|
||||
// Measured: `591`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 78_731_000 picoseconds.
|
||||
Weight::from_parts(80_248_000, 6196)
|
||||
// Minimum execution time: 66_950_000 picoseconds.
|
||||
Weight::from_parts(68_405_000, 6196)
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
|
||||
+192
-193
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_membership
|
||||
//! Autogenerated weights for `pallet_membership`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/membership/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/membership/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_membership.
|
||||
/// Weight functions needed for `pallet_membership`.
|
||||
pub trait WeightInfo {
|
||||
fn add_member(m: u32, ) -> Weight;
|
||||
fn remove_member(m: u32, ) -> Weight;
|
||||
@@ -61,299 +60,299 @@ pub trait WeightInfo {
|
||||
fn clear_prime() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_membership using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_membership` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 99]`.
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `208 + m * (64 ±0)`
|
||||
// Measured: `207 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 17_040_000 picoseconds.
|
||||
Weight::from_parts(18_344_571, 4687)
|
||||
// Standard Error: 847
|
||||
.saturating_add(Weight::from_parts(50_842, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 12_827_000 picoseconds.
|
||||
Weight::from_parts(13_743_651, 4687)
|
||||
// Standard Error: 622
|
||||
.saturating_add(Weight::from_parts(35_417, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_088_000 picoseconds.
|
||||
Weight::from_parts(21_271_384, 4687)
|
||||
// Standard Error: 786
|
||||
.saturating_add(Weight::from_parts(44_806, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 15_197_000 picoseconds.
|
||||
Weight::from_parts(16_172_409, 4687)
|
||||
// Standard Error: 650
|
||||
.saturating_add(Weight::from_parts(35_790, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_308_000 picoseconds.
|
||||
Weight::from_parts(21_469_843, 4687)
|
||||
// Standard Error: 782
|
||||
.saturating_add(Weight::from_parts(56_893, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 15_558_000 picoseconds.
|
||||
Weight::from_parts(16_370_827, 4687)
|
||||
// Standard Error: 603
|
||||
.saturating_add(Weight::from_parts(45_739, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn reset_members(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 19_464_000 picoseconds.
|
||||
Weight::from_parts(21_223_702, 4687)
|
||||
// Standard Error: 1_068
|
||||
.saturating_add(Weight::from_parts(165_438, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 15_086_000 picoseconds.
|
||||
Weight::from_parts(16_444_101, 4687)
|
||||
// Standard Error: 967
|
||||
.saturating_add(Weight::from_parts(143_947, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_965_000 picoseconds.
|
||||
Weight::from_parts(22_551_007, 4687)
|
||||
// Standard Error: 860
|
||||
.saturating_add(Weight::from_parts(52_397, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 16_146_000 picoseconds.
|
||||
Weight::from_parts(17_269_755, 4687)
|
||||
// Standard Error: 660
|
||||
.saturating_add(Weight::from_parts(42_082, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `32 + m * (32 ±0)`
|
||||
// Measured: `31 + m * (32 ±0)`
|
||||
// Estimated: `4687 + m * (32 ±0)`
|
||||
// Minimum execution time: 7_481_000 picoseconds.
|
||||
Weight::from_parts(7_959_053, 4687)
|
||||
// Standard Error: 364
|
||||
.saturating_add(Weight::from_parts(18_653, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 5_937_000 picoseconds.
|
||||
Weight::from_parts(6_501_085, 4687)
|
||||
// Standard Error: 323
|
||||
.saturating_add(Weight::from_parts(18_285, 0).saturating_mul(m.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn clear_prime() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_373_000 picoseconds.
|
||||
Weight::from_parts(3_750_452, 0)
|
||||
// Minimum execution time: 2_533_000 picoseconds.
|
||||
Weight::from_parts(2_807_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `TechnicalCommittee::Proposals` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Members` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 99]`.
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `208 + m * (64 ±0)`
|
||||
// Measured: `207 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 17_040_000 picoseconds.
|
||||
Weight::from_parts(18_344_571, 4687)
|
||||
// Standard Error: 847
|
||||
.saturating_add(Weight::from_parts(50_842, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 12_827_000 picoseconds.
|
||||
Weight::from_parts(13_743_651, 4687)
|
||||
// Standard Error: 622
|
||||
.saturating_add(Weight::from_parts(35_417, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_088_000 picoseconds.
|
||||
Weight::from_parts(21_271_384, 4687)
|
||||
// Standard Error: 786
|
||||
.saturating_add(Weight::from_parts(44_806, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 15_197_000 picoseconds.
|
||||
Weight::from_parts(16_172_409, 4687)
|
||||
// Standard Error: 650
|
||||
.saturating_add(Weight::from_parts(35_790, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[2, 100]`.
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_308_000 picoseconds.
|
||||
Weight::from_parts(21_469_843, 4687)
|
||||
// Standard Error: 782
|
||||
.saturating_add(Weight::from_parts(56_893, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 15_558_000 picoseconds.
|
||||
Weight::from_parts(16_370_827, 4687)
|
||||
// Standard Error: 603
|
||||
.saturating_add(Weight::from_parts(45_739, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn reset_members(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 19_464_000 picoseconds.
|
||||
Weight::from_parts(21_223_702, 4687)
|
||||
// Standard Error: 1_068
|
||||
.saturating_add(Weight::from_parts(165_438, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 15_086_000 picoseconds.
|
||||
Weight::from_parts(16_444_101, 4687)
|
||||
// Standard Error: 967
|
||||
.saturating_add(Weight::from_parts(143_947, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalMembership Prime (r:1 w:1)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `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: `TechnicalCommittee::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `TechnicalCommittee::Prime` (r:0 w:1)
|
||||
/// Proof: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312 + m * (64 ±0)`
|
||||
// Measured: `311 + m * (64 ±0)`
|
||||
// Estimated: `4687 + m * (64 ±0)`
|
||||
// Minimum execution time: 20_965_000 picoseconds.
|
||||
Weight::from_parts(22_551_007, 4687)
|
||||
// Standard Error: 860
|
||||
.saturating_add(Weight::from_parts(52_397, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 16_146_000 picoseconds.
|
||||
Weight::from_parts(17_269_755, 4687)
|
||||
// Standard Error: 660
|
||||
.saturating_add(Weight::from_parts(42_082, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
/// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `m` is `[1, 100]`.
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `32 + m * (32 ±0)`
|
||||
// Measured: `31 + m * (32 ±0)`
|
||||
// Estimated: `4687 + m * (32 ±0)`
|
||||
// Minimum execution time: 7_481_000 picoseconds.
|
||||
Weight::from_parts(7_959_053, 4687)
|
||||
// Standard Error: 364
|
||||
.saturating_add(Weight::from_parts(18_653, 0).saturating_mul(m.into()))
|
||||
// Minimum execution time: 5_937_000 picoseconds.
|
||||
Weight::from_parts(6_501_085, 4687)
|
||||
// Standard Error: 323
|
||||
.saturating_add(Weight::from_parts(18_285, 0).saturating_mul(m.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
||||
}
|
||||
/// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
/// Proof: TechnicalMembership Prime (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
|
||||
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// 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: `TechnicalCommittee::Prime` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
fn clear_prime() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_373_000 picoseconds.
|
||||
Weight::from_parts(3_750_452, 0)
|
||||
// Minimum execution time: 2_533_000 picoseconds.
|
||||
Weight::from_parts(2_807_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
+128
-119
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_message_queue
|
||||
//! Autogenerated weights for `pallet_message_queue`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/message-queue/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/message-queue/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_message_queue.
|
||||
/// Weight functions needed for `pallet_message_queue`.
|
||||
pub trait WeightInfo {
|
||||
fn ready_ring_knit() -> Weight;
|
||||
fn ready_ring_unknit() -> Weight;
|
||||
@@ -64,246 +63,256 @@ pub trait WeightInfo {
|
||||
fn execute_overweight_page_updated() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_message_queue using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
|
||||
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn ready_ring_knit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `267`
|
||||
// Measured: `301`
|
||||
// Estimated: `6038`
|
||||
// Minimum execution time: 12_025_000 picoseconds.
|
||||
Weight::from_parts(12_597_000, 6038)
|
||||
// Minimum execution time: 11_674_000 picoseconds.
|
||||
Weight::from_parts(12_105_000, 6038)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn ready_ring_unknit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `267`
|
||||
// Measured: `301`
|
||||
// Estimated: `6038`
|
||||
// Minimum execution time: 11_563_000 picoseconds.
|
||||
Weight::from_parts(11_785_000, 6038)
|
||||
// Minimum execution time: 10_262_000 picoseconds.
|
||||
Weight::from_parts(10_654_000, 6038)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn service_queue_base() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 4_467_000 picoseconds.
|
||||
Weight::from_parts(4_655_000, 3514)
|
||||
// Minimum execution time: 4_363_000 picoseconds.
|
||||
Weight::from_parts(4_589_000, 3514)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn service_page_base_completion() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `147`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 6_103_000 picoseconds.
|
||||
Weight::from_parts(6_254_000, 69049)
|
||||
// Minimum execution time: 6_220_000 picoseconds.
|
||||
Weight::from_parts(6_622_000, 69049)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn service_page_base_no_completion() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `147`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 6_320_000 picoseconds.
|
||||
Weight::from_parts(6_565_000, 69049)
|
||||
// Minimum execution time: 6_342_000 picoseconds.
|
||||
Weight::from_parts(6_727_000, 69049)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:0 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn service_page_item() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 66_062_000 picoseconds.
|
||||
Weight::from_parts(66_371_000, 0)
|
||||
// Minimum execution time: 112_729_000 picoseconds.
|
||||
Weight::from_parts(114_076_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:0)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn bump_service_head() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Measured: `246`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 6_788_000 picoseconds.
|
||||
Weight::from_parts(7_176_000, 3514)
|
||||
// Minimum execution time: 6_836_000 picoseconds.
|
||||
Weight::from_parts(6_986_000, 3514)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn reap_page() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `65744`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 52_865_000 picoseconds.
|
||||
Weight::from_parts(54_398_000, 69049)
|
||||
// Minimum execution time: 50_733_000 picoseconds.
|
||||
Weight::from_parts(51_649_000, 69049)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn execute_overweight_page_removed() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `65744`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 69_168_000 picoseconds.
|
||||
Weight::from_parts(70_560_000, 69049)
|
||||
// Minimum execution time: 67_335_000 picoseconds.
|
||||
Weight::from_parts(68_347_000, 69049)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn execute_overweight_page_updated() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `65744`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 80_947_000 picoseconds.
|
||||
Weight::from_parts(82_715_000, 69049)
|
||||
// Minimum execution time: 77_610_000 picoseconds.
|
||||
Weight::from_parts(80_338_000, 69049)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:0)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
|
||||
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn ready_ring_knit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `267`
|
||||
// Measured: `301`
|
||||
// Estimated: `6038`
|
||||
// Minimum execution time: 12_025_000 picoseconds.
|
||||
Weight::from_parts(12_597_000, 6038)
|
||||
// Minimum execution time: 11_674_000 picoseconds.
|
||||
Weight::from_parts(12_105_000, 6038)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:2 w:2)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
fn ready_ring_unknit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `267`
|
||||
// Measured: `301`
|
||||
// Estimated: `6038`
|
||||
// Minimum execution time: 11_563_000 picoseconds.
|
||||
Weight::from_parts(11_785_000, 6038)
|
||||
// Minimum execution time: 10_262_000 picoseconds.
|
||||
Weight::from_parts(10_654_000, 6038)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn service_queue_base() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 4_467_000 picoseconds.
|
||||
Weight::from_parts(4_655_000, 3514)
|
||||
// Minimum execution time: 4_363_000 picoseconds.
|
||||
Weight::from_parts(4_589_000, 3514)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn service_page_base_completion() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `147`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 6_103_000 picoseconds.
|
||||
Weight::from_parts(6_254_000, 69049)
|
||||
// Minimum execution time: 6_220_000 picoseconds.
|
||||
Weight::from_parts(6_622_000, 69049)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn service_page_base_no_completion() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `147`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 6_320_000 picoseconds.
|
||||
Weight::from_parts(6_565_000, 69049)
|
||||
// Minimum execution time: 6_342_000 picoseconds.
|
||||
Weight::from_parts(6_727_000, 69049)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:0 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn service_page_item() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 66_062_000 picoseconds.
|
||||
Weight::from_parts(66_371_000, 0)
|
||||
// Minimum execution time: 112_729_000 picoseconds.
|
||||
Weight::from_parts(114_076_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue ServiceHead (r:1 w:1)
|
||||
/// Proof: MessageQueue ServiceHead (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:0)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
fn bump_service_head() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `174`
|
||||
// Measured: `246`
|
||||
// Estimated: `3514`
|
||||
// Minimum execution time: 6_788_000 picoseconds.
|
||||
Weight::from_parts(7_176_000, 3514)
|
||||
// Minimum execution time: 6_836_000 picoseconds.
|
||||
Weight::from_parts(6_986_000, 3514)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn reap_page() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `65744`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 52_865_000 picoseconds.
|
||||
Weight::from_parts(54_398_000, 69049)
|
||||
// Minimum execution time: 50_733_000 picoseconds.
|
||||
Weight::from_parts(51_649_000, 69049)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn execute_overweight_page_removed() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `65744`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 69_168_000 picoseconds.
|
||||
Weight::from_parts(70_560_000, 69049)
|
||||
// Minimum execution time: 67_335_000 picoseconds.
|
||||
Weight::from_parts(68_347_000, 69049)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: MessageQueue BookStateFor (r:1 w:1)
|
||||
/// Proof: MessageQueue BookStateFor (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen)
|
||||
/// Storage: MessageQueue Pages (r:1 w:1)
|
||||
/// Proof: MessageQueue Pages (max_values: None, max_size: Some(65584), added: 68059, mode: MaxEncodedLen)
|
||||
/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MessageQueue::Pages` (r:1 w:1)
|
||||
/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65584), added: 68059, mode: `MaxEncodedLen`)
|
||||
fn execute_overweight_page_updated() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `65744`
|
||||
// Estimated: `69049`
|
||||
// Minimum execution time: 80_947_000 picoseconds.
|
||||
Weight::from_parts(82_715_000, 69049)
|
||||
// Minimum execution time: 77_610_000 picoseconds.
|
||||
Weight::from_parts(80_338_000, 69049)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
|
||||
+93
-90
@@ -17,26 +17,29 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_migrations`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-12-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `loud1`, CPU: `AMD EPYC 7282 16-Core Processor`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain
|
||||
// dev
|
||||
// --pallet
|
||||
// pallet-migrations
|
||||
// --extrinsic
|
||||
//
|
||||
// --output
|
||||
// weight.rs
|
||||
// --template
|
||||
// ../../polkadot-sdk/substrate/.maintain/frame-weight-template.hbs
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_migrations
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./substrate/frame/migrations/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -71,10 +74,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
fn onboard_new_mbms() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Measured: `276`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 13_980_000 picoseconds.
|
||||
Weight::from_parts(14_290_000, 67035)
|
||||
// Minimum execution time: 7_762_000 picoseconds.
|
||||
Weight::from_parts(8_100_000, 67035)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -82,10 +85,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
fn progress_mbms_none() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Measured: `142`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 3_770_000 picoseconds.
|
||||
Weight::from_parts(4_001_000, 67035)
|
||||
// Minimum execution time: 2_077_000 picoseconds.
|
||||
Weight::from_parts(2_138_000, 67035)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
@@ -96,8 +99,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `134`
|
||||
// Estimated: `3599`
|
||||
// Minimum execution time: 10_900_000 picoseconds.
|
||||
Weight::from_parts(11_251_000, 3599)
|
||||
// Minimum execution time: 5_868_000 picoseconds.
|
||||
Weight::from_parts(6_143_000, 3599)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -107,10 +110,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_skipped_historic() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `297`
|
||||
// Estimated: `3762`
|
||||
// Minimum execution time: 17_891_000 picoseconds.
|
||||
Weight::from_parts(18_501_000, 3762)
|
||||
// Measured: `330`
|
||||
// Estimated: `3795`
|
||||
// Minimum execution time: 10_283_000 picoseconds.
|
||||
Weight::from_parts(10_964_000, 3795)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
@@ -119,10 +122,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_advance() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Estimated: `3731`
|
||||
// Minimum execution time: 18_271_000 picoseconds.
|
||||
Weight::from_parts(18_740_000, 3731)
|
||||
// Measured: `276`
|
||||
// Estimated: `3741`
|
||||
// Minimum execution time: 9_900_000 picoseconds.
|
||||
Weight::from_parts(10_396_000, 3741)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
@@ -131,10 +134,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_complete() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Estimated: `3731`
|
||||
// Minimum execution time: 21_241_000 picoseconds.
|
||||
Weight::from_parts(21_911_000, 3731)
|
||||
// Measured: `276`
|
||||
// Estimated: `3741`
|
||||
// Minimum execution time: 11_411_000 picoseconds.
|
||||
Weight::from_parts(11_956_000, 3741)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -146,10 +149,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_fail() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Estimated: `3731`
|
||||
// Minimum execution time: 22_740_000 picoseconds.
|
||||
Weight::from_parts(23_231_000, 3731)
|
||||
// Measured: `276`
|
||||
// Estimated: `3741`
|
||||
// Minimum execution time: 12_398_000 picoseconds.
|
||||
Weight::from_parts(12_910_000, 3741)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -157,8 +160,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 440_000 picoseconds.
|
||||
Weight::from_parts(500_000, 0)
|
||||
// Minimum execution time: 166_000 picoseconds.
|
||||
Weight::from_parts(193_000, 0)
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
@@ -166,8 +169,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_751_000 picoseconds.
|
||||
Weight::from_parts(5_950_000, 0)
|
||||
// Minimum execution time: 2_686_000 picoseconds.
|
||||
Weight::from_parts(2_859_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
|
||||
@@ -176,8 +179,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_350_000 picoseconds.
|
||||
Weight::from_parts(6_560_000, 0)
|
||||
// Minimum execution time: 3_070_000 picoseconds.
|
||||
Weight::from_parts(3_250_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
|
||||
@@ -186,10 +189,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
fn force_onboard_mbms() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `218`
|
||||
// Measured: `251`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 11_121_000 picoseconds.
|
||||
Weight::from_parts(11_530_000, 67035)
|
||||
// Minimum execution time: 5_901_000 picoseconds.
|
||||
Weight::from_parts(6_320_000, 67035)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
|
||||
@@ -197,12 +200,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `n` is `[0, 256]`.
|
||||
fn clear_historic(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1089 + n * (271 ±0)`
|
||||
// Measured: `1122 + n * (271 ±0)`
|
||||
// Estimated: `3834 + n * (2740 ±0)`
|
||||
// Minimum execution time: 21_891_000 picoseconds.
|
||||
Weight::from_parts(18_572_306, 3834)
|
||||
// Standard Error: 3_236
|
||||
.saturating_add(Weight::from_parts(1_648_429, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 15_952_000 picoseconds.
|
||||
Weight::from_parts(14_358_665, 3834)
|
||||
// Standard Error: 3_358
|
||||
.saturating_add(Weight::from_parts(1_323_674, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
@@ -218,10 +221,10 @@ impl WeightInfo for () {
|
||||
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
fn onboard_new_mbms() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Measured: `276`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 13_980_000 picoseconds.
|
||||
Weight::from_parts(14_290_000, 67035)
|
||||
// Minimum execution time: 7_762_000 picoseconds.
|
||||
Weight::from_parts(8_100_000, 67035)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -229,10 +232,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
fn progress_mbms_none() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Measured: `142`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 3_770_000 picoseconds.
|
||||
Weight::from_parts(4_001_000, 67035)
|
||||
// Minimum execution time: 2_077_000 picoseconds.
|
||||
Weight::from_parts(2_138_000, 67035)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
@@ -243,8 +246,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `134`
|
||||
// Estimated: `3599`
|
||||
// Minimum execution time: 10_900_000 picoseconds.
|
||||
Weight::from_parts(11_251_000, 3599)
|
||||
// Minimum execution time: 5_868_000 picoseconds.
|
||||
Weight::from_parts(6_143_000, 3599)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -254,10 +257,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_skipped_historic() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `297`
|
||||
// Estimated: `3762`
|
||||
// Minimum execution time: 17_891_000 picoseconds.
|
||||
Weight::from_parts(18_501_000, 3762)
|
||||
// Measured: `330`
|
||||
// Estimated: `3795`
|
||||
// Minimum execution time: 10_283_000 picoseconds.
|
||||
Weight::from_parts(10_964_000, 3795)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
@@ -266,10 +269,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_advance() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Estimated: `3731`
|
||||
// Minimum execution time: 18_271_000 picoseconds.
|
||||
Weight::from_parts(18_740_000, 3731)
|
||||
// Measured: `276`
|
||||
// Estimated: `3741`
|
||||
// Minimum execution time: 9_900_000 picoseconds.
|
||||
Weight::from_parts(10_396_000, 3741)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
@@ -278,10 +281,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `MultiBlockMigrations::Historic` (`max_values`: None, `max_size`: Some(266), added: 2741, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_complete() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Estimated: `3731`
|
||||
// Minimum execution time: 21_241_000 picoseconds.
|
||||
Weight::from_parts(21_911_000, 3731)
|
||||
// Measured: `276`
|
||||
// Estimated: `3741`
|
||||
// Minimum execution time: 11_411_000 picoseconds.
|
||||
Weight::from_parts(11_956_000, 3741)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -293,10 +296,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
fn exec_migration_fail() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `243`
|
||||
// Estimated: `3731`
|
||||
// Minimum execution time: 22_740_000 picoseconds.
|
||||
Weight::from_parts(23_231_000, 3731)
|
||||
// Measured: `276`
|
||||
// Estimated: `3741`
|
||||
// Minimum execution time: 12_398_000 picoseconds.
|
||||
Weight::from_parts(12_910_000, 3741)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -304,8 +307,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 440_000 picoseconds.
|
||||
Weight::from_parts(500_000, 0)
|
||||
// Minimum execution time: 166_000 picoseconds.
|
||||
Weight::from_parts(193_000, 0)
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
@@ -313,8 +316,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_751_000 picoseconds.
|
||||
Weight::from_parts(5_950_000, 0)
|
||||
// Minimum execution time: 2_686_000 picoseconds.
|
||||
Weight::from_parts(2_859_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:0 w:1)
|
||||
@@ -323,8 +326,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_350_000 picoseconds.
|
||||
Weight::from_parts(6_560_000, 0)
|
||||
// Minimum execution time: 3_070_000 picoseconds.
|
||||
Weight::from_parts(3_250_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
|
||||
@@ -333,10 +336,10 @@ impl WeightInfo for () {
|
||||
/// Proof: UNKNOWN KEY `0x583359fe0e84d953a9dd84e8addb08a5` (r:1 w:0)
|
||||
fn force_onboard_mbms() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `218`
|
||||
// Measured: `251`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 11_121_000 picoseconds.
|
||||
Weight::from_parts(11_530_000, 67035)
|
||||
// Minimum execution time: 5_901_000 picoseconds.
|
||||
Weight::from_parts(6_320_000, 67035)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: `MultiBlockMigrations::Historic` (r:256 w:256)
|
||||
@@ -344,12 +347,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `n` is `[0, 256]`.
|
||||
fn clear_historic(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1089 + n * (271 ±0)`
|
||||
// Measured: `1122 + n * (271 ±0)`
|
||||
// Estimated: `3834 + n * (2740 ±0)`
|
||||
// Minimum execution time: 21_891_000 picoseconds.
|
||||
Weight::from_parts(18_572_306, 3834)
|
||||
// Standard Error: 3_236
|
||||
.saturating_add(Weight::from_parts(1_648_429, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 15_952_000 picoseconds.
|
||||
Weight::from_parts(14_358_665, 3834)
|
||||
// Standard Error: 3_358
|
||||
.saturating_add(Weight::from_parts(1_323_674, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
|
||||
Generated
+132
-115
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_multisig
|
||||
//! Autogenerated weights for `pallet_multisig`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/multisig/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/multisig/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_multisig.
|
||||
/// Weight functions needed for `pallet_multisig`.
|
||||
pub trait WeightInfo {
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight;
|
||||
fn as_multi_create(s: u32, z: u32, ) -> Weight;
|
||||
@@ -61,220 +60,238 @@ pub trait WeightInfo {
|
||||
fn cancel_as_multi(s: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_multisig using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_multisig` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 13_452_000 picoseconds.
|
||||
Weight::from_parts(14_425_869, 0)
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 20_302_000 picoseconds.
|
||||
Weight::from_parts(21_362_808, 3997)
|
||||
// Standard Error: 4
|
||||
.saturating_add(Weight::from_parts(493, 0).saturating_mul(z.into()))
|
||||
.saturating_add(Weight::from_parts(432, 0).saturating_mul(z.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `301 + s * (2 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 46_012_000 picoseconds.
|
||||
Weight::from_parts(34_797_344, 6811)
|
||||
// Standard Error: 833
|
||||
.saturating_add(Weight::from_parts(127_671, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 8
|
||||
.saturating_add(Weight::from_parts(1_498, 0).saturating_mul(z.into()))
|
||||
// Minimum execution time: 41_140_000 picoseconds.
|
||||
Weight::from_parts(31_518_927, 6811)
|
||||
// Standard Error: 754
|
||||
.saturating_add(Weight::from_parts(115_804, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 7
|
||||
.saturating_add(Weight::from_parts(1_442, 0).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)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `320`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 29_834_000 picoseconds.
|
||||
Weight::from_parts(20_189_154, 6811)
|
||||
// Standard Error: 637
|
||||
.saturating_add(Weight::from_parts(110_080, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_parts(1_483, 0).saturating_mul(z.into()))
|
||||
// Minimum execution time: 27_375_000 picoseconds.
|
||||
Weight::from_parts(17_806_361, 6811)
|
||||
// Standard Error: 501
|
||||
.saturating_add(Weight::from_parts(107_042, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 4
|
||||
.saturating_add(Weight::from_parts(1_491, 0).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)
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `426 + s * (33 ±0)`
|
||||
// Measured: `571 + s * (33 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 51_464_000 picoseconds.
|
||||
Weight::from_parts(39_246_644, 6811)
|
||||
// Standard Error: 1_251
|
||||
.saturating_add(Weight::from_parts(143_313, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 12
|
||||
.saturating_add(Weight::from_parts(1_523, 0).saturating_mul(z.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 54_427_000 picoseconds.
|
||||
Weight::from_parts(43_677_970, 6811)
|
||||
// Standard Error: 1_342
|
||||
.saturating_add(Weight::from_parts(154_697, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 13
|
||||
.saturating_add(Weight::from_parts(1_534, 0).saturating_mul(z.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `301 + s * (2 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 33_275_000 picoseconds.
|
||||
Weight::from_parts(34_073_221, 6811)
|
||||
// Standard Error: 1_163
|
||||
.saturating_add(Weight::from_parts(124_815, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 29_102_000 picoseconds.
|
||||
Weight::from_parts(30_317_105, 6811)
|
||||
// Standard Error: 903
|
||||
.saturating_add(Weight::from_parts(109_792, 0).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)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `320`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 18_411_000 picoseconds.
|
||||
Weight::from_parts(19_431_787, 6811)
|
||||
// Standard Error: 694
|
||||
.saturating_add(Weight::from_parts(107_220, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 16_300_000 picoseconds.
|
||||
Weight::from_parts(17_358_877, 6811)
|
||||
// Standard Error: 522
|
||||
.saturating_add(Weight::from_parts(99_194, 0).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)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `492 + s * (1 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 33_985_000 picoseconds.
|
||||
Weight::from_parts(35_547_970, 6811)
|
||||
// Standard Error: 1_135
|
||||
.saturating_add(Weight::from_parts(116_537, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 30_147_000 picoseconds.
|
||||
Weight::from_parts(32_003_421, 6811)
|
||||
// Standard Error: 1_077
|
||||
.saturating_add(Weight::from_parts(108_567, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `z` is `[0, 10000]`.
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 13_452_000 picoseconds.
|
||||
Weight::from_parts(14_425_869, 0)
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 20_302_000 picoseconds.
|
||||
Weight::from_parts(21_362_808, 3997)
|
||||
// Standard Error: 4
|
||||
.saturating_add(Weight::from_parts(493, 0).saturating_mul(z.into()))
|
||||
.saturating_add(Weight::from_parts(432, 0).saturating_mul(z.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `301 + s * (2 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 46_012_000 picoseconds.
|
||||
Weight::from_parts(34_797_344, 6811)
|
||||
// Standard Error: 833
|
||||
.saturating_add(Weight::from_parts(127_671, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 8
|
||||
.saturating_add(Weight::from_parts(1_498, 0).saturating_mul(z.into()))
|
||||
// Minimum execution time: 41_140_000 picoseconds.
|
||||
Weight::from_parts(31_518_927, 6811)
|
||||
// Standard Error: 754
|
||||
.saturating_add(Weight::from_parts(115_804, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 7
|
||||
.saturating_add(Weight::from_parts(1_442, 0).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)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `320`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 29_834_000 picoseconds.
|
||||
Weight::from_parts(20_189_154, 6811)
|
||||
// Standard Error: 637
|
||||
.saturating_add(Weight::from_parts(110_080, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_parts(1_483, 0).saturating_mul(z.into()))
|
||||
// Minimum execution time: 27_375_000 picoseconds.
|
||||
Weight::from_parts(17_806_361, 6811)
|
||||
// Standard Error: 501
|
||||
.saturating_add(Weight::from_parts(107_042, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 4
|
||||
.saturating_add(Weight::from_parts(1_491, 0).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)
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `426 + s * (33 ±0)`
|
||||
// Measured: `571 + s * (33 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 51_464_000 picoseconds.
|
||||
Weight::from_parts(39_246_644, 6811)
|
||||
// Standard Error: 1_251
|
||||
.saturating_add(Weight::from_parts(143_313, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 12
|
||||
.saturating_add(Weight::from_parts(1_523, 0).saturating_mul(z.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 54_427_000 picoseconds.
|
||||
Weight::from_parts(43_677_970, 6811)
|
||||
// Standard Error: 1_342
|
||||
.saturating_add(Weight::from_parts(154_697, 0).saturating_mul(s.into()))
|
||||
// Standard Error: 13
|
||||
.saturating_add(Weight::from_parts(1_534, 0).saturating_mul(z.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Multisig Multisigs (r:1 w:1)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `301 + s * (2 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 33_275_000 picoseconds.
|
||||
Weight::from_parts(34_073_221, 6811)
|
||||
// Standard Error: 1_163
|
||||
.saturating_add(Weight::from_parts(124_815, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 29_102_000 picoseconds.
|
||||
Weight::from_parts(30_317_105, 6811)
|
||||
// Standard Error: 903
|
||||
.saturating_add(Weight::from_parts(109_792, 0).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)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `320`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 18_411_000 picoseconds.
|
||||
Weight::from_parts(19_431_787, 6811)
|
||||
// Standard Error: 694
|
||||
.saturating_add(Weight::from_parts(107_220, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 16_300_000 picoseconds.
|
||||
Weight::from_parts(17_358_877, 6811)
|
||||
// Standard Error: 522
|
||||
.saturating_add(Weight::from_parts(99_194, 0).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)
|
||||
/// Proof: Multisig Multisigs (max_values: None, max_size: Some(3346), added: 5821, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `492 + s * (1 ±0)`
|
||||
// Estimated: `6811`
|
||||
// Minimum execution time: 33_985_000 picoseconds.
|
||||
Weight::from_parts(35_547_970, 6811)
|
||||
// Standard Error: 1_135
|
||||
.saturating_add(Weight::from_parts(116_537, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 30_147_000 picoseconds.
|
||||
Weight::from_parts(32_003_421, 6811)
|
||||
// Standard Error: 1_077
|
||||
.saturating_add(Weight::from_parts(108_567, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
+104
-105
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_nft_fractionalization
|
||||
//! Autogenerated weights for `pallet_nft_fractionalization`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/nft-fractionalization/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/nft-fractionalization/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,136 +49,136 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_nft_fractionalization.
|
||||
/// Weight functions needed for `pallet_nft_fractionalization`.
|
||||
pub trait WeightInfo {
|
||||
fn fractionalize() -> Weight;
|
||||
fn unify() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_nft_fractionalization using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_nft_fractionalization` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Nfts Item (r:1 w:0)
|
||||
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Collection (r:1 w:1)
|
||||
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Attribute (r:1 w:1)
|
||||
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, 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(134), added: 2609, 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 Metadata (r:1 w:1)
|
||||
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
|
||||
/// Storage: NftFractionalization NftToAsset (r:0 w:1)
|
||||
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
||||
/// Storage: `Nfts::Item` (r:1 w:0)
|
||||
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
||||
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Collection` (r:1 w:1)
|
||||
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, 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(134), added: 2609, 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::Metadata` (r:1 w:1)
|
||||
/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NftFractionalization::NftToAsset` (r:0 w:1)
|
||||
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
|
||||
fn fractionalize() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `609`
|
||||
// Estimated: `4326`
|
||||
// Minimum execution time: 187_416_000 picoseconds.
|
||||
Weight::from_parts(191_131_000, 4326)
|
||||
// Minimum execution time: 174_545_000 picoseconds.
|
||||
Weight::from_parts(177_765_000, 4326)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8_u64))
|
||||
}
|
||||
/// Storage: NftFractionalization NftToAsset (r:1 w:1)
|
||||
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, 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(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Attribute (r:1 w:1)
|
||||
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Collection (r:1 w:1)
|
||||
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts CollectionConfigOf (r:1 w:0)
|
||||
/// Proof: Nfts CollectionConfigOf (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts ItemConfigOf (r:1 w:0)
|
||||
/// Proof: Nfts ItemConfigOf (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Item (r:1 w:1)
|
||||
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Account (r:0 w:1)
|
||||
/// Proof: Nfts Account (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts ItemPriceOf (r:0 w:1)
|
||||
/// Proof: Nfts ItemPriceOf (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts PendingSwapOf (r:0 w:1)
|
||||
/// Proof: Nfts PendingSwapOf (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
|
||||
/// Storage: `NftFractionalization::NftToAsset` (r:1 w:1)
|
||||
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, 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(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
||||
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Collection` (r:1 w:1)
|
||||
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
||||
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
||||
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Item` (r:1 w:1)
|
||||
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Account` (r:0 w:1)
|
||||
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
|
||||
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
|
||||
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
||||
fn unify() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1422`
|
||||
// Estimated: `4326`
|
||||
// Minimum execution time: 134_159_000 picoseconds.
|
||||
Weight::from_parts(136_621_000, 4326)
|
||||
// Minimum execution time: 128_211_000 picoseconds.
|
||||
Weight::from_parts(131_545_000, 4326)
|
||||
.saturating_add(T::DbWeight::get().reads(9_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(10_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Nfts Item (r:1 w:0)
|
||||
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Collection (r:1 w:1)
|
||||
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Attribute (r:1 w:1)
|
||||
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, 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(134), added: 2609, 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 Metadata (r:1 w:1)
|
||||
/// Proof: Assets Metadata (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen)
|
||||
/// Storage: NftFractionalization NftToAsset (r:0 w:1)
|
||||
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, mode: MaxEncodedLen)
|
||||
/// Storage: `Nfts::Item` (r:1 w:0)
|
||||
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
||||
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Collection` (r:1 w:1)
|
||||
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, 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(134), added: 2609, 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::Metadata` (r:1 w:1)
|
||||
/// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NftFractionalization::NftToAsset` (r:0 w:1)
|
||||
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
|
||||
fn fractionalize() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `609`
|
||||
// Estimated: `4326`
|
||||
// Minimum execution time: 187_416_000 picoseconds.
|
||||
Weight::from_parts(191_131_000, 4326)
|
||||
// Minimum execution time: 174_545_000 picoseconds.
|
||||
Weight::from_parts(177_765_000, 4326)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8_u64))
|
||||
}
|
||||
/// Storage: NftFractionalization NftToAsset (r:1 w:1)
|
||||
/// Proof: NftFractionalization NftToAsset (max_values: None, max_size: Some(92), added: 2567, 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(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Attribute (r:1 w:1)
|
||||
/// Proof: Nfts Attribute (max_values: None, max_size: Some(446), added: 2921, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Collection (r:1 w:1)
|
||||
/// Proof: Nfts Collection (max_values: None, max_size: Some(84), added: 2559, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts CollectionConfigOf (r:1 w:0)
|
||||
/// Proof: Nfts CollectionConfigOf (max_values: None, max_size: Some(73), added: 2548, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts ItemConfigOf (r:1 w:0)
|
||||
/// Proof: Nfts ItemConfigOf (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Item (r:1 w:1)
|
||||
/// Proof: Nfts Item (max_values: None, max_size: Some(861), added: 3336, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts Account (r:0 w:1)
|
||||
/// Proof: Nfts Account (max_values: None, max_size: Some(88), added: 2563, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts ItemPriceOf (r:0 w:1)
|
||||
/// Proof: Nfts ItemPriceOf (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen)
|
||||
/// Storage: Nfts PendingSwapOf (r:0 w:1)
|
||||
/// Proof: Nfts PendingSwapOf (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)
|
||||
/// Storage: `NftFractionalization::NftToAsset` (r:1 w:1)
|
||||
/// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, 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(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Attribute` (r:1 w:1)
|
||||
/// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Collection` (r:1 w:1)
|
||||
/// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
|
||||
/// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
|
||||
/// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Item` (r:1 w:1)
|
||||
/// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::Account` (r:0 w:1)
|
||||
/// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
|
||||
/// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
|
||||
/// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
|
||||
fn unify() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1422`
|
||||
// Estimated: `4326`
|
||||
// Minimum execution time: 134_159_000 picoseconds.
|
||||
Weight::from_parts(136_621_000, 4326)
|
||||
// Minimum execution time: 128_211_000 picoseconds.
|
||||
Weight::from_parts(131_545_000, 4326)
|
||||
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(10_u64))
|
||||
}
|
||||
|
||||
Generated
+844
-836
File diff suppressed because it is too large
Load Diff
Generated
+234
-235
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_nis
|
||||
//! Autogenerated weights for `pallet_nis`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/nis/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/nis/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_nis.
|
||||
/// Weight functions needed for `pallet_nis`.
|
||||
pub trait WeightInfo {
|
||||
fn place_bid(l: u32, ) -> Weight;
|
||||
fn place_bid_max() -> Weight;
|
||||
@@ -65,367 +64,367 @@ pub trait WeightInfo {
|
||||
fn process_bid() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_nis using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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: `Nis::Queues` (r:1 w:1)
|
||||
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6176 + l * (48 ±0)`
|
||||
// Measured: `6210 + l * (48 ±0)`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 49_410_000 picoseconds.
|
||||
Weight::from_parts(57_832_282, 51487)
|
||||
// Standard Error: 288
|
||||
.saturating_add(Weight::from_parts(51_621, 0).saturating_mul(l.into()))
|
||||
// Minimum execution time: 47_065_000 picoseconds.
|
||||
Weight::from_parts(52_894_557, 51487)
|
||||
// Standard Error: 275
|
||||
.saturating_add(Weight::from_parts(48_441, 0).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)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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: `Nis::Queues` (r:1 w:1)
|
||||
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `54178`
|
||||
// Measured: `54212`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 119_696_000 picoseconds.
|
||||
Weight::from_parts(121_838_000, 51487)
|
||||
// Minimum execution time: 111_930_000 picoseconds.
|
||||
Weight::from_parts(114_966_000, 51487)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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: `Nis::Queues` (r:1 w:1)
|
||||
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 `[1, 1000]`.
|
||||
fn retract_bid(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6176 + l * (48 ±0)`
|
||||
// Measured: `6210 + l * (48 ±0)`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 50_843_000 picoseconds.
|
||||
Weight::from_parts(54_237_365, 51487)
|
||||
// Standard Error: 243
|
||||
.saturating_add(Weight::from_parts(67_732, 0).saturating_mul(l.into()))
|
||||
// Minimum execution time: 47_726_000 picoseconds.
|
||||
Weight::from_parts(48_162_043, 51487)
|
||||
// Standard Error: 187
|
||||
.saturating_add(Weight::from_parts(38_372, 0).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)
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `191`
|
||||
// Measured: `225`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 40_752_000 picoseconds.
|
||||
Weight::from_parts(41_899_000, 3593)
|
||||
// Minimum execution time: 31_194_000 picoseconds.
|
||||
Weight::from_parts(32_922_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: `Nis::Receipts` (r:1 w:1)
|
||||
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn communify() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `668`
|
||||
// Measured: `702`
|
||||
// Estimated: `3675`
|
||||
// Minimum execution time: 79_779_000 picoseconds.
|
||||
Weight::from_parts(82_478_000, 3675)
|
||||
// Minimum execution time: 73_288_000 picoseconds.
|
||||
Weight::from_parts(76_192_000, 3675)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// 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(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn privatize() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `829`
|
||||
// Measured: `863`
|
||||
// Estimated: `3675`
|
||||
// Minimum execution time: 99_588_000 picoseconds.
|
||||
Weight::from_parts(102_340_000, 3675)
|
||||
// Minimum execution time: 94_307_000 picoseconds.
|
||||
Weight::from_parts(96_561_000, 3675)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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 Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// 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::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn thaw_private() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `354`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 53_094_000 picoseconds.
|
||||
Weight::from_parts(54_543_000, 3593)
|
||||
// Measured: `388`
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 49_873_000 picoseconds.
|
||||
Weight::from_parts(51_361_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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(134), added: 2609, 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::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(134), added: 2609, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `773`
|
||||
// Measured: `807`
|
||||
// Estimated: `3675`
|
||||
// Minimum execution time: 107_248_000 picoseconds.
|
||||
Weight::from_parts(109_923_000, 3675)
|
||||
// Minimum execution time: 96_884_000 picoseconds.
|
||||
Weight::from_parts(98_867_000, 3675)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6624`
|
||||
// Measured: `6658`
|
||||
// Estimated: `7487`
|
||||
// Minimum execution time: 27_169_000 picoseconds.
|
||||
Weight::from_parts(29_201_000, 7487)
|
||||
// Minimum execution time: 21_019_000 picoseconds.
|
||||
Weight::from_parts(22_057_000, 7487)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Measured: `76`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 4_540_000 picoseconds.
|
||||
Weight::from_parts(4_699_000, 51487)
|
||||
// Minimum execution time: 4_746_000 picoseconds.
|
||||
Weight::from_parts(4_953_000, 51487)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Nis Receipts (r:0 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_085_000 picoseconds.
|
||||
Weight::from_parts(7_336_000, 0)
|
||||
// Minimum execution time: 4_836_000 picoseconds.
|
||||
Weight::from_parts(5_093_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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: `Nis::Queues` (r:1 w:1)
|
||||
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6176 + l * (48 ±0)`
|
||||
// Measured: `6210 + l * (48 ±0)`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 49_410_000 picoseconds.
|
||||
Weight::from_parts(57_832_282, 51487)
|
||||
// Standard Error: 288
|
||||
.saturating_add(Weight::from_parts(51_621, 0).saturating_mul(l.into()))
|
||||
// Minimum execution time: 47_065_000 picoseconds.
|
||||
Weight::from_parts(52_894_557, 51487)
|
||||
// Standard Error: 275
|
||||
.saturating_add(Weight::from_parts(48_441, 0).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)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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: `Nis::Queues` (r:1 w:1)
|
||||
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `54178`
|
||||
// Measured: `54212`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 119_696_000 picoseconds.
|
||||
Weight::from_parts(121_838_000, 51487)
|
||||
// Minimum execution time: 111_930_000 picoseconds.
|
||||
Weight::from_parts(114_966_000, 51487)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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: `Nis::Queues` (r:1 w:1)
|
||||
/// Proof: `Nis::Queues` (`max_values`: None, `max_size`: Some(48022), added: 50497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 `[1, 1000]`.
|
||||
fn retract_bid(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6176 + l * (48 ±0)`
|
||||
// Measured: `6210 + l * (48 ±0)`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 50_843_000 picoseconds.
|
||||
Weight::from_parts(54_237_365, 51487)
|
||||
// Standard Error: 243
|
||||
.saturating_add(Weight::from_parts(67_732, 0).saturating_mul(l.into()))
|
||||
// Minimum execution time: 47_726_000 picoseconds.
|
||||
Weight::from_parts(48_162_043, 51487)
|
||||
// Standard Error: 187
|
||||
.saturating_add(Weight::from_parts(38_372, 0).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)
|
||||
/// 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: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `191`
|
||||
// Measured: `225`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 40_752_000 picoseconds.
|
||||
Weight::from_parts(41_899_000, 3593)
|
||||
// Minimum execution time: 31_194_000 picoseconds.
|
||||
Weight::from_parts(32_922_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Nis Receipts (r:1 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, 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(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: `Nis::Receipts` (r:1 w:1)
|
||||
/// Proof: `Nis::Receipts` (`max_values`: None, `max_size`: Some(81), added: 2556, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
fn communify() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `668`
|
||||
// Measured: `702`
|
||||
// Estimated: `3675`
|
||||
// Minimum execution time: 79_779_000 picoseconds.
|
||||
Weight::from_parts(82_478_000, 3675)
|
||||
// Minimum execution time: 73_288_000 picoseconds.
|
||||
Weight::from_parts(76_192_000, 3675)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: Balances Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// 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(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn privatize() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `829`
|
||||
// Measured: `863`
|
||||
// Estimated: `3675`
|
||||
// Minimum execution time: 99_588_000 picoseconds.
|
||||
Weight::from_parts(102_340_000, 3675)
|
||||
// Minimum execution time: 94_307_000 picoseconds.
|
||||
Weight::from_parts(96_561_000, 3675)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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 Holds (r:1 w:1)
|
||||
/// Proof: Balances Holds (max_values: None, max_size: Some(85), added: 2560, mode: MaxEncodedLen)
|
||||
/// 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::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn thaw_private() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `354`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 53_094_000 picoseconds.
|
||||
Weight::from_parts(54_543_000, 3593)
|
||||
// Measured: `388`
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 49_873_000 picoseconds.
|
||||
Weight::from_parts(51_361_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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(134), added: 2609, 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::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(134), added: 2609, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `773`
|
||||
// Measured: `807`
|
||||
// Estimated: `3675`
|
||||
// Minimum execution time: 107_248_000 picoseconds.
|
||||
Weight::from_parts(109_923_000, 3675)
|
||||
// Minimum execution time: 96_884_000 picoseconds.
|
||||
Weight::from_parts(98_867_000, 3675)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `6624`
|
||||
// Measured: `6658`
|
||||
// Estimated: `7487`
|
||||
// Minimum execution time: 27_169_000 picoseconds.
|
||||
Weight::from_parts(29_201_000, 7487)
|
||||
// Minimum execution time: 21_019_000 picoseconds.
|
||||
Weight::from_parts(22_057_000, 7487)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Nis Queues (r:1 w:1)
|
||||
/// Proof: Nis Queues (max_values: None, max_size: Some(48022), added: 50497, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Measured: `76`
|
||||
// Estimated: `51487`
|
||||
// Minimum execution time: 4_540_000 picoseconds.
|
||||
Weight::from_parts(4_699_000, 51487)
|
||||
// Minimum execution time: 4_746_000 picoseconds.
|
||||
Weight::from_parts(4_953_000, 51487)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Nis Receipts (r:0 w:1)
|
||||
/// Proof: Nis Receipts (max_values: None, max_size: Some(81), added: 2556, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 7_085_000 picoseconds.
|
||||
Weight::from_parts(7_336_000, 0)
|
||||
// Minimum execution time: 4_836_000 picoseconds.
|
||||
Weight::from_parts(5_093_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
+141
-136
@@ -18,30 +18,27 @@
|
||||
//! Autogenerated weights for `pallet_nomination_pools`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-03-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-p5qp1txx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_nomination_pools
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_nomination_pools
|
||||
// --chain=dev
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_nomination_pools
|
||||
// --chain=dev
|
||||
// --output=./substrate/frame/nomination-pools/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/nomination-pools/src/weights.rs
|
||||
// --output=./substrate/frame/nomination-pools/src/weights.rs
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -117,8 +114,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3425`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 182_643_000 picoseconds.
|
||||
Weight::from_parts(186_106_000, 8877)
|
||||
// Minimum execution time: 201_783_000 picoseconds.
|
||||
Weight::from_parts(206_014_000, 8877)
|
||||
.saturating_add(T::DbWeight::get().reads(20_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(13_u64))
|
||||
}
|
||||
@@ -150,8 +147,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3435`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 181_464_000 picoseconds.
|
||||
Weight::from_parts(184_672_000, 8877)
|
||||
// Minimum execution time: 204_124_000 picoseconds.
|
||||
Weight::from_parts(207_910_000, 8877)
|
||||
.saturating_add(T::DbWeight::get().reads(17_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(13_u64))
|
||||
}
|
||||
@@ -185,8 +182,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3500`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 216_182_000 picoseconds.
|
||||
Weight::from_parts(218_448_000, 8877)
|
||||
// Minimum execution time: 240_342_000 picoseconds.
|
||||
Weight::from_parts(245_735_000, 8877)
|
||||
.saturating_add(T::DbWeight::get().reads(18_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(14_u64))
|
||||
}
|
||||
@@ -206,8 +203,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1172`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 73_830_000 picoseconds.
|
||||
Weight::from_parts(75_271_000, 3719)
|
||||
// Minimum execution time: 81_054_000 picoseconds.
|
||||
Weight::from_parts(83_324_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -247,8 +244,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3622`
|
||||
// Estimated: `27847`
|
||||
// Minimum execution time: 166_099_000 picoseconds.
|
||||
Weight::from_parts(170_355_000, 27847)
|
||||
// Minimum execution time: 188_835_000 picoseconds.
|
||||
Weight::from_parts(192_565_000, 27847)
|
||||
.saturating_add(T::DbWeight::get().reads(20_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(13_u64))
|
||||
}
|
||||
@@ -264,17 +261,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
|
||||
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1817`
|
||||
// Measured: `1848`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 64_787_000 picoseconds.
|
||||
Weight::from_parts(67_920_914, 4764)
|
||||
// Standard Error: 1_482
|
||||
.saturating_add(Weight::from_parts(43_264, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 73_556_000 picoseconds.
|
||||
Weight::from_parts(76_075_881, 4764)
|
||||
// Standard Error: 1_419
|
||||
.saturating_add(Weight::from_parts(54_476, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -296,6 +295,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
|
||||
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
|
||||
@@ -305,12 +306,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2207`
|
||||
// Measured: `2238`
|
||||
// Estimated: `27847`
|
||||
// Minimum execution time: 124_990_000 picoseconds.
|
||||
Weight::from_parts(129_041_398, 27847)
|
||||
// Standard Error: 2_335
|
||||
.saturating_add(Weight::from_parts(67_889, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 144_177_000 picoseconds.
|
||||
Weight::from_parts(148_686_524, 27847)
|
||||
// Standard Error: 2_475
|
||||
.saturating_add(Weight::from_parts(77_460, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(12_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(9_u64))
|
||||
}
|
||||
@@ -338,12 +339,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Nominators` (r:1 w:0)
|
||||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
|
||||
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
|
||||
/// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::CounterForReversePoolIdLookup` (r:1 w:1)
|
||||
/// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::RewardPools` (r:1 w:1)
|
||||
@@ -365,10 +366,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2525`
|
||||
// Estimated: `27847`
|
||||
// Minimum execution time: 221_955_000 picoseconds.
|
||||
Weight::from_parts(230_244_437, 27847)
|
||||
// Standard Error: 4_059
|
||||
.saturating_add(Weight::from_parts(7_522, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 255_957_000 picoseconds.
|
||||
Weight::from_parts(264_206_788, 27847)
|
||||
// Standard Error: 4_229
|
||||
.saturating_add(Weight::from_parts(3_064, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(24_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(20_u64))
|
||||
}
|
||||
@@ -396,6 +397,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Bonded` (r:1 w:1)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:1 w:1)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:2 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:2 w:1)
|
||||
@@ -412,17 +415,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::BondedPools` (r:1 w:1)
|
||||
/// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:0 w:1)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Payee` (r:0 w:1)
|
||||
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn create() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1169`
|
||||
// Measured: `1284`
|
||||
// Estimated: `8538`
|
||||
// Minimum execution time: 165_358_000 picoseconds.
|
||||
Weight::from_parts(169_683_000, 8538)
|
||||
.saturating_add(T::DbWeight::get().reads(23_u64))
|
||||
// Minimum execution time: 193_527_000 picoseconds.
|
||||
Weight::from_parts(197_140_000, 8538)
|
||||
.saturating_add(T::DbWeight::get().reads(24_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(17_u64))
|
||||
}
|
||||
/// Storage: `NominationPools::BondedPools` (r:1 w:0)
|
||||
@@ -460,10 +461,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1976`
|
||||
// Estimated: `4556 + n * (2520 ±0)`
|
||||
// Minimum execution time: 74_483_000 picoseconds.
|
||||
Weight::from_parts(76_611_288, 4556)
|
||||
// Standard Error: 9_013
|
||||
.saturating_add(Weight::from_parts(1_475_128, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 86_054_000 picoseconds.
|
||||
Weight::from_parts(88_743_932, 4556)
|
||||
// Standard Error: 12_699
|
||||
.saturating_add(Weight::from_parts(1_829_097, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(15_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
@@ -479,8 +480,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1434`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 32_598_000 picoseconds.
|
||||
Weight::from_parts(33_350_000, 4556)
|
||||
// Minimum execution time: 34_544_000 picoseconds.
|
||||
Weight::from_parts(35_910_000, 4556)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -495,10 +496,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3735`
|
||||
// Minimum execution time: 13_705_000 picoseconds.
|
||||
Weight::from_parts(14_594_211, 3735)
|
||||
// Standard Error: 141
|
||||
.saturating_add(Weight::from_parts(2_119, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 14_111_000 picoseconds.
|
||||
Weight::from_parts(15_204_218, 3735)
|
||||
// Standard Error: 226
|
||||
.saturating_add(Weight::from_parts(1_291, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -518,8 +519,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_222_000 picoseconds.
|
||||
Weight::from_parts(4_527_000, 0)
|
||||
// Minimum execution time: 4_524_000 picoseconds.
|
||||
Weight::from_parts(4_882_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: `NominationPools::BondedPools` (r:1 w:1)
|
||||
@@ -528,8 +529,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_106_000 picoseconds.
|
||||
Weight::from_parts(17_365_000, 3719)
|
||||
// Minimum execution time: 17_975_000 picoseconds.
|
||||
Weight::from_parts(18_549_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -559,8 +560,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2143`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 71_301_000 picoseconds.
|
||||
Weight::from_parts(73_626_000, 4556)
|
||||
// Minimum execution time: 81_574_000 picoseconds.
|
||||
Weight::from_parts(83_519_000, 4556)
|
||||
.saturating_add(T::DbWeight::get().reads(11_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -576,8 +577,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `804`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 32_363_000 picoseconds.
|
||||
Weight::from_parts(33_400_000, 3719)
|
||||
// Minimum execution time: 35_015_000 picoseconds.
|
||||
Weight::from_parts(36_159_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -589,8 +590,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `572`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_686_000 picoseconds.
|
||||
Weight::from_parts(17_294_000, 3719)
|
||||
// Minimum execution time: 17_775_000 picoseconds.
|
||||
Weight::from_parts(18_358_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -600,8 +601,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_417_000 picoseconds.
|
||||
Weight::from_parts(17_028_000, 3719)
|
||||
// Minimum execution time: 16_997_000 picoseconds.
|
||||
Weight::from_parts(18_041_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -611,8 +612,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_350_000 picoseconds.
|
||||
Weight::from_parts(16_905_000, 3719)
|
||||
// Minimum execution time: 17_000_000 picoseconds.
|
||||
Weight::from_parts(17_807_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -624,8 +625,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `542`
|
||||
// Estimated: `3702`
|
||||
// Minimum execution time: 14_081_000 picoseconds.
|
||||
Weight::from_parts(14_608_000, 3702)
|
||||
// Minimum execution time: 14_803_000 picoseconds.
|
||||
Weight::from_parts(15_401_000, 3702)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -641,8 +642,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1002`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 62_178_000 picoseconds.
|
||||
Weight::from_parts(64_039_000, 3719)
|
||||
// Minimum execution time: 69_759_000 picoseconds.
|
||||
Weight::from_parts(71_985_000, 3719)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -658,8 +659,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `901`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 64_880_000 picoseconds.
|
||||
Weight::from_parts(66_541_000, 4764)
|
||||
// Minimum execution time: 73_829_000 picoseconds.
|
||||
Weight::from_parts(75_966_000, 4764)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -703,8 +704,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3425`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 182_643_000 picoseconds.
|
||||
Weight::from_parts(186_106_000, 8877)
|
||||
// Minimum execution time: 201_783_000 picoseconds.
|
||||
Weight::from_parts(206_014_000, 8877)
|
||||
.saturating_add(RocksDbWeight::get().reads(20_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
||||
}
|
||||
@@ -736,8 +737,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3435`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 181_464_000 picoseconds.
|
||||
Weight::from_parts(184_672_000, 8877)
|
||||
// Minimum execution time: 204_124_000 picoseconds.
|
||||
Weight::from_parts(207_910_000, 8877)
|
||||
.saturating_add(RocksDbWeight::get().reads(17_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
||||
}
|
||||
@@ -771,8 +772,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3500`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 216_182_000 picoseconds.
|
||||
Weight::from_parts(218_448_000, 8877)
|
||||
// Minimum execution time: 240_342_000 picoseconds.
|
||||
Weight::from_parts(245_735_000, 8877)
|
||||
.saturating_add(RocksDbWeight::get().reads(18_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(14_u64))
|
||||
}
|
||||
@@ -792,8 +793,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1172`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 73_830_000 picoseconds.
|
||||
Weight::from_parts(75_271_000, 3719)
|
||||
// Minimum execution time: 81_054_000 picoseconds.
|
||||
Weight::from_parts(83_324_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -833,8 +834,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3622`
|
||||
// Estimated: `27847`
|
||||
// Minimum execution time: 166_099_000 picoseconds.
|
||||
Weight::from_parts(170_355_000, 27847)
|
||||
// Minimum execution time: 188_835_000 picoseconds.
|
||||
Weight::from_parts(192_565_000, 27847)
|
||||
.saturating_add(RocksDbWeight::get().reads(20_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(13_u64))
|
||||
}
|
||||
@@ -850,17 +851,19 @@ impl WeightInfo for () {
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:1 w:0)
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
|
||||
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn pool_withdraw_unbonded(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1817`
|
||||
// Measured: `1848`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 64_787_000 picoseconds.
|
||||
Weight::from_parts(67_920_914, 4764)
|
||||
// Standard Error: 1_482
|
||||
.saturating_add(Weight::from_parts(43_264, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 73_556_000 picoseconds.
|
||||
Weight::from_parts(76_075_881, 4764)
|
||||
// Standard Error: 1_419
|
||||
.saturating_add(Weight::from_parts(54_476, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -882,6 +885,8 @@ impl WeightInfo for () {
|
||||
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:0)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
|
||||
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
|
||||
@@ -891,12 +896,12 @@ impl WeightInfo for () {
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2207`
|
||||
// Measured: `2238`
|
||||
// Estimated: `27847`
|
||||
// Minimum execution time: 124_990_000 picoseconds.
|
||||
Weight::from_parts(129_041_398, 27847)
|
||||
// Standard Error: 2_335
|
||||
.saturating_add(Weight::from_parts(67_889, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 144_177_000 picoseconds.
|
||||
Weight::from_parts(148_686_524, 27847)
|
||||
// Standard Error: 2_475
|
||||
.saturating_add(Weight::from_parts(77_460, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(12_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(9_u64))
|
||||
}
|
||||
@@ -924,12 +929,12 @@ impl WeightInfo for () {
|
||||
/// Proof: `Staking::Validators` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Nominators` (r:1 w:0)
|
||||
/// Proof: `Staking::Nominators` (`max_values`: None, `max_size`: Some(558), added: 3033, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::TotalValueLocked` (r:1 w:1)
|
||||
/// Proof: `NominationPools::TotalValueLocked` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::CounterForPoolMembers` (r:1 w:1)
|
||||
/// Proof: `NominationPools::CounterForPoolMembers` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::ReversePoolIdLookup` (r:1 w:1)
|
||||
/// Proof: `NominationPools::ReversePoolIdLookup` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::CounterForReversePoolIdLookup` (r:1 w:1)
|
||||
/// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::RewardPools` (r:1 w:1)
|
||||
@@ -951,10 +956,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2525`
|
||||
// Estimated: `27847`
|
||||
// Minimum execution time: 221_955_000 picoseconds.
|
||||
Weight::from_parts(230_244_437, 27847)
|
||||
// Standard Error: 4_059
|
||||
.saturating_add(Weight::from_parts(7_522, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 255_957_000 picoseconds.
|
||||
Weight::from_parts(264_206_788, 27847)
|
||||
// Standard Error: 4_229
|
||||
.saturating_add(Weight::from_parts(3_064, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(24_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(20_u64))
|
||||
}
|
||||
@@ -982,6 +987,8 @@ impl WeightInfo for () {
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Bonded` (r:1 w:1)
|
||||
/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:1 w:1)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Locks` (r:2 w:1)
|
||||
/// Proof: `Balances::Locks` (`max_values`: None, `max_size`: Some(1299), added: 3774, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Freezes` (r:2 w:1)
|
||||
@@ -998,17 +1005,15 @@ impl WeightInfo for () {
|
||||
/// Proof: `NominationPools::CounterForReversePoolIdLookup` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `NominationPools::BondedPools` (r:1 w:1)
|
||||
/// Proof: `NominationPools::BondedPools` (`max_values`: None, `max_size`: Some(254), added: 2729, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Ledger` (r:0 w:1)
|
||||
/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Staking::Payee` (r:0 w:1)
|
||||
/// Proof: `Staking::Payee` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn create() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1169`
|
||||
// Measured: `1284`
|
||||
// Estimated: `8538`
|
||||
// Minimum execution time: 165_358_000 picoseconds.
|
||||
Weight::from_parts(169_683_000, 8538)
|
||||
.saturating_add(RocksDbWeight::get().reads(23_u64))
|
||||
// Minimum execution time: 193_527_000 picoseconds.
|
||||
Weight::from_parts(197_140_000, 8538)
|
||||
.saturating_add(RocksDbWeight::get().reads(24_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(17_u64))
|
||||
}
|
||||
/// Storage: `NominationPools::BondedPools` (r:1 w:0)
|
||||
@@ -1046,10 +1051,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1976`
|
||||
// Estimated: `4556 + n * (2520 ±0)`
|
||||
// Minimum execution time: 74_483_000 picoseconds.
|
||||
Weight::from_parts(76_611_288, 4556)
|
||||
// Standard Error: 9_013
|
||||
.saturating_add(Weight::from_parts(1_475_128, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 86_054_000 picoseconds.
|
||||
Weight::from_parts(88_743_932, 4556)
|
||||
// Standard Error: 12_699
|
||||
.saturating_add(Weight::from_parts(1_829_097, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(15_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
@@ -1065,8 +1070,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1434`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 32_598_000 picoseconds.
|
||||
Weight::from_parts(33_350_000, 4556)
|
||||
// Minimum execution time: 34_544_000 picoseconds.
|
||||
Weight::from_parts(35_910_000, 4556)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1081,10 +1086,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3735`
|
||||
// Minimum execution time: 13_705_000 picoseconds.
|
||||
Weight::from_parts(14_594_211, 3735)
|
||||
// Standard Error: 141
|
||||
.saturating_add(Weight::from_parts(2_119, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 14_111_000 picoseconds.
|
||||
Weight::from_parts(15_204_218, 3735)
|
||||
// Standard Error: 226
|
||||
.saturating_add(Weight::from_parts(1_291, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -1104,8 +1109,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_222_000 picoseconds.
|
||||
Weight::from_parts(4_527_000, 0)
|
||||
// Minimum execution time: 4_524_000 picoseconds.
|
||||
Weight::from_parts(4_882_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// Storage: `NominationPools::BondedPools` (r:1 w:1)
|
||||
@@ -1114,8 +1119,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_106_000 picoseconds.
|
||||
Weight::from_parts(17_365_000, 3719)
|
||||
// Minimum execution time: 17_975_000 picoseconds.
|
||||
Weight::from_parts(18_549_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1145,8 +1150,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2143`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 71_301_000 picoseconds.
|
||||
Weight::from_parts(73_626_000, 4556)
|
||||
// Minimum execution time: 81_574_000 picoseconds.
|
||||
Weight::from_parts(83_519_000, 4556)
|
||||
.saturating_add(RocksDbWeight::get().reads(11_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -1162,8 +1167,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `804`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 32_363_000 picoseconds.
|
||||
Weight::from_parts(33_400_000, 3719)
|
||||
// Minimum execution time: 35_015_000 picoseconds.
|
||||
Weight::from_parts(36_159_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -1175,8 +1180,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `572`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_686_000 picoseconds.
|
||||
Weight::from_parts(17_294_000, 3719)
|
||||
// Minimum execution time: 17_775_000 picoseconds.
|
||||
Weight::from_parts(18_358_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1186,8 +1191,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_417_000 picoseconds.
|
||||
Weight::from_parts(17_028_000, 3719)
|
||||
// Minimum execution time: 16_997_000 picoseconds.
|
||||
Weight::from_parts(18_041_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1197,8 +1202,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `532`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 16_350_000 picoseconds.
|
||||
Weight::from_parts(16_905_000, 3719)
|
||||
// Minimum execution time: 17_000_000 picoseconds.
|
||||
Weight::from_parts(17_807_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1210,8 +1215,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `542`
|
||||
// Estimated: `3702`
|
||||
// Minimum execution time: 14_081_000 picoseconds.
|
||||
Weight::from_parts(14_608_000, 3702)
|
||||
// Minimum execution time: 14_803_000 picoseconds.
|
||||
Weight::from_parts(15_401_000, 3702)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1227,8 +1232,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1002`
|
||||
// Estimated: `3719`
|
||||
// Minimum execution time: 62_178_000 picoseconds.
|
||||
Weight::from_parts(64_039_000, 3719)
|
||||
// Minimum execution time: 69_759_000 picoseconds.
|
||||
Weight::from_parts(71_985_000, 3719)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -1244,8 +1249,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `901`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 64_880_000 picoseconds.
|
||||
Weight::from_parts(66_541_000, 4764)
|
||||
// Minimum execution time: 73_829_000 picoseconds.
|
||||
Weight::from_parts(75_966_000, 4764)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
|
||||
+25
-15
@@ -18,25 +18,27 @@
|
||||
//! Autogenerated weights for `pallet_parameters`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-02-05, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-bn-ce5rx-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_parameters
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_parameters
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/parameters/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -55,22 +57,30 @@ pub trait WeightInfo {
|
||||
/// Weights for `pallet_parameters` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `Parameters::Parameters` (r:1 w:1)
|
||||
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn set_parameter() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 0_000 picoseconds.
|
||||
Weight::from_parts(0, 0)
|
||||
// Measured: `3`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 8_360_000 picoseconds.
|
||||
Weight::from_parts(8_568_000, 3501)
|
||||
.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: `Parameters::Parameters` (r:1 w:1)
|
||||
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
fn set_parameter() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 0_000 picoseconds.
|
||||
Weight::from_parts(0, 0)
|
||||
// Measured: `3`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 8_360_000 picoseconds.
|
||||
Weight::from_parts(8_568_000, 3501)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+176
-156
@@ -17,26 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_preimage`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-09-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-mia4uyug-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_preimage
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_preimage
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/preimage/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -70,200 +72,209 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
||||
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 15_936_000 picoseconds.
|
||||
Weight::from_parts(16_271_000, 3556)
|
||||
// Measured: `112`
|
||||
// Estimated: `6012`
|
||||
// Minimum execution time: 52_531_000 picoseconds.
|
||||
Weight::from_parts(53_245_000, 6012)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_916, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(1_744, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 16_468_000 picoseconds.
|
||||
Weight::from_parts(17_031_000, 3556)
|
||||
// Minimum execution time: 15_601_000 picoseconds.
|
||||
Weight::from_parts(15_871_000, 3556)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_parts(1_948, 0).saturating_mul(s.into()))
|
||||
.saturating_add(Weight::from_parts(1_836, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 16_342_000 picoseconds.
|
||||
Weight::from_parts(16_535_000, 3556)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_906, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 15_614_000 picoseconds.
|
||||
Weight::from_parts(15_934_000, 3556)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_parts(1_832, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 31_047_000 picoseconds.
|
||||
Weight::from_parts(34_099_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
// Measured: `311`
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 53_001_000 picoseconds.
|
||||
Weight::from_parts(55_866_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Measured: `211`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 32_559_000 picoseconds.
|
||||
Weight::from_parts(36_677_000, 3556)
|
||||
// Minimum execution time: 26_901_000 picoseconds.
|
||||
Weight::from_parts(28_079_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Measured: `255`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 27_887_000 picoseconds.
|
||||
Weight::from_parts(30_303_000, 3556)
|
||||
// Minimum execution time: 21_716_000 picoseconds.
|
||||
Weight::from_parts(25_318_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_no_deposit_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Measured: `211`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 17_256_000 picoseconds.
|
||||
Weight::from_parts(19_481_000, 3556)
|
||||
// Minimum execution time: 13_890_000 picoseconds.
|
||||
Weight::from_parts(14_744_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_unnoted_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Measured: `109`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 22_344_000 picoseconds.
|
||||
Weight::from_parts(23_868_000, 3556)
|
||||
// Minimum execution time: 14_192_000 picoseconds.
|
||||
Weight::from_parts(15_113_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_requested_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 10_542_000 picoseconds.
|
||||
Weight::from_parts(11_571_000, 3556)
|
||||
// Minimum execution time: 9_909_000 picoseconds.
|
||||
Weight::from_parts(10_134_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Measured: `211`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 29_054_000 picoseconds.
|
||||
Weight::from_parts(32_996_000, 3556)
|
||||
// Minimum execution time: 21_725_000 picoseconds.
|
||||
Weight::from_parts(24_058_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn unrequest_unnoted_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 10_775_000 picoseconds.
|
||||
Weight::from_parts(11_937_000, 3556)
|
||||
// Minimum execution time: 9_854_000 picoseconds.
|
||||
Weight::from_parts(10_175_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn unrequest_multi_referenced_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 10_696_000 picoseconds.
|
||||
Weight::from_parts(11_717_000, 3556)
|
||||
// Minimum execution time: 10_143_000 picoseconds.
|
||||
Weight::from_parts(10_539_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1024 w:1024)
|
||||
/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Storage: `System::Account` (r:1023 w:1023)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1024)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1024]`.
|
||||
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
||||
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1023 w:1023)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[1, 1024]`.
|
||||
fn ensure_updated(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + n * (91 ±0)`
|
||||
// Estimated: `3593 + n * (2566 ±0)`
|
||||
// Minimum execution time: 2_452_000 picoseconds.
|
||||
Weight::from_parts(2_641_000, 3593)
|
||||
// Standard Error: 19_797
|
||||
.saturating_add(Weight::from_parts(15_620_946, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2566).saturating_mul(n.into()))
|
||||
// Measured: `0 + n * (227 ±0)`
|
||||
// Estimated: `6012 + n * (2668 ±0)`
|
||||
// Minimum execution time: 59_384_000 picoseconds.
|
||||
Weight::from_parts(60_000_000, 6012)
|
||||
// Standard Error: 39_890
|
||||
.saturating_add(Weight::from_parts(56_317_686, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,199 +283,208 @@ impl WeightInfo for () {
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
||||
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 15_936_000 picoseconds.
|
||||
Weight::from_parts(16_271_000, 3556)
|
||||
// Measured: `112`
|
||||
// Estimated: `6012`
|
||||
// Minimum execution time: 52_531_000 picoseconds.
|
||||
Weight::from_parts(53_245_000, 6012)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_916, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(1_744, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 16_468_000 picoseconds.
|
||||
Weight::from_parts(17_031_000, 3556)
|
||||
// Minimum execution time: 15_601_000 picoseconds.
|
||||
Weight::from_parts(15_871_000, 3556)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_parts(1_948, 0).saturating_mul(s.into()))
|
||||
.saturating_add(Weight::from_parts(1_836, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 16_342_000 picoseconds.
|
||||
Weight::from_parts(16_535_000, 3556)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_906, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 15_614_000 picoseconds.
|
||||
Weight::from_parts(15_934_000, 3556)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_parts(1_832, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 31_047_000 picoseconds.
|
||||
Weight::from_parts(34_099_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
// Measured: `311`
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 53_001_000 picoseconds.
|
||||
Weight::from_parts(55_866_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Measured: `211`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 32_559_000 picoseconds.
|
||||
Weight::from_parts(36_677_000, 3556)
|
||||
// Minimum execution time: 26_901_000 picoseconds.
|
||||
Weight::from_parts(28_079_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `172`
|
||||
// Measured: `255`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 27_887_000 picoseconds.
|
||||
Weight::from_parts(30_303_000, 3556)
|
||||
// Minimum execution time: 21_716_000 picoseconds.
|
||||
Weight::from_parts(25_318_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_no_deposit_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Measured: `211`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 17_256_000 picoseconds.
|
||||
Weight::from_parts(19_481_000, 3556)
|
||||
// Minimum execution time: 13_890_000 picoseconds.
|
||||
Weight::from_parts(14_744_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_unnoted_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `42`
|
||||
// Measured: `109`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 22_344_000 picoseconds.
|
||||
Weight::from_parts(23_868_000, 3556)
|
||||
// Minimum execution time: 14_192_000 picoseconds.
|
||||
Weight::from_parts(15_113_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn request_requested_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 10_542_000 picoseconds.
|
||||
Weight::from_parts(11_571_000, 3556)
|
||||
// Minimum execution time: 9_909_000 picoseconds.
|
||||
Weight::from_parts(10_134_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `144`
|
||||
// Measured: `211`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 29_054_000 picoseconds.
|
||||
Weight::from_parts(32_996_000, 3556)
|
||||
// Minimum execution time: 21_725_000 picoseconds.
|
||||
Weight::from_parts(24_058_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn unrequest_unnoted_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 10_775_000 picoseconds.
|
||||
Weight::from_parts(11_937_000, 3556)
|
||||
// Minimum execution time: 9_854_000 picoseconds.
|
||||
Weight::from_parts(10_175_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn unrequest_multi_referenced_preimage() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Measured: `173`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 10_696_000 picoseconds.
|
||||
Weight::from_parts(11_717_000, 3556)
|
||||
// Minimum execution time: 10_143_000 picoseconds.
|
||||
Weight::from_parts(10_539_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Preimage::StatusFor` (r:1024 w:1024)
|
||||
/// Storage: `Preimage::StatusFor` (r:1023 w:1023)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Storage: `System::Account` (r:1023 w:1023)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1024)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(75), added: 2550, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[0, 1024]`.
|
||||
/// Storage: `Parameters::Parameters` (r:2 w:0)
|
||||
/// Proof: `Parameters::Parameters` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1023 w:1023)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:0 w:1023)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// The range of component `n` is `[1, 1024]`.
|
||||
fn ensure_updated(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `193 + n * (91 ±0)`
|
||||
// Estimated: `3593 + n * (2566 ±0)`
|
||||
// Minimum execution time: 2_452_000 picoseconds.
|
||||
Weight::from_parts(2_641_000, 3593)
|
||||
// Standard Error: 19_797
|
||||
.saturating_add(Weight::from_parts(15_620_946, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2566).saturating_mul(n.into()))
|
||||
// Measured: `0 + n * (227 ±0)`
|
||||
// Estimated: `6012 + n * (2668 ±0)`
|
||||
// Minimum execution time: 59_384_000 picoseconds.
|
||||
Weight::from_parts(60_000_000, 6012)
|
||||
// Standard Error: 39_890
|
||||
.saturating_add(Weight::from_parts(56_317_686, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((4_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2668).saturating_mul(n.into()))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+196
-181
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_proxy
|
||||
//! Autogenerated weights for `pallet_proxy`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/proxy/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/proxy/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_proxy.
|
||||
/// Weight functions needed for `pallet_proxy`.
|
||||
pub trait WeightInfo {
|
||||
fn proxy(p: u32, ) -> Weight;
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight;
|
||||
@@ -64,336 +63,352 @@ pub trait WeightInfo {
|
||||
fn kill_pure(p: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// Storage: `Proxy::Proxies` (r:1 w:0)
|
||||
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Measured: `306 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 15_182_000 picoseconds.
|
||||
Weight::from_parts(15_919_146, 4706)
|
||||
// Standard Error: 1_586
|
||||
.saturating_add(Weight::from_parts(31_768, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
// Minimum execution time: 18_280_000 picoseconds.
|
||||
Weight::from_parts(19_655_145, 4706)
|
||||
// Standard Error: 2_345
|
||||
.saturating_add(Weight::from_parts(36_306, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `488 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Measured: `633 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 40_256_000 picoseconds.
|
||||
Weight::from_parts(40_373_648, 5698)
|
||||
// Standard Error: 3_978
|
||||
.saturating_add(Weight::from_parts(166_936, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 4_110
|
||||
.saturating_add(Weight::from_parts(54_329, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
// Minimum execution time: 41_789_000 picoseconds.
|
||||
Weight::from_parts(41_812_078, 5698)
|
||||
// Standard Error: 3_694
|
||||
.saturating_add(Weight::from_parts(163_029, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 3_817
|
||||
.saturating_add(Weight::from_parts(79_539, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + a * (68 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 25_040_000 picoseconds.
|
||||
Weight::from_parts(25_112_188, 5698)
|
||||
// Standard Error: 2_143
|
||||
.saturating_add(Weight::from_parts(189_027, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 2_214
|
||||
.saturating_add(Weight::from_parts(26_683, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 22_475_000 picoseconds.
|
||||
Weight::from_parts(22_666_821, 5698)
|
||||
// Standard Error: 1_797
|
||||
.saturating_add(Weight::from_parts(170_629, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 1_857
|
||||
.saturating_add(Weight::from_parts(18_799, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + a * (68 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 24_884_000 picoseconds.
|
||||
Weight::from_parts(25_359_291, 5698)
|
||||
// Standard Error: 2_019
|
||||
.saturating_add(Weight::from_parts(181_470, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 2_086
|
||||
.saturating_add(Weight::from_parts(17_725, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 22_326_000 picoseconds.
|
||||
Weight::from_parts(22_654_227, 5698)
|
||||
// Standard Error: 1_859
|
||||
.saturating_add(Weight::from_parts(168_822, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 1_921
|
||||
.saturating_add(Weight::from_parts(21_839, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `420 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 35_039_000 picoseconds.
|
||||
Weight::from_parts(36_727_868, 5698)
|
||||
// Standard Error: 4_463
|
||||
.saturating_add(Weight::from_parts(167_060, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 4_611
|
||||
.saturating_add(Weight::from_parts(59_836, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 31_551_000 picoseconds.
|
||||
Weight::from_parts(32_205_445, 5698)
|
||||
// Standard Error: 4_089
|
||||
.saturating_add(Weight::from_parts(167_596, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 4_225
|
||||
.saturating_add(Weight::from_parts(67_833, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 25_697_000 picoseconds.
|
||||
Weight::from_parts(26_611_090, 4706)
|
||||
// Standard Error: 2_306
|
||||
.saturating_add(Weight::from_parts(85_165, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 21_495_000 picoseconds.
|
||||
Weight::from_parts(22_358_457, 4706)
|
||||
// Standard Error: 1_606
|
||||
.saturating_add(Weight::from_parts(64_322, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 25_638_000 picoseconds.
|
||||
Weight::from_parts(26_904_510, 4706)
|
||||
// Standard Error: 2_669
|
||||
.saturating_add(Weight::from_parts(61_668, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 21_495_000 picoseconds.
|
||||
Weight::from_parts(22_579_308, 4706)
|
||||
// Standard Error: 2_571
|
||||
.saturating_add(Weight::from_parts(62_404, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 22_737_000 picoseconds.
|
||||
Weight::from_parts(23_618_441, 4706)
|
||||
// Standard Error: 1_729
|
||||
.saturating_add(Weight::from_parts(44_009, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 20_541_000 picoseconds.
|
||||
Weight::from_parts(21_456_750, 4706)
|
||||
// Standard Error: 1_697
|
||||
.saturating_add(Weight::from_parts(45_387, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `173`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 27_364_000 picoseconds.
|
||||
Weight::from_parts(28_632_271, 4706)
|
||||
// Standard Error: 1_613
|
||||
.saturating_add(Weight::from_parts(2_453, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 22_809_000 picoseconds.
|
||||
Weight::from_parts(23_878_644, 4706)
|
||||
// Standard Error: 1_600
|
||||
.saturating_add(Weight::from_parts(10_149, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `198 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 23_552_000 picoseconds.
|
||||
Weight::from_parts(24_874_553, 4706)
|
||||
// Standard Error: 1_919
|
||||
.saturating_add(Weight::from_parts(38_799, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 20_993_000 picoseconds.
|
||||
Weight::from_parts(22_067_418, 4706)
|
||||
// Standard Error: 1_673
|
||||
.saturating_add(Weight::from_parts(52_703, 0).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
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Proxy Proxies (r:1 w:0)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// Storage: `Proxy::Proxies` (r:1 w:0)
|
||||
/// Proof: `Proxy::Proxies` (`max_values`: None, `max_size`: Some(1241), added: 3716, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `p` is `[1, 31]`.
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Measured: `306 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 15_182_000 picoseconds.
|
||||
Weight::from_parts(15_919_146, 4706)
|
||||
// Standard Error: 1_586
|
||||
.saturating_add(Weight::from_parts(31_768, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
// Minimum execution time: 18_280_000 picoseconds.
|
||||
Weight::from_parts(19_655_145, 4706)
|
||||
// Standard Error: 2_345
|
||||
.saturating_add(Weight::from_parts(36_306, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `488 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Measured: `633 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 40_256_000 picoseconds.
|
||||
Weight::from_parts(40_373_648, 5698)
|
||||
// Standard Error: 3_978
|
||||
.saturating_add(Weight::from_parts(166_936, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 4_110
|
||||
.saturating_add(Weight::from_parts(54_329, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
// Minimum execution time: 41_789_000 picoseconds.
|
||||
Weight::from_parts(41_812_078, 5698)
|
||||
// Standard Error: 3_694
|
||||
.saturating_add(Weight::from_parts(163_029, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 3_817
|
||||
.saturating_add(Weight::from_parts(79_539, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + a * (68 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 25_040_000 picoseconds.
|
||||
Weight::from_parts(25_112_188, 5698)
|
||||
// Standard Error: 2_143
|
||||
.saturating_add(Weight::from_parts(189_027, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 2_214
|
||||
.saturating_add(Weight::from_parts(26_683, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 22_475_000 picoseconds.
|
||||
Weight::from_parts(22_666_821, 5698)
|
||||
// Standard Error: 1_797
|
||||
.saturating_add(Weight::from_parts(170_629, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 1_857
|
||||
.saturating_add(Weight::from_parts(18_799, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `403 + a * (68 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 24_884_000 picoseconds.
|
||||
Weight::from_parts(25_359_291, 5698)
|
||||
// Standard Error: 2_019
|
||||
.saturating_add(Weight::from_parts(181_470, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 2_086
|
||||
.saturating_add(Weight::from_parts(17_725, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 22_326_000 picoseconds.
|
||||
Weight::from_parts(22_654_227, 5698)
|
||||
// Standard Error: 1_859
|
||||
.saturating_add(Weight::from_parts(168_822, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 1_921
|
||||
.saturating_add(Weight::from_parts(21_839, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `420 + a * (68 ±0) + p * (37 ±0)`
|
||||
// Estimated: `5698`
|
||||
// Minimum execution time: 35_039_000 picoseconds.
|
||||
Weight::from_parts(36_727_868, 5698)
|
||||
// Standard Error: 4_463
|
||||
.saturating_add(Weight::from_parts(167_060, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 4_611
|
||||
.saturating_add(Weight::from_parts(59_836, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 31_551_000 picoseconds.
|
||||
Weight::from_parts(32_205_445, 5698)
|
||||
// Standard Error: 4_089
|
||||
.saturating_add(Weight::from_parts(167_596, 0).saturating_mul(a.into()))
|
||||
// Standard Error: 4_225
|
||||
.saturating_add(Weight::from_parts(67_833, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 25_697_000 picoseconds.
|
||||
Weight::from_parts(26_611_090, 4706)
|
||||
// Standard Error: 2_306
|
||||
.saturating_add(Weight::from_parts(85_165, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 21_495_000 picoseconds.
|
||||
Weight::from_parts(22_358_457, 4706)
|
||||
// Standard Error: 1_606
|
||||
.saturating_add(Weight::from_parts(64_322, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 25_638_000 picoseconds.
|
||||
Weight::from_parts(26_904_510, 4706)
|
||||
// Standard Error: 2_669
|
||||
.saturating_add(Weight::from_parts(61_668, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 21_495_000 picoseconds.
|
||||
Weight::from_parts(22_579_308, 4706)
|
||||
// Standard Error: 2_571
|
||||
.saturating_add(Weight::from_parts(62_404, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 22_737_000 picoseconds.
|
||||
Weight::from_parts(23_618_441, 4706)
|
||||
// Standard Error: 1_729
|
||||
.saturating_add(Weight::from_parts(44_009, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 20_541_000 picoseconds.
|
||||
Weight::from_parts(21_456_750, 4706)
|
||||
// Standard Error: 1_697
|
||||
.saturating_add(Weight::from_parts(45_387, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `173`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 27_364_000 picoseconds.
|
||||
Weight::from_parts(28_632_271, 4706)
|
||||
// Standard Error: 1_613
|
||||
.saturating_add(Weight::from_parts(2_453, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 22_809_000 picoseconds.
|
||||
Weight::from_parts(23_878_644, 4706)
|
||||
// Standard Error: 1_600
|
||||
.saturating_add(Weight::from_parts(10_149, 0).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)
|
||||
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `198 + p * (37 ±0)`
|
||||
// Estimated: `4706`
|
||||
// Minimum execution time: 23_552_000 picoseconds.
|
||||
Weight::from_parts(24_874_553, 4706)
|
||||
// Standard Error: 1_919
|
||||
.saturating_add(Weight::from_parts(38_799, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 20_993_000 picoseconds.
|
||||
Weight::from_parts(22_067_418, 4706)
|
||||
// Standard Error: 1_673
|
||||
.saturating_add(Weight::from_parts(52_703, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
+182
-171
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_ranked_collective
|
||||
//! Autogenerated weights for `pallet_ranked_collective`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/ranked-collective/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/ranked-collective/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_ranked_collective.
|
||||
/// Weight functions needed for `pallet_ranked_collective`.
|
||||
pub trait WeightInfo {
|
||||
fn add_member() -> Weight;
|
||||
fn remove_member(r: u32, ) -> Weight;
|
||||
@@ -61,283 +60,295 @@ pub trait WeightInfo {
|
||||
fn exchange_member() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_ranked_collective using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `3507`
|
||||
// Minimum execution time: 17_245_000 picoseconds.
|
||||
Weight::from_parts(17_930_000, 3507)
|
||||
// Minimum execution time: 15_440_000 picoseconds.
|
||||
Weight::from_parts(15_990_000, 3507)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:22)
|
||||
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:11 w:22)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `616 + r * (281 ±0)`
|
||||
// Estimated: `3519 + r * (2529 ±0)`
|
||||
// Minimum execution time: 29_534_000 picoseconds.
|
||||
Weight::from_parts(32_847_495, 3519)
|
||||
// Standard Error: 24_211
|
||||
.saturating_add(Weight::from_parts(13_949_639, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 30_171_000 picoseconds.
|
||||
Weight::from_parts(33_395_037, 3519)
|
||||
// Standard Error: 21_741
|
||||
.saturating_add(Weight::from_parts(16_589_950, 0).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(T::DbWeight::get().writes(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((5_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `314 + r * (17 ±0)`
|
||||
// Estimated: `3507`
|
||||
// Minimum execution time: 20_333_000 picoseconds.
|
||||
Weight::from_parts(21_592_224, 3507)
|
||||
// Standard Error: 6_423
|
||||
.saturating_add(Weight::from_parts(321_314, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 18_597_000 picoseconds.
|
||||
Weight::from_parts(19_774_947, 3507)
|
||||
// Standard Error: 5_735
|
||||
.saturating_add(Weight::from_parts(339_013, 0).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)
|
||||
/// 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)
|
||||
/// 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:2)
|
||||
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:1 w:2)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `632 + r * (72 ±0)`
|
||||
// Estimated: `3519`
|
||||
// Minimum execution time: 29_446_000 picoseconds.
|
||||
Weight::from_parts(32_447_715, 3519)
|
||||
// Standard Error: 28_791
|
||||
.saturating_add(Weight::from_parts(822_890, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 29_670_000 picoseconds.
|
||||
Weight::from_parts(33_022_564, 3519)
|
||||
// Standard Error: 28_521
|
||||
.saturating_add(Weight::from_parts(817_563, 0).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn vote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 45_474_000 picoseconds.
|
||||
Weight::from_parts(47_228_000, 219984)
|
||||
// Minimum execution time: 42_072_000 picoseconds.
|
||||
Weight::from_parts(43_360_000, 219984)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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:100 w:100)
|
||||
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// 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:100 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462 + n * (50 ±0)`
|
||||
// Estimated: `3795 + n * (2540 ±0)`
|
||||
// Minimum execution time: 13_903_000 picoseconds.
|
||||
Weight::from_parts(18_209_102, 3795)
|
||||
// Standard Error: 2_556
|
||||
.saturating_add(Weight::from_parts(1_237_454, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 14_338_000 picoseconds.
|
||||
Weight::from_parts(18_144_424, 3795)
|
||||
// Standard Error: 2_482
|
||||
.saturating_add(Weight::from_parts(1_200_576, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into()))
|
||||
}
|
||||
|
||||
/// Storage: `RankedCollective::Members` (r:2 w:2)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::MemberCount` (r:2 w:2)
|
||||
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IdToIndex` (r:2 w:2)
|
||||
/// Storage: `RankedCollective::IdToIndex` (r:2 w:4)
|
||||
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:2 w:2)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:2 w:2)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:0 w:2)
|
||||
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
fn exchange_member() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `437`
|
||||
// Estimated: `6048`
|
||||
// Minimum execution time: 138_000_000 picoseconds.
|
||||
Weight::from_parts(141_000_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6048))
|
||||
.saturating_add(T::DbWeight::get().reads(6))
|
||||
.saturating_add(T::DbWeight::get().writes(8))
|
||||
// Measured: `625`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 73_317_000 picoseconds.
|
||||
Weight::from_parts(75_103_000, 19894)
|
||||
.saturating_add(T::DbWeight::get().reads(11_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(14_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `3507`
|
||||
// Minimum execution time: 17_245_000 picoseconds.
|
||||
Weight::from_parts(17_930_000, 3507)
|
||||
// Minimum execution time: 15_440_000 picoseconds.
|
||||
Weight::from_parts(15_990_000, 3507)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:22)
|
||||
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:11 w:22)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `616 + r * (281 ±0)`
|
||||
// Estimated: `3519 + r * (2529 ±0)`
|
||||
// Minimum execution time: 29_534_000 picoseconds.
|
||||
Weight::from_parts(32_847_495, 3519)
|
||||
// Standard Error: 24_211
|
||||
.saturating_add(Weight::from_parts(13_949_639, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 30_171_000 picoseconds.
|
||||
Weight::from_parts(33_395_037, 3519)
|
||||
// Standard Error: 21_741
|
||||
.saturating_add(Weight::from_parts(16_589_950, 0).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(RocksDbWeight::get().writes(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((5_u64).saturating_mul(r.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2529).saturating_mul(r.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `314 + r * (17 ±0)`
|
||||
// Estimated: `3507`
|
||||
// Minimum execution time: 20_333_000 picoseconds.
|
||||
Weight::from_parts(21_592_224, 3507)
|
||||
// Standard Error: 6_423
|
||||
.saturating_add(Weight::from_parts(321_314, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 18_597_000 picoseconds.
|
||||
Weight::from_parts(19_774_947, 3507)
|
||||
// Standard Error: 5_735
|
||||
.saturating_add(Weight::from_parts(339_013, 0).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)
|
||||
/// 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)
|
||||
/// 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:2)
|
||||
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:1 w:2)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `632 + r * (72 ±0)`
|
||||
// Estimated: `3519`
|
||||
// Minimum execution time: 29_446_000 picoseconds.
|
||||
Weight::from_parts(32_447_715, 3519)
|
||||
// Standard Error: 28_791
|
||||
.saturating_add(Weight::from_parts(822_890, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 29_670_000 picoseconds.
|
||||
Weight::from_parts(33_022_564, 3519)
|
||||
// Standard Error: 28_521
|
||||
.saturating_add(Weight::from_parts(817_563, 0).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn vote() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628`
|
||||
// Estimated: `219984`
|
||||
// Minimum execution time: 45_474_000 picoseconds.
|
||||
Weight::from_parts(47_228_000, 219984)
|
||||
// Minimum execution time: 42_072_000 picoseconds.
|
||||
Weight::from_parts(43_360_000, 219984)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// 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:100 w:100)
|
||||
/// Proof: RankedCollective Voting (max_values: None, max_size: Some(65), added: 2540, mode: MaxEncodedLen)
|
||||
/// 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:100 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462 + n * (50 ±0)`
|
||||
// Estimated: `3795 + n * (2540 ±0)`
|
||||
// Minimum execution time: 13_903_000 picoseconds.
|
||||
Weight::from_parts(18_209_102, 3795)
|
||||
// Standard Error: 2_556
|
||||
.saturating_add(Weight::from_parts(1_237_454, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 14_338_000 picoseconds.
|
||||
Weight::from_parts(18_144_424, 3795)
|
||||
// Standard Error: 2_482
|
||||
.saturating_add(Weight::from_parts(1_200_576, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2540).saturating_mul(n.into()))
|
||||
}
|
||||
|
||||
/// Storage: `RankedCollective::Members` (r:2 w:2)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::MemberCount` (r:2 w:2)
|
||||
/// Proof: `RankedCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IdToIndex` (r:2 w:2)
|
||||
/// Storage: `RankedCollective::IdToIndex` (r:2 w:4)
|
||||
/// Proof: `RankedCollective::IdToIndex` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::Member` (r:2 w:2)
|
||||
/// Proof: `CoreFellowship::Member` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
|
||||
/// Storage: `CoreFellowship::MemberEvidence` (r:1 w:0)
|
||||
/// Proof: `CoreFellowship::MemberEvidence` (`max_values`: None, `max_size`: Some(16429), added: 18904, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:2 w:2)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::IndexToId` (r:0 w:2)
|
||||
/// Proof: `RankedCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`)
|
||||
fn exchange_member() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `437`
|
||||
// Estimated: `6048`
|
||||
// Minimum execution time: 138_000_000 picoseconds.
|
||||
Weight::from_parts(141_000_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 6048))
|
||||
.saturating_add(RocksDbWeight::get().reads(6))
|
||||
.saturating_add(RocksDbWeight::get().writes(8))
|
||||
// Measured: `625`
|
||||
// Estimated: `19894`
|
||||
// Minimum execution time: 73_317_000 picoseconds.
|
||||
Weight::from_parts(75_103_000, 19894)
|
||||
.saturating_add(RocksDbWeight::get().reads(11_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(14_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+156
-149
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_recovery
|
||||
//! Autogenerated weights for `pallet_recovery`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/recovery/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/recovery/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_recovery.
|
||||
/// Weight functions needed for `pallet_recovery`.
|
||||
pub trait WeightInfo {
|
||||
fn as_recovered() -> Weight;
|
||||
fn set_recovered() -> Weight;
|
||||
@@ -63,258 +62,266 @@ pub trait WeightInfo {
|
||||
fn cancel_recovered() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_recovery using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// Storage: `Recovery::Proxy` (r:1 w:0)
|
||||
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
fn as_recovered() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 9_360_000 picoseconds.
|
||||
Weight::from_parts(9_773_000, 3545)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
// Measured: `497`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 15_318_000 picoseconds.
|
||||
Weight::from_parts(15_767_000, 3997)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
}
|
||||
/// Storage: Recovery Proxy (r:0 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_146_000 picoseconds.
|
||||
Weight::from_parts(9_507_000, 0)
|
||||
// Minimum execution time: 7_153_000 picoseconds.
|
||||
Weight::from_parts(7_578_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, 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 create_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Measured: `246`
|
||||
// Estimated: `3816`
|
||||
// Minimum execution time: 26_472_000 picoseconds.
|
||||
Weight::from_parts(27_917_651, 3816)
|
||||
// Standard Error: 7_129
|
||||
.saturating_add(Weight::from_parts(59_239, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 23_303_000 picoseconds.
|
||||
Weight::from_parts(24_725_158, 3816)
|
||||
// Standard Error: 5_723
|
||||
.saturating_add(Weight::from_parts(13_638, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272`
|
||||
// Measured: `343`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 29_618_000 picoseconds.
|
||||
Weight::from_parts(30_192_000, 3854)
|
||||
// Minimum execution time: 26_914_000 picoseconds.
|
||||
Weight::from_parts(28_041_000, 3854)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `360 + n * (64 ±0)`
|
||||
// Measured: `431 + n * (64 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 19_464_000 picoseconds.
|
||||
Weight::from_parts(20_642_522, 3854)
|
||||
// Standard Error: 5_974
|
||||
.saturating_add(Weight::from_parts(142_308, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 17_695_000 picoseconds.
|
||||
Weight::from_parts(18_591_642, 3854)
|
||||
// Standard Error: 5_582
|
||||
.saturating_add(Weight::from_parts(188_668, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392 + n * (64 ±0)`
|
||||
// Measured: `463 + n * (64 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 23_656_000 picoseconds.
|
||||
Weight::from_parts(24_903_269, 3854)
|
||||
// Standard Error: 5_771
|
||||
.saturating_add(Weight::from_parts(117_343, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 22_580_000 picoseconds.
|
||||
Weight::from_parts(23_526_020, 3854)
|
||||
// Standard Error: 6_604
|
||||
.saturating_add(Weight::from_parts(134_340, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `513 + n * (32 ±0)`
|
||||
// Measured: `584 + n * (32 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 34_866_000 picoseconds.
|
||||
Weight::from_parts(36_368_748, 3854)
|
||||
// Standard Error: 6_600
|
||||
.saturating_add(Weight::from_parts(118_610, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 32_017_000 picoseconds.
|
||||
Weight::from_parts(33_401_086, 3854)
|
||||
// Standard Error: 6_498
|
||||
.saturating_add(Weight::from_parts(95_507, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `270 + n * (32 ±0)`
|
||||
// Measured: `341 + n * (32 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 31_405_000 picoseconds.
|
||||
Weight::from_parts(32_552_838, 3854)
|
||||
// Standard Error: 8_043
|
||||
.saturating_add(Weight::from_parts(171_605, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 28_641_000 picoseconds.
|
||||
Weight::from_parts(30_230_511, 3854)
|
||||
// Standard Error: 7_058
|
||||
.saturating_add(Weight::from_parts(61_004, 0).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)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Measured: `352`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 11_530_000 picoseconds.
|
||||
Weight::from_parts(11_851_000, 3545)
|
||||
// Minimum execution time: 11_767_000 picoseconds.
|
||||
Weight::from_parts(12_275_000, 3545)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Recovery Proxy (r:1 w:0)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// Storage: `Recovery::Proxy` (r:1 w:0)
|
||||
/// Proof: `Recovery::Proxy` (`max_values`: None, `max_size`: Some(80), added: 2555, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
fn as_recovered() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 9_360_000 picoseconds.
|
||||
Weight::from_parts(9_773_000, 3545)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
// Measured: `497`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 15_318_000 picoseconds.
|
||||
Weight::from_parts(15_767_000, 3997)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
}
|
||||
/// Storage: Recovery Proxy (r:0 w:1)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_146_000 picoseconds.
|
||||
Weight::from_parts(9_507_000, 0)
|
||||
// Minimum execution time: 7_153_000 picoseconds.
|
||||
Weight::from_parts(7_578_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Recovery Recoverable (r:1 w:1)
|
||||
/// Proof: Recovery Recoverable (max_values: None, max_size: Some(351), added: 2826, 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 create_recovery(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `175`
|
||||
// Measured: `246`
|
||||
// Estimated: `3816`
|
||||
// Minimum execution time: 26_472_000 picoseconds.
|
||||
Weight::from_parts(27_917_651, 3816)
|
||||
// Standard Error: 7_129
|
||||
.saturating_add(Weight::from_parts(59_239, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 23_303_000 picoseconds.
|
||||
Weight::from_parts(24_725_158, 3816)
|
||||
// Standard Error: 5_723
|
||||
.saturating_add(Weight::from_parts(13_638, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `272`
|
||||
// Measured: `343`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 29_618_000 picoseconds.
|
||||
Weight::from_parts(30_192_000, 3854)
|
||||
// Minimum execution time: 26_914_000 picoseconds.
|
||||
Weight::from_parts(28_041_000, 3854)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `360 + n * (64 ±0)`
|
||||
// Measured: `431 + n * (64 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 19_464_000 picoseconds.
|
||||
Weight::from_parts(20_642_522, 3854)
|
||||
// Standard Error: 5_974
|
||||
.saturating_add(Weight::from_parts(142_308, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 17_695_000 picoseconds.
|
||||
Weight::from_parts(18_591_642, 3854)
|
||||
// Standard Error: 5_582
|
||||
.saturating_add(Weight::from_parts(188_668, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392 + n * (64 ±0)`
|
||||
// Measured: `463 + n * (64 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 23_656_000 picoseconds.
|
||||
Weight::from_parts(24_903_269, 3854)
|
||||
// Standard Error: 5_771
|
||||
.saturating_add(Weight::from_parts(117_343, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 22_580_000 picoseconds.
|
||||
Weight::from_parts(23_526_020, 3854)
|
||||
// Standard Error: 6_604
|
||||
.saturating_add(Weight::from_parts(134_340, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `513 + n * (32 ±0)`
|
||||
// Measured: `584 + n * (32 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 34_866_000 picoseconds.
|
||||
Weight::from_parts(36_368_748, 3854)
|
||||
// Standard Error: 6_600
|
||||
.saturating_add(Weight::from_parts(118_610, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 32_017_000 picoseconds.
|
||||
Weight::from_parts(33_401_086, 3854)
|
||||
// Standard Error: 6_498
|
||||
.saturating_add(Weight::from_parts(95_507, 0).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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `270 + n * (32 ±0)`
|
||||
// Measured: `341 + n * (32 ±0)`
|
||||
// Estimated: `3854`
|
||||
// Minimum execution time: 31_405_000 picoseconds.
|
||||
Weight::from_parts(32_552_838, 3854)
|
||||
// Standard Error: 8_043
|
||||
.saturating_add(Weight::from_parts(171_605, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 28_641_000 picoseconds.
|
||||
Weight::from_parts(30_230_511, 3854)
|
||||
// Standard Error: 7_058
|
||||
.saturating_add(Weight::from_parts(61_004, 0).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)
|
||||
/// Proof: Recovery Proxy (max_values: None, max_size: Some(80), added: 2555, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `281`
|
||||
// Measured: `352`
|
||||
// Estimated: `3545`
|
||||
// Minimum execution time: 11_530_000 picoseconds.
|
||||
Weight::from_parts(11_851_000, 3545)
|
||||
// Minimum execution time: 11_767_000 picoseconds.
|
||||
Weight::from_parts(12_275_000, 3545)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+748
-717
File diff suppressed because it is too large
Load Diff
Generated
+18
-19
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_remark
|
||||
//! Autogenerated weights for `pallet_remark`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/remark/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/remark/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,12 +49,12 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_remark.
|
||||
/// Weight functions needed for `pallet_remark`.
|
||||
pub trait WeightInfo {
|
||||
fn store(l: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_remark using the Substrate node and recommended hardware.
|
||||
/// 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> {
|
||||
/// The range of component `l` is `[1, 1048576]`.
|
||||
@@ -63,23 +62,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_471_000 picoseconds.
|
||||
Weight::from_parts(8_586_000, 0)
|
||||
// Minimum execution time: 6_652_000 picoseconds.
|
||||
Weight::from_parts(6_793_000, 0)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_parts(1_359, 0).saturating_mul(l.into()))
|
||||
.saturating_add(Weight::from_parts(1_364, 0).saturating_mul(l.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `l` is `[1, 1048576]`.
|
||||
fn store(l: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_471_000 picoseconds.
|
||||
Weight::from_parts(8_586_000, 0)
|
||||
// Minimum execution time: 6_652_000 picoseconds.
|
||||
Weight::from_parts(6_793_000, 0)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_parts(1_359, 0).saturating_mul(l.into()))
|
||||
.saturating_add(Weight::from_parts(1_364, 0).saturating_mul(l.into()))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+72
-70
@@ -17,27 +17,29 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_safe_mode`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-08-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-aahe6cbd-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_safe_mode
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_safe_mode
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/safe-mode/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/safe-mode/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -70,8 +72,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 2_500_000 picoseconds.
|
||||
Weight::from_parts(2_594_000, 1489)
|
||||
// Minimum execution time: 2_152_000 picoseconds.
|
||||
Weight::from_parts(2_283_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
|
||||
@@ -80,23 +82,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 8_868_000 picoseconds.
|
||||
Weight::from_parts(9_415_000, 1489)
|
||||
// Minimum execution time: 6_657_000 picoseconds.
|
||||
Weight::from_parts(6_955_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::Deposits` (r:0 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
fn enter() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 50_541_000 picoseconds.
|
||||
Weight::from_parts(51_558_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 49_366_000 picoseconds.
|
||||
Weight::from_parts(50_506_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -106,23 +108,23 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 10_489_000 picoseconds.
|
||||
Weight::from_parts(10_833_000, 1489)
|
||||
// Minimum execution time: 7_843_000 picoseconds.
|
||||
Weight::from_parts(8_205_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::Deposits` (r:0 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
fn extend() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 50_818_000 picoseconds.
|
||||
Weight::from_parts(51_873_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 50_487_000 picoseconds.
|
||||
Weight::from_parts(52_101_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -132,8 +134,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 10_843_000 picoseconds.
|
||||
Weight::from_parts(11_314_000, 1489)
|
||||
// Minimum execution time: 8_517_000 picoseconds.
|
||||
Weight::from_parts(8_894_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -143,8 +145,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 10_382_000 picoseconds.
|
||||
Weight::from_parts(10_814_000, 1489)
|
||||
// Minimum execution time: 8_451_000 picoseconds.
|
||||
Weight::from_parts(8_745_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -153,39 +155,39 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn release_deposit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `292`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 42_828_000 picoseconds.
|
||||
Weight::from_parts(43_752_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 42_504_000 picoseconds.
|
||||
Weight::from_parts(45_493_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::Deposits` (r:1 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn force_release_deposit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `292`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 40_196_000 picoseconds.
|
||||
Weight::from_parts(41_298_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 40_864_000 picoseconds.
|
||||
Weight::from_parts(41_626_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::Deposits` (r:1 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn force_slash_deposit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `292`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 33_660_000 picoseconds.
|
||||
Weight::from_parts(34_426_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 31_943_000 picoseconds.
|
||||
Weight::from_parts(33_033_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -199,8 +201,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 2_500_000 picoseconds.
|
||||
Weight::from_parts(2_594_000, 1489)
|
||||
// Minimum execution time: 2_152_000 picoseconds.
|
||||
Weight::from_parts(2_283_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
|
||||
@@ -209,23 +211,23 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 8_868_000 picoseconds.
|
||||
Weight::from_parts(9_415_000, 1489)
|
||||
// Minimum execution time: 6_657_000 picoseconds.
|
||||
Weight::from_parts(6_955_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::Deposits` (r:0 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
fn enter() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 50_541_000 picoseconds.
|
||||
Weight::from_parts(51_558_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 49_366_000 picoseconds.
|
||||
Weight::from_parts(50_506_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -235,23 +237,23 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `142`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 10_489_000 picoseconds.
|
||||
Weight::from_parts(10_833_000, 1489)
|
||||
// Minimum execution time: 7_843_000 picoseconds.
|
||||
Weight::from_parts(8_205_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:1)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: `SafeMode::Deposits` (r:0 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
fn extend() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 50_818_000 picoseconds.
|
||||
Weight::from_parts(51_873_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 50_487_000 picoseconds.
|
||||
Weight::from_parts(52_101_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -261,8 +263,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 10_843_000 picoseconds.
|
||||
Weight::from_parts(11_314_000, 1489)
|
||||
// Minimum execution time: 8_517_000 picoseconds.
|
||||
Weight::from_parts(8_894_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -272,8 +274,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `169`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 10_382_000 picoseconds.
|
||||
Weight::from_parts(10_814_000, 1489)
|
||||
// Minimum execution time: 8_451_000 picoseconds.
|
||||
Weight::from_parts(8_745_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -282,39 +284,39 @@ impl WeightInfo for () {
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn release_deposit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `292`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 42_828_000 picoseconds.
|
||||
Weight::from_parts(43_752_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 42_504_000 picoseconds.
|
||||
Weight::from_parts(45_493_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::Deposits` (r:1 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn force_release_deposit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `292`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 40_196_000 picoseconds.
|
||||
Weight::from_parts(41_298_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 40_864_000 picoseconds.
|
||||
Weight::from_parts(41_626_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::Deposits` (r:1 w:1)
|
||||
/// Proof: `SafeMode::Deposits` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn force_slash_deposit() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `292`
|
||||
// Estimated: `3550`
|
||||
// Minimum execution time: 33_660_000 picoseconds.
|
||||
Weight::from_parts(34_426_000, 3550)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 31_943_000 picoseconds.
|
||||
Weight::from_parts(33_033_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
|
||||
Generated
+108
-109
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_salary
|
||||
//! Autogenerated weights for `pallet_salary`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/salary/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/salary/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_salary.
|
||||
/// Weight functions needed for `pallet_salary`.
|
||||
pub trait WeightInfo {
|
||||
fn init() -> Weight;
|
||||
fn bump() -> Weight;
|
||||
@@ -61,204 +60,204 @@ pub trait WeightInfo {
|
||||
fn check_payment() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_salary using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_salary` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
fn init() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4`
|
||||
// Estimated: `1541`
|
||||
// Minimum execution time: 10_778_000 picoseconds.
|
||||
Weight::from_parts(11_084_000, 1541)
|
||||
// Minimum execution time: 7_382_000 picoseconds.
|
||||
Weight::from_parts(7_793_000, 1541)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
fn bump() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `86`
|
||||
// Estimated: `1541`
|
||||
// Minimum execution time: 12_042_000 picoseconds.
|
||||
Weight::from_parts(12_645_000, 1541)
|
||||
// Minimum execution time: 8_744_000 picoseconds.
|
||||
Weight::from_parts(9_216_000, 1541)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:0)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:0)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
fn induct() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `395`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 18_374_000 picoseconds.
|
||||
Weight::from_parts(19_200_000, 3543)
|
||||
// Minimum execution time: 16_728_000 picoseconds.
|
||||
Weight::from_parts(17_387_000, 3543)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
fn register() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 22_696_000 picoseconds.
|
||||
Weight::from_parts(23_275_000, 3543)
|
||||
// Minimum execution time: 19_744_000 picoseconds.
|
||||
Weight::from_parts(20_225_000, 3543)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
fn payout() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 63_660_000 picoseconds.
|
||||
Weight::from_parts(65_006_000, 3543)
|
||||
// Minimum execution time: 56_084_000 picoseconds.
|
||||
Weight::from_parts(58_484_000, 3543)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
fn payout_other() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 64_706_000 picoseconds.
|
||||
Weight::from_parts(65_763_000, 3593)
|
||||
// Minimum execution time: 57_341_000 picoseconds.
|
||||
Weight::from_parts(59_882_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
fn check_payment() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `170`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 11_838_000 picoseconds.
|
||||
Weight::from_parts(12_323_000, 3543)
|
||||
// Minimum execution time: 10_788_000 picoseconds.
|
||||
Weight::from_parts(11_109_000, 3543)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
fn init() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4`
|
||||
// Estimated: `1541`
|
||||
// Minimum execution time: 10_778_000 picoseconds.
|
||||
Weight::from_parts(11_084_000, 1541)
|
||||
// Minimum execution time: 7_382_000 picoseconds.
|
||||
Weight::from_parts(7_793_000, 1541)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
fn bump() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `86`
|
||||
// Estimated: `1541`
|
||||
// Minimum execution time: 12_042_000 picoseconds.
|
||||
Weight::from_parts(12_645_000, 1541)
|
||||
// Minimum execution time: 8_744_000 picoseconds.
|
||||
Weight::from_parts(9_216_000, 1541)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:0)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:0)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
fn induct() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `395`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 18_374_000 picoseconds.
|
||||
Weight::from_parts(19_200_000, 3543)
|
||||
// Minimum execution time: 16_728_000 picoseconds.
|
||||
Weight::from_parts(17_387_000, 3543)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
fn register() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 22_696_000 picoseconds.
|
||||
Weight::from_parts(23_275_000, 3543)
|
||||
// Minimum execution time: 19_744_000 picoseconds.
|
||||
Weight::from_parts(20_225_000, 3543)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
fn payout() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 63_660_000 picoseconds.
|
||||
Weight::from_parts(65_006_000, 3543)
|
||||
// Minimum execution time: 56_084_000 picoseconds.
|
||||
Weight::from_parts(58_484_000, 3543)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: RankedCollective Members (r:1 w:0)
|
||||
/// Proof: RankedCollective Members (max_values: None, max_size: Some(42), added: 2517, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
/// Storage: `RankedCollective::Members` (r:1 w:0)
|
||||
/// Proof: `RankedCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
fn payout_other() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `462`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 64_706_000 picoseconds.
|
||||
Weight::from_parts(65_763_000, 3593)
|
||||
// Minimum execution time: 57_341_000 picoseconds.
|
||||
Weight::from_parts(59_882_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: Salary Status (r:1 w:1)
|
||||
/// Proof: Salary Status (max_values: Some(1), max_size: Some(56), added: 551, mode: MaxEncodedLen)
|
||||
/// Storage: Salary Claimant (r:1 w:1)
|
||||
/// Proof: Salary Claimant (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen)
|
||||
/// Storage: `Salary::Status` (r:1 w:1)
|
||||
/// Proof: `Salary::Status` (`max_values`: Some(1), `max_size`: Some(56), added: 551, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Salary::Claimant` (r:1 w:1)
|
||||
/// Proof: `Salary::Claimant` (`max_values`: None, `max_size`: Some(78), added: 2553, mode: `MaxEncodedLen`)
|
||||
fn check_payment() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `170`
|
||||
// Estimated: `3543`
|
||||
// Minimum execution time: 11_838_000 picoseconds.
|
||||
Weight::from_parts(12_323_000, 3543)
|
||||
// Minimum execution time: 10_788_000 picoseconds.
|
||||
Weight::from_parts(11_109_000, 3543)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
|
||||
Generated
+134
-128
@@ -17,26 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_scheduler`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2024-01-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-grjcggob-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_scheduler
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_scheduler
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/scheduler/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -77,8 +79,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `31`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 3_040_000 picoseconds.
|
||||
Weight::from_parts(3_202_000, 1489)
|
||||
// Minimum execution time: 3_099_000 picoseconds.
|
||||
Weight::from_parts(3_298_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -89,10 +91,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 3_462_000 picoseconds.
|
||||
Weight::from_parts(6_262_125, 110487)
|
||||
// Standard Error: 536
|
||||
.saturating_add(Weight::from_parts(332_570, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 3_558_000 picoseconds.
|
||||
Weight::from_parts(5_984_191, 110487)
|
||||
// Standard Error: 564
|
||||
.saturating_add(Weight::from_parts(334_983, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -100,8 +102,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_425_000 picoseconds.
|
||||
Weight::from_parts(3_680_000, 0)
|
||||
// Minimum execution time: 3_389_000 picoseconds.
|
||||
Weight::from_parts(3_609_000, 0)
|
||||
}
|
||||
/// Storage: `Preimage::PreimageFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
|
||||
@@ -114,10 +116,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `246 + s * (1 ±0)`
|
||||
// Estimated: `3711 + s * (1 ±0)`
|
||||
// Minimum execution time: 17_564_000 picoseconds.
|
||||
Weight::from_parts(17_887_000, 3711)
|
||||
// Minimum execution time: 18_292_000 picoseconds.
|
||||
Weight::from_parts(18_574_000, 3711)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_253, 0).saturating_mul(s.into()))
|
||||
.saturating_add(Weight::from_parts(1_189, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
|
||||
@@ -128,16 +130,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_934_000 picoseconds.
|
||||
Weight::from_parts(5_275_000, 0)
|
||||
// Minimum execution time: 5_216_000 picoseconds.
|
||||
Weight::from_parts(5_439_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_task_periodic() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_348_000 picoseconds.
|
||||
Weight::from_parts(3_561_000, 0)
|
||||
// Minimum execution time: 3_383_000 picoseconds.
|
||||
Weight::from_parts(3_661_000, 0)
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
@@ -147,16 +149,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 6_395_000 picoseconds.
|
||||
Weight::from_parts(6_642_000, 3997)
|
||||
// Minimum execution time: 6_692_000 picoseconds.
|
||||
Weight::from_parts(7_069_000, 3997)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
fn execute_dispatch_unsigned() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_167_000 picoseconds.
|
||||
Weight::from_parts(2_266_000, 0)
|
||||
// Minimum execution time: 2_165_000 picoseconds.
|
||||
Weight::from_parts(2_332_000, 0)
|
||||
}
|
||||
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
@@ -165,15 +167,17 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 10_009_000 picoseconds.
|
||||
Weight::from_parts(13_565_985, 110487)
|
||||
// Standard Error: 575
|
||||
.saturating_add(Weight::from_parts(354_760, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 10_209_000 picoseconds.
|
||||
Weight::from_parts(11_235_511, 110487)
|
||||
// Standard Error: 906
|
||||
.saturating_add(Weight::from_parts(375_445, 0).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)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, 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]`.
|
||||
@@ -181,12 +185,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 14_048_000 picoseconds.
|
||||
Weight::from_parts(15_141_696, 110487)
|
||||
// Standard Error: 1_082
|
||||
.saturating_add(Weight::from_parts(533_390, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 15_906_000 picoseconds.
|
||||
Weight::from_parts(13_697_344, 110487)
|
||||
// Standard Error: 949
|
||||
.saturating_add(Weight::from_parts(564_461, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Scheduler::Lookup` (r:1 w:1)
|
||||
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
||||
@@ -197,10 +201,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `596 + s * (178 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 12_902_000 picoseconds.
|
||||
Weight::from_parts(18_957_156, 110487)
|
||||
// Standard Error: 792
|
||||
.saturating_add(Weight::from_parts(361_909, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 13_618_000 picoseconds.
|
||||
Weight::from_parts(17_489_572, 110487)
|
||||
// Standard Error: 766
|
||||
.saturating_add(Weight::from_parts(377_559, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -208,35 +212,35 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn cancel_named(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `709 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 15_933_000 picoseconds.
|
||||
Weight::from_parts(18_091_415, 110487)
|
||||
// Standard Error: 779
|
||||
.saturating_add(Weight::from_parts(534_402, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 17_954_000 picoseconds.
|
||||
Weight::from_parts(18_459_344, 110487)
|
||||
// Standard Error: 835
|
||||
.saturating_add(Weight::from_parts(585_557, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Scheduler::Retries` (r:1 w:2)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn schedule_retry(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `159`
|
||||
// Measured: `118`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 14_155_000 picoseconds.
|
||||
Weight::from_parts(16_447_031, 110487)
|
||||
// Standard Error: 233
|
||||
.saturating_add(Weight::from_parts(8_424, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
// Minimum execution time: 9_446_000 picoseconds.
|
||||
Weight::from_parts(10_797_672, 110487)
|
||||
// Standard Error: 184
|
||||
.saturating_add(Weight::from_parts(13_971, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Scheduler::Agenda` (r:1 w:0)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
@@ -244,10 +248,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn set_retry() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Measured: `90705`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 8_130_000 picoseconds.
|
||||
Weight::from_parts(9_047_554, 110487)
|
||||
// Minimum execution time: 137_044_000 picoseconds.
|
||||
Weight::from_parts(142_855_000, 110487)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -259,10 +263,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn set_retry_named() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `647 + s * (178 ±0)`
|
||||
// Measured: `91747`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 10_838_000 picoseconds.
|
||||
Weight::from_parts(12_804_076, 110487)
|
||||
// Minimum execution time: 144_333_000 picoseconds.
|
||||
Weight::from_parts(149_251_000, 110487)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -272,10 +276,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn cancel_retry() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Measured: `90717`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 8_130_000 picoseconds.
|
||||
Weight::from_parts(9_047_554, 110487)
|
||||
// Minimum execution time: 132_387_000 picoseconds.
|
||||
Weight::from_parts(139_222_000, 110487)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -287,10 +291,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn cancel_retry_named() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `647 + s * (178 ±0)`
|
||||
// Measured: `91759`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 10_838_000 picoseconds.
|
||||
Weight::from_parts(12_804_076, 110487)
|
||||
// Minimum execution time: 141_082_000 picoseconds.
|
||||
Weight::from_parts(146_117_000, 110487)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -304,8 +308,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `31`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 3_040_000 picoseconds.
|
||||
Weight::from_parts(3_202_000, 1489)
|
||||
// Minimum execution time: 3_099_000 picoseconds.
|
||||
Weight::from_parts(3_298_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -316,10 +320,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 3_462_000 picoseconds.
|
||||
Weight::from_parts(6_262_125, 110487)
|
||||
// Standard Error: 536
|
||||
.saturating_add(Weight::from_parts(332_570, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 3_558_000 picoseconds.
|
||||
Weight::from_parts(5_984_191, 110487)
|
||||
// Standard Error: 564
|
||||
.saturating_add(Weight::from_parts(334_983, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -327,8 +331,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_425_000 picoseconds.
|
||||
Weight::from_parts(3_680_000, 0)
|
||||
// Minimum execution time: 3_389_000 picoseconds.
|
||||
Weight::from_parts(3_609_000, 0)
|
||||
}
|
||||
/// Storage: `Preimage::PreimageFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
|
||||
@@ -341,10 +345,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `246 + s * (1 ±0)`
|
||||
// Estimated: `3711 + s * (1 ±0)`
|
||||
// Minimum execution time: 17_564_000 picoseconds.
|
||||
Weight::from_parts(17_887_000, 3711)
|
||||
// Minimum execution time: 18_292_000 picoseconds.
|
||||
Weight::from_parts(18_574_000, 3711)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_253, 0).saturating_mul(s.into()))
|
||||
.saturating_add(Weight::from_parts(1_189, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
|
||||
@@ -355,16 +359,16 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_934_000 picoseconds.
|
||||
Weight::from_parts(5_275_000, 0)
|
||||
// Minimum execution time: 5_216_000 picoseconds.
|
||||
Weight::from_parts(5_439_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn service_task_periodic() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_348_000 picoseconds.
|
||||
Weight::from_parts(3_561_000, 0)
|
||||
// Minimum execution time: 3_383_000 picoseconds.
|
||||
Weight::from_parts(3_661_000, 0)
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
@@ -374,16 +378,16 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 6_395_000 picoseconds.
|
||||
Weight::from_parts(6_642_000, 3997)
|
||||
// Minimum execution time: 6_692_000 picoseconds.
|
||||
Weight::from_parts(7_069_000, 3997)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
fn execute_dispatch_unsigned() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_167_000 picoseconds.
|
||||
Weight::from_parts(2_266_000, 0)
|
||||
// Minimum execution time: 2_165_000 picoseconds.
|
||||
Weight::from_parts(2_332_000, 0)
|
||||
}
|
||||
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
@@ -392,15 +396,17 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 10_009_000 picoseconds.
|
||||
Weight::from_parts(13_565_985, 110487)
|
||||
// Standard Error: 575
|
||||
.saturating_add(Weight::from_parts(354_760, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 10_209_000 picoseconds.
|
||||
Weight::from_parts(11_235_511, 110487)
|
||||
// Standard Error: 906
|
||||
.saturating_add(Weight::from_parts(375_445, 0).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)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, 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]`.
|
||||
@@ -408,12 +414,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 14_048_000 picoseconds.
|
||||
Weight::from_parts(15_141_696, 110487)
|
||||
// Standard Error: 1_082
|
||||
.saturating_add(Weight::from_parts(533_390, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 15_906_000 picoseconds.
|
||||
Weight::from_parts(13_697_344, 110487)
|
||||
// Standard Error: 949
|
||||
.saturating_add(Weight::from_parts(564_461, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Scheduler::Lookup` (r:1 w:1)
|
||||
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
||||
@@ -424,10 +430,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `596 + s * (178 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 12_902_000 picoseconds.
|
||||
Weight::from_parts(18_957_156, 110487)
|
||||
// Standard Error: 792
|
||||
.saturating_add(Weight::from_parts(361_909, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 13_618_000 picoseconds.
|
||||
Weight::from_parts(17_489_572, 110487)
|
||||
// Standard Error: 766
|
||||
.saturating_add(Weight::from_parts(377_559, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -435,35 +441,35 @@ impl WeightInfo for () {
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn cancel_named(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `709 + s * (177 ±0)`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 15_933_000 picoseconds.
|
||||
Weight::from_parts(18_091_415, 110487)
|
||||
// Standard Error: 779
|
||||
.saturating_add(Weight::from_parts(534_402, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 17_954_000 picoseconds.
|
||||
Weight::from_parts(18_459_344, 110487)
|
||||
// Standard Error: 835
|
||||
.saturating_add(Weight::from_parts(585_557, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// Storage: `Scheduler::Retries` (r:1 w:2)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// 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`)
|
||||
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
/// The range of component `s` is `[1, 512]`.
|
||||
fn schedule_retry(s: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `159`
|
||||
// Measured: `118`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 14_155_000 picoseconds.
|
||||
Weight::from_parts(16_447_031, 110487)
|
||||
// Standard Error: 233
|
||||
.saturating_add(Weight::from_parts(8_424, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
// Minimum execution time: 9_446_000 picoseconds.
|
||||
Weight::from_parts(10_797_672, 110487)
|
||||
// Standard Error: 184
|
||||
.saturating_add(Weight::from_parts(13_971, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Scheduler::Agenda` (r:1 w:0)
|
||||
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`)
|
||||
@@ -471,10 +477,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn set_retry() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Measured: `90705`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 8_130_000 picoseconds.
|
||||
Weight::from_parts(9_047_554, 110487)
|
||||
// Minimum execution time: 137_044_000 picoseconds.
|
||||
Weight::from_parts(142_855_000, 110487)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -486,10 +492,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn set_retry_named() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `647 + s * (178 ±0)`
|
||||
// Measured: `91747`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 10_838_000 picoseconds.
|
||||
Weight::from_parts(12_804_076, 110487)
|
||||
// Minimum execution time: 144_333_000 picoseconds.
|
||||
Weight::from_parts(149_251_000, 110487)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -499,10 +505,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn cancel_retry() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `81 + s * (177 ±0)`
|
||||
// Measured: `90717`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 8_130_000 picoseconds.
|
||||
Weight::from_parts(9_047_554, 110487)
|
||||
// Minimum execution time: 132_387_000 picoseconds.
|
||||
Weight::from_parts(139_222_000, 110487)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -514,10 +520,10 @@ impl WeightInfo for () {
|
||||
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
||||
fn cancel_retry_named() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `647 + s * (178 ±0)`
|
||||
// Measured: `91759`
|
||||
// Estimated: `110487`
|
||||
// Minimum execution time: 10_838_000 picoseconds.
|
||||
Weight::from_parts(12_804_076, 110487)
|
||||
// Minimum execution time: 141_082_000 picoseconds.
|
||||
Weight::from_parts(146_117_000, 110487)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+58
-59
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_session
|
||||
//! Autogenerated weights for `pallet_session`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/session/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/session/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,77 +49,77 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_session.
|
||||
/// Weight functions needed for `pallet_session`.
|
||||
pub trait WeightInfo {
|
||||
fn set_keys() -> Weight;
|
||||
fn purge_keys() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_session using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Session::KeyOwner` (r:6 w:6)
|
||||
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn set_keys() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1924`
|
||||
// Estimated: `12814`
|
||||
// Minimum execution time: 55_459_000 picoseconds.
|
||||
Weight::from_parts(56_180_000, 12814)
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
// Measured: `1919`
|
||||
// Estimated: `17759`
|
||||
// Minimum execution time: 58_466_000 picoseconds.
|
||||
Weight::from_parts(59_558_000, 17759)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Session::KeyOwner` (r:0 w:6)
|
||||
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn purge_keys() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1791`
|
||||
// Estimated: `5256`
|
||||
// Minimum execution time: 40_194_000 picoseconds.
|
||||
Weight::from_parts(41_313_000, 5256)
|
||||
// Measured: `1817`
|
||||
// Estimated: `5282`
|
||||
// Minimum execution time: 41_730_000 picoseconds.
|
||||
Weight::from_parts(42_476_000, 5282)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Session::KeyOwner` (r:6 w:6)
|
||||
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn set_keys() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1924`
|
||||
// Estimated: `12814`
|
||||
// Minimum execution time: 55_459_000 picoseconds.
|
||||
Weight::from_parts(56_180_000, 12814)
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
// Measured: `1919`
|
||||
// Estimated: `17759`
|
||||
// Minimum execution time: 58_466_000 picoseconds.
|
||||
Weight::from_parts(59_558_000, 17759)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Session::KeyOwner` (r:0 w:6)
|
||||
/// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn purge_keys() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1791`
|
||||
// Estimated: `5256`
|
||||
// Minimum execution time: 40_194_000 picoseconds.
|
||||
Weight::from_parts(41_313_000, 5256)
|
||||
// Measured: `1817`
|
||||
// Estimated: `5282`
|
||||
// Minimum execution time: 41_730_000 picoseconds.
|
||||
Weight::from_parts(42_476_000, 5282)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+667
-231
File diff suppressed because it is too large
Load Diff
@@ -1077,15 +1077,13 @@ mod tests {
|
||||
(frame_benchmarking::BenchmarkParameter::v, v),
|
||||
(frame_benchmarking::BenchmarkParameter::n, n),
|
||||
];
|
||||
let closure_to_benchmark =
|
||||
<SelectedBenchmark as frame_benchmarking::BenchmarkingSetup<Test>>::instance(
|
||||
|
||||
assert_ok!(
|
||||
<SelectedBenchmark as frame_benchmarking::BenchmarkingSetup<Test>>::unit_test_instance(
|
||||
&selected_benchmark,
|
||||
&c,
|
||||
true,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
assert_ok!(closure_to_benchmark());
|
||||
);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+203
-201
@@ -18,25 +18,27 @@
|
||||
//! Autogenerated weights for `pallet_staking`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-03-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-h2rr8wx7-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_staking
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_staking
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/staking/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -100,8 +102,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1042`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 48_753_000 picoseconds.
|
||||
Weight::from_parts(50_539_000, 4764)
|
||||
// Minimum execution time: 46_504_000 picoseconds.
|
||||
Weight::from_parts(48_459_000, 4764)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -121,8 +123,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1990`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 92_701_000 picoseconds.
|
||||
Weight::from_parts(95_657_000, 8877)
|
||||
// Minimum execution time: 90_475_000 picoseconds.
|
||||
Weight::from_parts(93_619_000, 8877)
|
||||
.saturating_add(T::DbWeight::get().reads(9_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
@@ -148,8 +150,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2195`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 101_049_000 picoseconds.
|
||||
Weight::from_parts(103_729_000, 8877)
|
||||
// Minimum execution time: 99_335_000 picoseconds.
|
||||
Weight::from_parts(101_440_000, 8877)
|
||||
.saturating_add(T::DbWeight::get().reads(12_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
@@ -170,10 +172,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1297`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 51_672_000 picoseconds.
|
||||
Weight::from_parts(53_817_441, 4764)
|
||||
// Standard Error: 1_124
|
||||
.saturating_add(Weight::from_parts(49_168, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 50_067_000 picoseconds.
|
||||
Weight::from_parts(52_396_327, 4764)
|
||||
// Standard Error: 1_419
|
||||
.saturating_add(Weight::from_parts(51_406, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(6_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -210,10 +212,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2196 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 92_846_000 picoseconds.
|
||||
Weight::from_parts(102_158_606, 6248)
|
||||
// Standard Error: 4_187
|
||||
.saturating_add(Weight::from_parts(1_436_364, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 92_931_000 picoseconds.
|
||||
Weight::from_parts(101_398_156, 6248)
|
||||
// Standard Error: 4_180
|
||||
.saturating_add(Weight::from_parts(1_377_850, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(13_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(11_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -245,8 +247,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1372`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 58_162_000 picoseconds.
|
||||
Weight::from_parts(60_124_000, 4556)
|
||||
// Minimum execution time: 56_291_000 picoseconds.
|
||||
Weight::from_parts(58_372_000, 4556)
|
||||
.saturating_add(T::DbWeight::get().reads(11_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -261,10 +263,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1815 + k * (572 ±0)`
|
||||
// Estimated: `4556 + k * (3033 ±0)`
|
||||
// Minimum execution time: 37_950_000 picoseconds.
|
||||
Weight::from_parts(34_461_075, 4556)
|
||||
// Standard Error: 8_013
|
||||
.saturating_add(Weight::from_parts(6_696_510, 0).saturating_mul(k.into()))
|
||||
// Minimum execution time: 36_218_000 picoseconds.
|
||||
Weight::from_parts(38_811_308, 4556)
|
||||
// Standard Error: 8_352
|
||||
.saturating_add(Weight::from_parts(6_527_398, 0).saturating_mul(k.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(k.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(k.into())))
|
||||
@@ -297,10 +299,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1866 + n * (102 ±0)`
|
||||
// Estimated: `6248 + n * (2520 ±0)`
|
||||
// Minimum execution time: 70_167_000 picoseconds.
|
||||
Weight::from_parts(68_024_084, 6248)
|
||||
// Standard Error: 14_256
|
||||
.saturating_add(Weight::from_parts(4_195_757, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 68_607_000 picoseconds.
|
||||
Weight::from_parts(66_831_185, 6248)
|
||||
// Standard Error: 14_014
|
||||
.saturating_add(Weight::from_parts(4_031_635, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(12_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
@@ -326,8 +328,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1816`
|
||||
// Estimated: `6248`
|
||||
// Minimum execution time: 61_730_000 picoseconds.
|
||||
Weight::from_parts(63_430_000, 6248)
|
||||
// Minimum execution time: 60_088_000 picoseconds.
|
||||
Weight::from_parts(62_471_000, 6248)
|
||||
.saturating_add(T::DbWeight::get().reads(9_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
@@ -341,8 +343,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `902`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 20_857_000 picoseconds.
|
||||
Weight::from_parts(21_615_000, 4556)
|
||||
// Minimum execution time: 19_777_000 picoseconds.
|
||||
Weight::from_parts(20_690_000, 4556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -356,8 +358,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `969`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 24_739_000 picoseconds.
|
||||
Weight::from_parts(25_785_000, 4556)
|
||||
// Minimum execution time: 23_705_000 picoseconds.
|
||||
Weight::from_parts(24_409_000, 4556)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -369,8 +371,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `902`
|
||||
// Estimated: `8122`
|
||||
// Minimum execution time: 24_622_000 picoseconds.
|
||||
Weight::from_parts(25_220_000, 8122)
|
||||
// Minimum execution time: 23_479_000 picoseconds.
|
||||
Weight::from_parts(24_502_000, 8122)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -380,8 +382,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_634_000 picoseconds.
|
||||
Weight::from_parts(2_842_000, 0)
|
||||
// Minimum execution time: 2_675_000 picoseconds.
|
||||
Weight::from_parts(2_802_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::ForceEra` (r:0 w:1)
|
||||
@@ -390,8 +392,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_496_000 picoseconds.
|
||||
Weight::from_parts(9_016_000, 0)
|
||||
// Minimum execution time: 7_067_000 picoseconds.
|
||||
Weight::from_parts(7_413_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::ForceEra` (r:0 w:1)
|
||||
@@ -400,8 +402,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_510_000 picoseconds.
|
||||
Weight::from_parts(8_893_000, 0)
|
||||
// Minimum execution time: 6_977_000 picoseconds.
|
||||
Weight::from_parts(7_353_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::ForceEra` (r:0 w:1)
|
||||
@@ -410,8 +412,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_243_000 picoseconds.
|
||||
Weight::from_parts(8_678_000, 0)
|
||||
// Minimum execution time: 7_071_000 picoseconds.
|
||||
Weight::from_parts(7_463_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::Invulnerables` (r:0 w:1)
|
||||
@@ -421,10 +423,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_781_000 picoseconds.
|
||||
Weight::from_parts(3_441_708, 0)
|
||||
// Standard Error: 58
|
||||
.saturating_add(Weight::from_parts(11_811, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 2_833_000 picoseconds.
|
||||
Weight::from_parts(3_328_130, 0)
|
||||
// Standard Error: 30
|
||||
.saturating_add(Weight::from_parts(10_058, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::Ledger` (r:11800 w:11800)
|
||||
@@ -438,10 +440,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1746 + i * (229 ±0)`
|
||||
// Estimated: `990 + i * (7132 ±0)`
|
||||
// Minimum execution time: 5_331_000 picoseconds.
|
||||
Weight::from_parts(5_511_000, 990)
|
||||
// Standard Error: 66_734
|
||||
.saturating_add(Weight::from_parts(31_157_413, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 5_300_000 picoseconds.
|
||||
Weight::from_parts(5_437_000, 990)
|
||||
// Standard Error: 66_261
|
||||
.saturating_add(Weight::from_parts(30_172_457, 0).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(i.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(i.into())))
|
||||
.saturating_add(Weight::from_parts(0, 7132).saturating_mul(i.into()))
|
||||
@@ -479,10 +481,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2196 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 89_473_000 picoseconds.
|
||||
Weight::from_parts(98_055_990, 6248)
|
||||
// Standard Error: 4_159
|
||||
.saturating_add(Weight::from_parts(1_398_203, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 87_677_000 picoseconds.
|
||||
Weight::from_parts(96_386_462, 6248)
|
||||
// Standard Error: 3_717
|
||||
.saturating_add(Weight::from_parts(1_370_585, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(13_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(12_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -495,10 +497,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66672`
|
||||
// Estimated: `70137`
|
||||
// Minimum execution time: 102_480_000 picoseconds.
|
||||
Weight::from_parts(1_165_789_820, 70137)
|
||||
// Standard Error: 77_157
|
||||
.saturating_add(Weight::from_parts(6_489_253, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 105_086_000 picoseconds.
|
||||
Weight::from_parts(1_167_895_222, 70137)
|
||||
// Standard Error: 77_022
|
||||
.saturating_add(Weight::from_parts(6_487_305, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -534,11 +536,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `33297 + n * (377 ±0)`
|
||||
// Estimated: `30944 + n * (3774 ±0)`
|
||||
// Minimum execution time: 156_890_000 picoseconds.
|
||||
Weight::from_parts(202_972_688, 30944)
|
||||
// Standard Error: 29_972
|
||||
.saturating_add(Weight::from_parts(48_226_698, 0).saturating_mul(n.into()))
|
||||
// Estimated: `30944 + n * (3774 ±3)`
|
||||
// Minimum execution time: 154_210_000 picoseconds.
|
||||
Weight::from_parts(192_836_012, 30944)
|
||||
// Standard Error: 40_441
|
||||
.saturating_add(Weight::from_parts(47_646_642, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(14_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
@@ -562,10 +564,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1991 + l * (7 ±0)`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 88_482_000 picoseconds.
|
||||
Weight::from_parts(92_616_600, 8877)
|
||||
// Standard Error: 4_411
|
||||
.saturating_add(Weight::from_parts(117_722, 0).saturating_mul(l.into()))
|
||||
// Minimum execution time: 88_337_000 picoseconds.
|
||||
Weight::from_parts(91_391_254, 8877)
|
||||
// Standard Error: 4_485
|
||||
.saturating_add(Weight::from_parts(103_443, 0).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(9_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
@@ -600,10 +602,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2196 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 98_489_000 picoseconds.
|
||||
Weight::from_parts(102_968_643, 6248)
|
||||
// Standard Error: 4_823
|
||||
.saturating_add(Weight::from_parts(1_420_838, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 98_014_000 picoseconds.
|
||||
Weight::from_parts(102_537_670, 6248)
|
||||
// Standard Error: 3_324
|
||||
.saturating_add(Weight::from_parts(1_353_142, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(12_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(11_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -649,12 +651,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (720 ±0) + v * (3598 ±0)`
|
||||
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
|
||||
// Minimum execution time: 604_820_000 picoseconds.
|
||||
Weight::from_parts(608_838_000, 512390)
|
||||
// Standard Error: 2_300_345
|
||||
.saturating_add(Weight::from_parts(72_980_573, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 229_216
|
||||
.saturating_add(Weight::from_parts(20_739_416, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 608_575_000 picoseconds.
|
||||
Weight::from_parts(613_663_000, 512390)
|
||||
// Standard Error: 2_286_521
|
||||
.saturating_add(Weight::from_parts(72_108_001, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 227_839
|
||||
.saturating_add(Weight::from_parts(20_314_085, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(206_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
@@ -685,12 +687,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3175 + n * (911 ±0) + v * (395 ±0)`
|
||||
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
|
||||
// Minimum execution time: 37_380_439_000 picoseconds.
|
||||
Weight::from_parts(38_187_734_000, 512390)
|
||||
// Standard Error: 425_319
|
||||
.saturating_add(Weight::from_parts(6_001_288, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 425_319
|
||||
.saturating_add(Weight::from_parts(4_129_446, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 37_173_756_000 picoseconds.
|
||||
Weight::from_parts(37_488_937_000, 512390)
|
||||
// Standard Error: 467_413
|
||||
.saturating_add(Weight::from_parts(8_086_367, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 467_413
|
||||
.saturating_add(Weight::from_parts(3_108_193, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(201_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
@@ -707,10 +709,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `979 + v * (50 ±0)`
|
||||
// Estimated: `3510 + v * (2520 ±0)`
|
||||
// Minimum execution time: 2_572_838_000 picoseconds.
|
||||
Weight::from_parts(67_632_557, 3510)
|
||||
// Standard Error: 12_028
|
||||
.saturating_add(Weight::from_parts(5_117_459, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 2_641_258_000 picoseconds.
|
||||
Weight::from_parts(382_882_595, 3510)
|
||||
// Standard Error: 11_991
|
||||
.saturating_add(Weight::from_parts(4_695_820, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
|
||||
@@ -733,8 +735,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_962_000 picoseconds.
|
||||
Weight::from_parts(6_497_000, 0)
|
||||
// Minimum execution time: 5_753_000 picoseconds.
|
||||
Weight::from_parts(6_529_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// Storage: `Staking::MinCommission` (r:0 w:1)
|
||||
@@ -755,8 +757,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_227_000 picoseconds.
|
||||
Weight::from_parts(5_496_000, 0)
|
||||
// Minimum execution time: 5_212_000 picoseconds.
|
||||
Weight::from_parts(5_451_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
@@ -785,8 +787,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1939`
|
||||
// Estimated: `6248`
|
||||
// Minimum execution time: 75_129_000 picoseconds.
|
||||
Weight::from_parts(77_498_000, 6248)
|
||||
// Minimum execution time: 73_000_000 picoseconds.
|
||||
Weight::from_parts(75_184_000, 6248)
|
||||
.saturating_add(T::DbWeight::get().reads(12_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6_u64))
|
||||
}
|
||||
@@ -798,8 +800,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `691`
|
||||
// Estimated: `3510`
|
||||
// Minimum execution time: 13_488_000 picoseconds.
|
||||
Weight::from_parts(14_183_000, 3510)
|
||||
// Minimum execution time: 13_056_000 picoseconds.
|
||||
Weight::from_parts(13_517_000, 3510)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -809,8 +811,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_368_000 picoseconds.
|
||||
Weight::from_parts(3_582_000, 0)
|
||||
// Minimum execution time: 3_201_000 picoseconds.
|
||||
Weight::from_parts(3_442_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
@@ -827,8 +829,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1047`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 44_876_000 picoseconds.
|
||||
Weight::from_parts(46_353_000, 4764)
|
||||
// Minimum execution time: 44_671_000 picoseconds.
|
||||
Weight::from_parts(45_611_000, 4764)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -850,8 +852,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1042`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 48_753_000 picoseconds.
|
||||
Weight::from_parts(50_539_000, 4764)
|
||||
// Minimum execution time: 46_504_000 picoseconds.
|
||||
Weight::from_parts(48_459_000, 4764)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -871,8 +873,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1990`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 92_701_000 picoseconds.
|
||||
Weight::from_parts(95_657_000, 8877)
|
||||
// Minimum execution time: 90_475_000 picoseconds.
|
||||
Weight::from_parts(93_619_000, 8877)
|
||||
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
@@ -898,8 +900,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2195`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 101_049_000 picoseconds.
|
||||
Weight::from_parts(103_729_000, 8877)
|
||||
// Minimum execution time: 99_335_000 picoseconds.
|
||||
Weight::from_parts(101_440_000, 8877)
|
||||
.saturating_add(RocksDbWeight::get().reads(12_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
@@ -920,10 +922,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1297`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 51_672_000 picoseconds.
|
||||
Weight::from_parts(53_817_441, 4764)
|
||||
// Standard Error: 1_124
|
||||
.saturating_add(Weight::from_parts(49_168, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 50_067_000 picoseconds.
|
||||
Weight::from_parts(52_396_327, 4764)
|
||||
// Standard Error: 1_419
|
||||
.saturating_add(Weight::from_parts(51_406, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -960,10 +962,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2196 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 92_846_000 picoseconds.
|
||||
Weight::from_parts(102_158_606, 6248)
|
||||
// Standard Error: 4_187
|
||||
.saturating_add(Weight::from_parts(1_436_364, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 92_931_000 picoseconds.
|
||||
Weight::from_parts(101_398_156, 6248)
|
||||
// Standard Error: 4_180
|
||||
.saturating_add(Weight::from_parts(1_377_850, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(13_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(11_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -995,8 +997,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1372`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 58_162_000 picoseconds.
|
||||
Weight::from_parts(60_124_000, 4556)
|
||||
// Minimum execution time: 56_291_000 picoseconds.
|
||||
Weight::from_parts(58_372_000, 4556)
|
||||
.saturating_add(RocksDbWeight::get().reads(11_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
@@ -1011,10 +1013,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1815 + k * (572 ±0)`
|
||||
// Estimated: `4556 + k * (3033 ±0)`
|
||||
// Minimum execution time: 37_950_000 picoseconds.
|
||||
Weight::from_parts(34_461_075, 4556)
|
||||
// Standard Error: 8_013
|
||||
.saturating_add(Weight::from_parts(6_696_510, 0).saturating_mul(k.into()))
|
||||
// Minimum execution time: 36_218_000 picoseconds.
|
||||
Weight::from_parts(38_811_308, 4556)
|
||||
// Standard Error: 8_352
|
||||
.saturating_add(Weight::from_parts(6_527_398, 0).saturating_mul(k.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(k.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(k.into())))
|
||||
@@ -1047,10 +1049,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1866 + n * (102 ±0)`
|
||||
// Estimated: `6248 + n * (2520 ±0)`
|
||||
// Minimum execution time: 70_167_000 picoseconds.
|
||||
Weight::from_parts(68_024_084, 6248)
|
||||
// Standard Error: 14_256
|
||||
.saturating_add(Weight::from_parts(4_195_757, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 68_607_000 picoseconds.
|
||||
Weight::from_parts(66_831_185, 6248)
|
||||
// Standard Error: 14_014
|
||||
.saturating_add(Weight::from_parts(4_031_635, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(12_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
@@ -1076,8 +1078,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1816`
|
||||
// Estimated: `6248`
|
||||
// Minimum execution time: 61_730_000 picoseconds.
|
||||
Weight::from_parts(63_430_000, 6248)
|
||||
// Minimum execution time: 60_088_000 picoseconds.
|
||||
Weight::from_parts(62_471_000, 6248)
|
||||
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
@@ -1091,8 +1093,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `902`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 20_857_000 picoseconds.
|
||||
Weight::from_parts(21_615_000, 4556)
|
||||
// Minimum execution time: 19_777_000 picoseconds.
|
||||
Weight::from_parts(20_690_000, 4556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1106,8 +1108,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `969`
|
||||
// Estimated: `4556`
|
||||
// Minimum execution time: 24_739_000 picoseconds.
|
||||
Weight::from_parts(25_785_000, 4556)
|
||||
// Minimum execution time: 23_705_000 picoseconds.
|
||||
Weight::from_parts(24_409_000, 4556)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1119,8 +1121,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `902`
|
||||
// Estimated: `8122`
|
||||
// Minimum execution time: 24_622_000 picoseconds.
|
||||
Weight::from_parts(25_220_000, 8122)
|
||||
// Minimum execution time: 23_479_000 picoseconds.
|
||||
Weight::from_parts(24_502_000, 8122)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -1130,8 +1132,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_634_000 picoseconds.
|
||||
Weight::from_parts(2_842_000, 0)
|
||||
// Minimum execution time: 2_675_000 picoseconds.
|
||||
Weight::from_parts(2_802_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::ForceEra` (r:0 w:1)
|
||||
@@ -1140,8 +1142,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_496_000 picoseconds.
|
||||
Weight::from_parts(9_016_000, 0)
|
||||
// Minimum execution time: 7_067_000 picoseconds.
|
||||
Weight::from_parts(7_413_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::ForceEra` (r:0 w:1)
|
||||
@@ -1150,8 +1152,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_510_000 picoseconds.
|
||||
Weight::from_parts(8_893_000, 0)
|
||||
// Minimum execution time: 6_977_000 picoseconds.
|
||||
Weight::from_parts(7_353_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::ForceEra` (r:0 w:1)
|
||||
@@ -1160,8 +1162,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_243_000 picoseconds.
|
||||
Weight::from_parts(8_678_000, 0)
|
||||
// Minimum execution time: 7_071_000 picoseconds.
|
||||
Weight::from_parts(7_463_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::Invulnerables` (r:0 w:1)
|
||||
@@ -1171,10 +1173,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_781_000 picoseconds.
|
||||
Weight::from_parts(3_441_708, 0)
|
||||
// Standard Error: 58
|
||||
.saturating_add(Weight::from_parts(11_811, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 2_833_000 picoseconds.
|
||||
Weight::from_parts(3_328_130, 0)
|
||||
// Standard Error: 30
|
||||
.saturating_add(Weight::from_parts(10_058, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Staking::Ledger` (r:11800 w:11800)
|
||||
@@ -1188,10 +1190,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1746 + i * (229 ±0)`
|
||||
// Estimated: `990 + i * (7132 ±0)`
|
||||
// Minimum execution time: 5_331_000 picoseconds.
|
||||
Weight::from_parts(5_511_000, 990)
|
||||
// Standard Error: 66_734
|
||||
.saturating_add(Weight::from_parts(31_157_413, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 5_300_000 picoseconds.
|
||||
Weight::from_parts(5_437_000, 990)
|
||||
// Standard Error: 66_261
|
||||
.saturating_add(Weight::from_parts(30_172_457, 0).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(i.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((3_u64).saturating_mul(i.into())))
|
||||
.saturating_add(Weight::from_parts(0, 7132).saturating_mul(i.into()))
|
||||
@@ -1229,10 +1231,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2196 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 89_473_000 picoseconds.
|
||||
Weight::from_parts(98_055_990, 6248)
|
||||
// Standard Error: 4_159
|
||||
.saturating_add(Weight::from_parts(1_398_203, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 87_677_000 picoseconds.
|
||||
Weight::from_parts(96_386_462, 6248)
|
||||
// Standard Error: 3_717
|
||||
.saturating_add(Weight::from_parts(1_370_585, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(13_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(12_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -1245,10 +1247,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `66672`
|
||||
// Estimated: `70137`
|
||||
// Minimum execution time: 102_480_000 picoseconds.
|
||||
Weight::from_parts(1_165_789_820, 70137)
|
||||
// Standard Error: 77_157
|
||||
.saturating_add(Weight::from_parts(6_489_253, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 105_086_000 picoseconds.
|
||||
Weight::from_parts(1_167_895_222, 70137)
|
||||
// Standard Error: 77_022
|
||||
.saturating_add(Weight::from_parts(6_487_305, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1284,11 +1286,11 @@ impl WeightInfo for () {
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `33297 + n * (377 ±0)`
|
||||
// Estimated: `30944 + n * (3774 ±0)`
|
||||
// Minimum execution time: 156_890_000 picoseconds.
|
||||
Weight::from_parts(202_972_688, 30944)
|
||||
// Standard Error: 29_972
|
||||
.saturating_add(Weight::from_parts(48_226_698, 0).saturating_mul(n.into()))
|
||||
// Estimated: `30944 + n * (3774 ±3)`
|
||||
// Minimum execution time: 154_210_000 picoseconds.
|
||||
Weight::from_parts(192_836_012, 30944)
|
||||
// Standard Error: 40_441
|
||||
.saturating_add(Weight::from_parts(47_646_642, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(14_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((6_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
@@ -1312,10 +1314,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1991 + l * (7 ±0)`
|
||||
// Estimated: `8877`
|
||||
// Minimum execution time: 88_482_000 picoseconds.
|
||||
Weight::from_parts(92_616_600, 8877)
|
||||
// Standard Error: 4_411
|
||||
.saturating_add(Weight::from_parts(117_722, 0).saturating_mul(l.into()))
|
||||
// Minimum execution time: 88_337_000 picoseconds.
|
||||
Weight::from_parts(91_391_254, 8877)
|
||||
// Standard Error: 4_485
|
||||
.saturating_add(Weight::from_parts(103_443, 0).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(9_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
@@ -1350,10 +1352,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `2196 + s * (4 ±0)`
|
||||
// Estimated: `6248 + s * (4 ±0)`
|
||||
// Minimum execution time: 98_489_000 picoseconds.
|
||||
Weight::from_parts(102_968_643, 6248)
|
||||
// Standard Error: 4_823
|
||||
.saturating_add(Weight::from_parts(1_420_838, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 98_014_000 picoseconds.
|
||||
Weight::from_parts(102_537_670, 6248)
|
||||
// Standard Error: 3_324
|
||||
.saturating_add(Weight::from_parts(1_353_142, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(12_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(11_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
@@ -1399,12 +1401,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0 + n * (720 ±0) + v * (3598 ±0)`
|
||||
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
|
||||
// Minimum execution time: 604_820_000 picoseconds.
|
||||
Weight::from_parts(608_838_000, 512390)
|
||||
// Standard Error: 2_300_345
|
||||
.saturating_add(Weight::from_parts(72_980_573, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 229_216
|
||||
.saturating_add(Weight::from_parts(20_739_416, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 608_575_000 picoseconds.
|
||||
Weight::from_parts(613_663_000, 512390)
|
||||
// Standard Error: 2_286_521
|
||||
.saturating_add(Weight::from_parts(72_108_001, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 227_839
|
||||
.saturating_add(Weight::from_parts(20_314_085, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(206_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
@@ -1435,12 +1437,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3175 + n * (911 ±0) + v * (395 ±0)`
|
||||
// Estimated: `512390 + n * (3566 ±0) + v * (3566 ±0)`
|
||||
// Minimum execution time: 37_380_439_000 picoseconds.
|
||||
Weight::from_parts(38_187_734_000, 512390)
|
||||
// Standard Error: 425_319
|
||||
.saturating_add(Weight::from_parts(6_001_288, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 425_319
|
||||
.saturating_add(Weight::from_parts(4_129_446, 0).saturating_mul(n.into()))
|
||||
// Minimum execution time: 37_173_756_000 picoseconds.
|
||||
Weight::from_parts(37_488_937_000, 512390)
|
||||
// Standard Error: 467_413
|
||||
.saturating_add(Weight::from_parts(8_086_367, 0).saturating_mul(v.into()))
|
||||
// Standard Error: 467_413
|
||||
.saturating_add(Weight::from_parts(3_108_193, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(201_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(v.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((4_u64).saturating_mul(n.into())))
|
||||
@@ -1457,10 +1459,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `979 + v * (50 ±0)`
|
||||
// Estimated: `3510 + v * (2520 ±0)`
|
||||
// Minimum execution time: 2_572_838_000 picoseconds.
|
||||
Weight::from_parts(67_632_557, 3510)
|
||||
// Standard Error: 12_028
|
||||
.saturating_add(Weight::from_parts(5_117_459, 0).saturating_mul(v.into()))
|
||||
// Minimum execution time: 2_641_258_000 picoseconds.
|
||||
Weight::from_parts(382_882_595, 3510)
|
||||
// Standard Error: 11_991
|
||||
.saturating_add(Weight::from_parts(4_695_820, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(v.into()))
|
||||
@@ -1483,8 +1485,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_962_000 picoseconds.
|
||||
Weight::from_parts(6_497_000, 0)
|
||||
// Minimum execution time: 5_753_000 picoseconds.
|
||||
Weight::from_parts(6_529_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// Storage: `Staking::MinCommission` (r:0 w:1)
|
||||
@@ -1505,8 +1507,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_227_000 picoseconds.
|
||||
Weight::from_parts(5_496_000, 0)
|
||||
// Minimum execution time: 5_212_000 picoseconds.
|
||||
Weight::from_parts(5_451_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(7_u64))
|
||||
}
|
||||
/// Storage: `Staking::Bonded` (r:1 w:0)
|
||||
@@ -1535,8 +1537,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1939`
|
||||
// Estimated: `6248`
|
||||
// Minimum execution time: 75_129_000 picoseconds.
|
||||
Weight::from_parts(77_498_000, 6248)
|
||||
// Minimum execution time: 73_000_000 picoseconds.
|
||||
Weight::from_parts(75_184_000, 6248)
|
||||
.saturating_add(RocksDbWeight::get().reads(12_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6_u64))
|
||||
}
|
||||
@@ -1548,8 +1550,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `691`
|
||||
// Estimated: `3510`
|
||||
// Minimum execution time: 13_488_000 picoseconds.
|
||||
Weight::from_parts(14_183_000, 3510)
|
||||
// Minimum execution time: 13_056_000 picoseconds.
|
||||
Weight::from_parts(13_517_000, 3510)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -1559,8 +1561,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 3_368_000 picoseconds.
|
||||
Weight::from_parts(3_582_000, 0)
|
||||
// Minimum execution time: 3_201_000 picoseconds.
|
||||
Weight::from_parts(3_442_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Locks` (r:1 w:1)
|
||||
@@ -1577,8 +1579,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `1047`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 44_876_000 picoseconds.
|
||||
Weight::from_parts(46_353_000, 4764)
|
||||
// Minimum execution time: 44_671_000 picoseconds.
|
||||
Weight::from_parts(45_611_000, 4764)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
|
||||
+60
-58
@@ -17,26 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_state_trie_migration`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2024-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-grjcggob-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_state_trie_migration
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_state_trie_migration
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/state-trie-migration/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -64,15 +66,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `StateTrieMigration::SignedMigrationMaxLimits` (r:1 w:0)
|
||||
/// Proof: `StateTrieMigration::SignedMigrationMaxLimits` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:0)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `108`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 18_520_000 picoseconds.
|
||||
Weight::from_parts(19_171_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 18_293_000 picoseconds.
|
||||
Weight::from_parts(18_577_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -82,53 +84,53 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `1493`
|
||||
// Minimum execution time: 3_786_000 picoseconds.
|
||||
Weight::from_parts(4_038_000, 1493)
|
||||
// Minimum execution time: 4_240_000 picoseconds.
|
||||
Weight::from_parts(4_369_000, 1493)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:0)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn migrate_custom_top_success() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 11_144_000 picoseconds.
|
||||
Weight::from_parts(11_556_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 11_909_000 picoseconds.
|
||||
Weight::from_parts(12_453_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_top_fail() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `113`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 59_288_000 picoseconds.
|
||||
Weight::from_parts(60_276_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 65_631_000 picoseconds.
|
||||
Weight::from_parts(66_506_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:0)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn migrate_custom_child_success() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 11_258_000 picoseconds.
|
||||
Weight::from_parts(11_626_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 12_208_000 picoseconds.
|
||||
Weight::from_parts(12_690_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_child_fail() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 61_575_000 picoseconds.
|
||||
Weight::from_parts(63_454_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 66_988_000 picoseconds.
|
||||
Weight::from_parts(68_616_000, 3658)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -139,10 +141,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `197 + v * (1 ±0)`
|
||||
// Estimated: `3662 + v * (1 ±0)`
|
||||
// Minimum execution time: 5_259_000 picoseconds.
|
||||
Weight::from_parts(5_433_000, 3662)
|
||||
// Minimum execution time: 5_365_000 picoseconds.
|
||||
Weight::from_parts(5_460_000, 3662)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_159, 0).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_parts(1_150, 0).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(v.into()))
|
||||
@@ -154,15 +156,15 @@ impl WeightInfo for () {
|
||||
/// Storage: `StateTrieMigration::SignedMigrationMaxLimits` (r:1 w:0)
|
||||
/// Proof: `StateTrieMigration::SignedMigrationMaxLimits` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Balances::Holds` (r:1 w:0)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `108`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 18_520_000 picoseconds.
|
||||
Weight::from_parts(19_171_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 18_293_000 picoseconds.
|
||||
Weight::from_parts(18_577_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -172,53 +174,53 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `1493`
|
||||
// Minimum execution time: 3_786_000 picoseconds.
|
||||
Weight::from_parts(4_038_000, 1493)
|
||||
// Minimum execution time: 4_240_000 picoseconds.
|
||||
Weight::from_parts(4_369_000, 1493)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:0)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn migrate_custom_top_success() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 11_144_000 picoseconds.
|
||||
Weight::from_parts(11_556_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 11_909_000 picoseconds.
|
||||
Weight::from_parts(12_453_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_top_fail() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `113`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 59_288_000 picoseconds.
|
||||
Weight::from_parts(60_276_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 65_631_000 picoseconds.
|
||||
Weight::from_parts(66_506_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:0)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
fn migrate_custom_child_success() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 11_258_000 picoseconds.
|
||||
Weight::from_parts(11_626_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 12_208_000 picoseconds.
|
||||
Weight::from_parts(12_690_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(175), added: 2650, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
|
||||
/// Storage: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x666f6f` (r:1 w:1)
|
||||
fn migrate_custom_child_fail() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `106`
|
||||
// Estimated: `3640`
|
||||
// Minimum execution time: 61_575_000 picoseconds.
|
||||
Weight::from_parts(63_454_000, 3640)
|
||||
// Estimated: `3658`
|
||||
// Minimum execution time: 66_988_000 picoseconds.
|
||||
Weight::from_parts(68_616_000, 3658)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -229,10 +231,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `197 + v * (1 ±0)`
|
||||
// Estimated: `3662 + v * (1 ±0)`
|
||||
// Minimum execution time: 5_259_000 picoseconds.
|
||||
Weight::from_parts(5_433_000, 3662)
|
||||
// Minimum execution time: 5_365_000 picoseconds.
|
||||
Weight::from_parts(5_460_000, 3662)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_159, 0).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_parts(1_150, 0).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(v.into()))
|
||||
|
||||
Generated
+26
-24
@@ -17,26 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_sudo`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-11-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-yprdrvc7-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_sudo
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_sudo
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/sudo/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -64,8 +66,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 9_600_000 picoseconds.
|
||||
Weight::from_parts(10_076_000, 1517)
|
||||
// Minimum execution time: 9_486_000 picoseconds.
|
||||
Weight::from_parts(9_663_000, 1517)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -75,8 +77,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 10_453_000 picoseconds.
|
||||
Weight::from_parts(10_931_000, 1517)
|
||||
// Minimum execution time: 10_501_000 picoseconds.
|
||||
Weight::from_parts(10_729_000, 1517)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Sudo::Key` (r:1 w:0)
|
||||
@@ -85,8 +87,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 10_202_000 picoseconds.
|
||||
Weight::from_parts(10_800_000, 1517)
|
||||
// Minimum execution time: 10_742_000 picoseconds.
|
||||
Weight::from_parts(11_003_000, 1517)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Sudo::Key` (r:1 w:1)
|
||||
@@ -95,8 +97,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 8_555_000 picoseconds.
|
||||
Weight::from_parts(8_846_000, 1517)
|
||||
// Minimum execution time: 8_837_000 picoseconds.
|
||||
Weight::from_parts(9_127_000, 1517)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -110,8 +112,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 9_600_000 picoseconds.
|
||||
Weight::from_parts(10_076_000, 1517)
|
||||
// Minimum execution time: 9_486_000 picoseconds.
|
||||
Weight::from_parts(9_663_000, 1517)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -121,8 +123,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 10_453_000 picoseconds.
|
||||
Weight::from_parts(10_931_000, 1517)
|
||||
// Minimum execution time: 10_501_000 picoseconds.
|
||||
Weight::from_parts(10_729_000, 1517)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Sudo::Key` (r:1 w:0)
|
||||
@@ -131,8 +133,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 10_202_000 picoseconds.
|
||||
Weight::from_parts(10_800_000, 1517)
|
||||
// Minimum execution time: 10_742_000 picoseconds.
|
||||
Weight::from_parts(11_003_000, 1517)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
}
|
||||
/// Storage: `Sudo::Key` (r:1 w:1)
|
||||
@@ -141,8 +143,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `165`
|
||||
// Estimated: `1517`
|
||||
// Minimum execution time: 8_555_000 picoseconds.
|
||||
Weight::from_parts(8_846_000, 1517)
|
||||
// Minimum execution time: 8_837_000 picoseconds.
|
||||
Weight::from_parts(9_127_000, 1517)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
@@ -303,6 +303,24 @@ fn ensure_valid_return_type(item_fn: &ItemFn) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Ensure that the passed statements do not contain any forbidden variable names
|
||||
fn ensure_no_forbidden_variable_names(stmts: &[Stmt]) -> Result<()> {
|
||||
const FORBIDDEN_VAR_NAMES: [&str; 2] = ["recording", "verify"];
|
||||
for stmt in stmts {
|
||||
let Stmt::Local(l) = stmt else { continue };
|
||||
let Pat::Ident(ident) = &l.pat else { continue };
|
||||
if FORBIDDEN_VAR_NAMES.contains(&ident.ident.to_string().as_str()) {
|
||||
return Err(Error::new(
|
||||
ident.span(),
|
||||
format!(
|
||||
"Variables {FORBIDDEN_VAR_NAMES:?} are reserved for benchmarking internals.",
|
||||
),
|
||||
));
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
/// Parses params such as `x: Linear<0, 1>`
|
||||
fn parse_params(item_fn: &ItemFn) -> Result<Vec<ParamDef>> {
|
||||
let mut params: Vec<ParamDef> = Vec::new();
|
||||
@@ -436,9 +454,12 @@ impl BenchmarkDef {
|
||||
},
|
||||
};
|
||||
|
||||
let setup_stmts = Vec::from(&item_fn.block.stmts[0..i]);
|
||||
ensure_no_forbidden_variable_names(&setup_stmts)?;
|
||||
|
||||
Ok(BenchmarkDef {
|
||||
params,
|
||||
setup_stmts: Vec::from(&item_fn.block.stmts[0..i]),
|
||||
setup_stmts,
|
||||
call_def,
|
||||
verify_stmts,
|
||||
last_stmt,
|
||||
@@ -633,18 +654,16 @@ pub fn benchmarks(
|
||||
|
||||
fn instance(
|
||||
&self,
|
||||
recording: &mut impl #krate::Recording,
|
||||
components: &[(#krate::BenchmarkParameter, u32)],
|
||||
verify: bool,
|
||||
) -> Result<
|
||||
#krate::__private::Box<dyn FnOnce() -> Result<(), #krate::BenchmarkError>>,
|
||||
#krate::BenchmarkError,
|
||||
> {
|
||||
) -> Result<(), #krate::BenchmarkError> {
|
||||
match self {
|
||||
#(
|
||||
Self::#benchmark_names => {
|
||||
<#benchmark_names as #krate::BenchmarkingSetup<
|
||||
#type_use_generics
|
||||
>>::instance(&#benchmark_names, components, verify)
|
||||
>>::instance(&#benchmark_names, recording, components, verify)
|
||||
}
|
||||
)
|
||||
*
|
||||
@@ -735,17 +754,7 @@ pub fn benchmarks(
|
||||
#krate::benchmarking::set_whitelist(whitelist.clone());
|
||||
let mut results: #krate::__private::Vec<#krate::BenchmarkResult> = #krate::__private::Vec::new();
|
||||
|
||||
// Always do at least one internal repeat...
|
||||
for _ in 0 .. internal_repeats.max(1) {
|
||||
// Always reset the state after the benchmark.
|
||||
#krate::__private::defer!(#krate::benchmarking::wipe_db());
|
||||
|
||||
// Set up the externalities environment for the setup we want to
|
||||
// benchmark.
|
||||
let closure_to_benchmark = <
|
||||
SelectedBenchmark as #krate::BenchmarkingSetup<#type_use_generics>
|
||||
>::instance(&selected_benchmark, c, verify)?;
|
||||
|
||||
let on_before_start = || {
|
||||
// Set the block number to at least 1 so events are deposited.
|
||||
if #krate::__private::Zero::is_zero(&#frame_system::Pallet::<T>::block_number()) {
|
||||
#frame_system::Pallet::<T>::set_block_number(1u32.into());
|
||||
@@ -763,6 +772,12 @@ pub fn benchmarks(
|
||||
|
||||
// Reset the read/write counter so we don't count operations in the setup process.
|
||||
#krate::benchmarking::reset_read_write_count();
|
||||
};
|
||||
|
||||
// Always do at least one internal repeat...
|
||||
for _ in 0 .. internal_repeats.max(1) {
|
||||
// Always reset the state after the benchmark.
|
||||
#krate::__private::defer!(#krate::benchmarking::wipe_db());
|
||||
|
||||
// Time the extrinsic logic.
|
||||
#krate::__private::log::trace!(
|
||||
@@ -772,20 +787,12 @@ pub fn benchmarks(
|
||||
c
|
||||
);
|
||||
|
||||
let start_pov = #krate::benchmarking::proof_size();
|
||||
let start_extrinsic = #krate::benchmarking::current_time();
|
||||
|
||||
closure_to_benchmark()?;
|
||||
|
||||
let finish_extrinsic = #krate::benchmarking::current_time();
|
||||
let end_pov = #krate::benchmarking::proof_size();
|
||||
let mut recording = #krate::BenchmarkRecording::new(&on_before_start);
|
||||
<SelectedBenchmark as #krate::BenchmarkingSetup<#type_use_generics>>::instance(&selected_benchmark, &mut recording, c, verify)?;
|
||||
|
||||
// Calculate the diff caused by the benchmark.
|
||||
let elapsed_extrinsic = finish_extrinsic.saturating_sub(start_extrinsic);
|
||||
let diff_pov = match (start_pov, end_pov) {
|
||||
(Some(start), Some(end)) => end.saturating_sub(start),
|
||||
_ => Default::default(),
|
||||
};
|
||||
let elapsed_extrinsic = recording.elapsed_extrinsic().expect("elapsed time should be recorded");
|
||||
let diff_pov = recording.diff_pov().unwrap_or_default();
|
||||
|
||||
// Commit the changes to get proper write count
|
||||
#krate::benchmarking::commit_db();
|
||||
@@ -1086,9 +1093,10 @@ fn expand_benchmark(
|
||||
|
||||
fn instance(
|
||||
&self,
|
||||
recording: &mut impl #krate::Recording,
|
||||
components: &[(#krate::BenchmarkParameter, u32)],
|
||||
verify: bool
|
||||
) -> Result<#krate::__private::Box<dyn FnOnce() -> Result<(), #krate::BenchmarkError>>, #krate::BenchmarkError> {
|
||||
) -> Result<(), #krate::BenchmarkError> {
|
||||
#(
|
||||
// prepare instance #param_names
|
||||
let #param_names = components.iter()
|
||||
@@ -1102,15 +1110,15 @@ fn expand_benchmark(
|
||||
#setup_stmts
|
||||
)*
|
||||
#pre_call
|
||||
Ok(#krate::__private::Box::new(move || -> Result<(), #krate::BenchmarkError> {
|
||||
#post_call
|
||||
if verify {
|
||||
#(
|
||||
#verify_stmts
|
||||
)*
|
||||
}
|
||||
#impl_last_stmt
|
||||
}))
|
||||
recording.start();
|
||||
#post_call
|
||||
recording.stop();
|
||||
if verify {
|
||||
#(
|
||||
#verify_stmts
|
||||
)*
|
||||
}
|
||||
#impl_last_stmt
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1128,18 +1136,15 @@ fn expand_benchmark(
|
||||
// Always reset the state after the benchmark.
|
||||
#krate::__private::defer!(#krate::benchmarking::wipe_db());
|
||||
|
||||
// Set up the benchmark, return execution + verification function.
|
||||
let closure_to_verify = <
|
||||
SelectedBenchmark as #krate::BenchmarkingSetup<T, _>
|
||||
>::instance(&selected_benchmark, &c, true)?;
|
||||
|
||||
// Set the block number to at least 1 so events are deposited.
|
||||
if #krate::__private::Zero::is_zero(&#frame_system::Pallet::<T>::block_number()) {
|
||||
#frame_system::Pallet::<T>::set_block_number(1u32.into());
|
||||
}
|
||||
let on_before_start = || {
|
||||
// Set the block number to at least 1 so events are deposited.
|
||||
if #krate::__private::Zero::is_zero(&#frame_system::Pallet::<T>::block_number()) {
|
||||
#frame_system::Pallet::<T>::set_block_number(1u32.into());
|
||||
}
|
||||
};
|
||||
|
||||
// Run execution + verification
|
||||
closure_to_verify()
|
||||
<SelectedBenchmark as #krate::BenchmarkingSetup<T, _>>::test_instance(&selected_benchmark, &c, &on_before_start)
|
||||
};
|
||||
|
||||
if components.is_empty() {
|
||||
|
||||
@@ -15,24 +15,23 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16 (Y/M/D)
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08 (Y/M/D)
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//!
|
||||
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Development`
|
||||
//! WARMUPS: `10`, REPEAT: `100`
|
||||
//! WEIGHT-PATH: `./frame/support/src/weights/`
|
||||
//! WEIGHT-PATH: `./substrate/frame/support/src/weights/`
|
||||
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// overhead
|
||||
// --chain=dev
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --weight-path=./frame/support/src/weights/
|
||||
// --header=./HEADER-APACHE2
|
||||
// --weight-path=./substrate/frame/support/src/weights/
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --warmup=10
|
||||
// --repeat=100
|
||||
|
||||
@@ -44,17 +43,17 @@ parameter_types! {
|
||||
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
|
||||
///
|
||||
/// Stats nanoseconds:
|
||||
/// Min, Max: 376_949, 622_462
|
||||
/// Average: 390_584
|
||||
/// Median: 386_322
|
||||
/// Std-Dev: 24792.0
|
||||
/// Min, Max: 440_235, 661_535
|
||||
/// Average: 453_383
|
||||
/// Median: 449_925
|
||||
/// Std-Dev: 22021.99
|
||||
///
|
||||
/// Percentiles nanoseconds:
|
||||
/// 99th: 433_299
|
||||
/// 95th: 402_688
|
||||
/// 75th: 391_645
|
||||
/// 99th: 474_045
|
||||
/// 95th: 466_455
|
||||
/// 75th: 455_056
|
||||
pub const BlockExecutionWeight: Weight =
|
||||
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(390_584), 0);
|
||||
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(453_383), 0);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
@@ -15,24 +15,23 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16 (Y/M/D)
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08 (Y/M/D)
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//!
|
||||
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Development`
|
||||
//! WARMUPS: `10`, REPEAT: `100`
|
||||
//! WEIGHT-PATH: `./frame/support/src/weights/`
|
||||
//! WEIGHT-PATH: `./substrate/frame/support/src/weights/`
|
||||
//! WEIGHT-METRIC: `Average`, WEIGHT-MUL: `1.0`, WEIGHT-ADD: `0`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// overhead
|
||||
// --chain=dev
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --weight-path=./frame/support/src/weights/
|
||||
// --header=./HEADER-APACHE2
|
||||
// --weight-path=./substrate/frame/support/src/weights/
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --warmup=10
|
||||
// --repeat=100
|
||||
|
||||
@@ -44,17 +43,17 @@ parameter_types! {
|
||||
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
|
||||
///
|
||||
/// Stats nanoseconds:
|
||||
/// Min, Max: 123_875, 128_419
|
||||
/// Average: 124_414
|
||||
/// Median: 124_332
|
||||
/// Std-Dev: 497.74
|
||||
/// Min, Max: 106_559, 107_788
|
||||
/// Average: 107_074
|
||||
/// Median: 107_067
|
||||
/// Std-Dev: 242.67
|
||||
///
|
||||
/// Percentiles nanoseconds:
|
||||
/// 99th: 125_245
|
||||
/// 95th: 124_989
|
||||
/// 75th: 124_498
|
||||
/// 99th: 107_675
|
||||
/// 95th: 107_513
|
||||
/// 75th: 107_225
|
||||
pub const ExtrinsicBaseWeight: Weight =
|
||||
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(124_414), 0);
|
||||
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(107_074), 0);
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Generated
+127
-122
@@ -15,30 +15,31 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for frame_system
|
||||
//! Autogenerated weights for `frame_system`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-s7kdgajz-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=frame_system
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=frame-system
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/system/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/system/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -48,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for frame_system.
|
||||
/// Weight functions needed for `frame_system`.
|
||||
pub trait WeightInfo {
|
||||
fn remark(b: u32, ) -> Weight;
|
||||
fn remark_with_event(b: u32, ) -> Weight;
|
||||
@@ -61,7 +62,7 @@ pub trait WeightInfo {
|
||||
fn apply_authorized_upgrade() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for frame_system using the Substrate node and recommended hardware.
|
||||
/// Weights for `frame_system` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
@@ -69,84 +70,86 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_004_000 picoseconds.
|
||||
Weight::from_parts(2_119_000, 0)
|
||||
// Minimum execution time: 2_078_000 picoseconds.
|
||||
Weight::from_parts(1_137_744, 0)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_parts(390, 0).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(387, 0).saturating_mul(b.into()))
|
||||
}
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark_with_event(b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_032_000 picoseconds.
|
||||
Weight::from_parts(8_097_000, 0)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_parts(1_455, 0).saturating_mul(b.into()))
|
||||
// Minimum execution time: 5_980_000 picoseconds.
|
||||
Weight::from_parts(2_562_415, 0)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_391, 0).saturating_mul(b.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `System::Digest` (r:1 w:1)
|
||||
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
|
||||
fn set_heap_pages() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `1485`
|
||||
// Minimum execution time: 4_446_000 picoseconds.
|
||||
Weight::from_parts(4_782_000, 1485)
|
||||
// Minimum execution time: 3_834_000 picoseconds.
|
||||
Weight::from_parts(4_109_000, 1485)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: System Digest (r:1 w:1)
|
||||
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: unknown `0x3a636f6465` (r:0 w:1)
|
||||
/// Proof Skipped: unknown `0x3a636f6465` (r:0 w:1)
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Digest` (r:1 w:1)
|
||||
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
fn set_code() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `1485`
|
||||
// Minimum execution time: 84_000_503_000 picoseconds.
|
||||
Weight::from_parts(87_586_619_000, 1485)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
// Measured: `142`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 81_326_496_000 picoseconds.
|
||||
Weight::from_parts(81_880_651_000, 67035)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Skipped::Metadata` (r:0 w:0)
|
||||
/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn set_storage(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_086_000 picoseconds.
|
||||
Weight::from_parts(2_175_000, 0)
|
||||
// Standard Error: 1_056
|
||||
.saturating_add(Weight::from_parts(841_511, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 2_059_000 picoseconds.
|
||||
Weight::from_parts(2_192_000, 0)
|
||||
// Standard Error: 720
|
||||
.saturating_add(Weight::from_parts(742_610, 0).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Skipped::Metadata` (r:0 w:0)
|
||||
/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn kill_storage(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_000_000 picoseconds.
|
||||
Weight::from_parts(2_255_000, 0)
|
||||
// Standard Error: 1_425
|
||||
.saturating_add(Weight::from_parts(662_473, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 2_038_000 picoseconds.
|
||||
Weight::from_parts(2_159_000, 0)
|
||||
// Standard Error: 774
|
||||
.saturating_add(Weight::from_parts(569_424, 0).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Skipped::Metadata` (r:0 w:0)
|
||||
/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `p` is `[0, 1000]`.
|
||||
fn kill_prefix(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `115 + p * (69 ±0)`
|
||||
// Estimated: `128 + p * (70 ±0)`
|
||||
// Minimum execution time: 4_189_000 picoseconds.
|
||||
Weight::from_parts(4_270_000, 128)
|
||||
// Standard Error: 2_296
|
||||
.saturating_add(Weight::from_parts(1_389_650, 0).saturating_mul(p.into()))
|
||||
// Measured: `127 + p * (69 ±0)`
|
||||
// Estimated: `134 + p * (70 ±0)`
|
||||
// Minimum execution time: 3_990_000 picoseconds.
|
||||
Weight::from_parts(4_172_000, 134)
|
||||
// Standard Error: 1_485
|
||||
.saturating_add(Weight::from_parts(1_227_281, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
|
||||
@@ -157,114 +160,116 @@ impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 33_027_000 picoseconds.
|
||||
Weight::from_parts(33_027_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
// Minimum execution time: 8_851_000 picoseconds.
|
||||
Weight::from_parts(9_643_000, 0)
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
|
||||
/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Digest` (r:1 w:1)
|
||||
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
fn apply_authorized_upgrade() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `22`
|
||||
// Estimated: `1518`
|
||||
// Minimum execution time: 118_101_992_000 picoseconds.
|
||||
Weight::from_parts(118_101_992_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 1518))
|
||||
.saturating_add(T::DbWeight::get().reads(2))
|
||||
.saturating_add(T::DbWeight::get().writes(3))
|
||||
// Measured: `164`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 86_295_879_000 picoseconds.
|
||||
Weight::from_parts(87_636_595_000, 67035)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark(b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_004_000 picoseconds.
|
||||
Weight::from_parts(2_119_000, 0)
|
||||
// Minimum execution time: 2_078_000 picoseconds.
|
||||
Weight::from_parts(1_137_744, 0)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_parts(390, 0).saturating_mul(b.into()))
|
||||
.saturating_add(Weight::from_parts(387, 0).saturating_mul(b.into()))
|
||||
}
|
||||
/// The range of component `b` is `[0, 3932160]`.
|
||||
fn remark_with_event(b: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 8_032_000 picoseconds.
|
||||
Weight::from_parts(8_097_000, 0)
|
||||
// Standard Error: 2
|
||||
.saturating_add(Weight::from_parts(1_455, 0).saturating_mul(b.into()))
|
||||
// Minimum execution time: 5_980_000 picoseconds.
|
||||
Weight::from_parts(2_562_415, 0)
|
||||
// Standard Error: 1
|
||||
.saturating_add(Weight::from_parts(1_391, 0).saturating_mul(b.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `System::Digest` (r:1 w:1)
|
||||
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x3a686561707061676573` (r:0 w:1)
|
||||
fn set_heap_pages() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `1485`
|
||||
// Minimum execution time: 4_446_000 picoseconds.
|
||||
Weight::from_parts(4_782_000, 1485)
|
||||
// Minimum execution time: 3_834_000 picoseconds.
|
||||
Weight::from_parts(4_109_000, 1485)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: System Digest (r:1 w:1)
|
||||
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: unknown `0x3a636f6465` (r:0 w:1)
|
||||
/// Proof Skipped: unknown `0x3a636f6465` (r:0 w:1)
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Digest` (r:1 w:1)
|
||||
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
fn set_code() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `1485`
|
||||
// Minimum execution time: 84_000_503_000 picoseconds.
|
||||
Weight::from_parts(87_586_619_000, 1485)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
// Measured: `142`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 81_326_496_000 picoseconds.
|
||||
Weight::from_parts(81_880_651_000, 67035)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Skipped::Metadata` (r:0 w:0)
|
||||
/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn set_storage(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_086_000 picoseconds.
|
||||
Weight::from_parts(2_175_000, 0)
|
||||
// Standard Error: 1_056
|
||||
.saturating_add(Weight::from_parts(841_511, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 2_059_000 picoseconds.
|
||||
Weight::from_parts(2_192_000, 0)
|
||||
// Standard Error: 720
|
||||
.saturating_add(Weight::from_parts(742_610, 0).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Skipped::Metadata` (r:0 w:0)
|
||||
/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `i` is `[0, 1000]`.
|
||||
fn kill_storage(i: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 2_000_000 picoseconds.
|
||||
Weight::from_parts(2_255_000, 0)
|
||||
// Standard Error: 1_425
|
||||
.saturating_add(Weight::from_parts(662_473, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 2_038_000 picoseconds.
|
||||
Weight::from_parts(2_159_000, 0)
|
||||
// Standard Error: 774
|
||||
.saturating_add(Weight::from_parts(569_424, 0).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(i.into())))
|
||||
}
|
||||
/// Storage: Skipped Metadata (r:0 w:0)
|
||||
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: `Skipped::Metadata` (r:0 w:0)
|
||||
/// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `p` is `[0, 1000]`.
|
||||
fn kill_prefix(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `115 + p * (69 ±0)`
|
||||
// Estimated: `128 + p * (70 ±0)`
|
||||
// Minimum execution time: 4_189_000 picoseconds.
|
||||
Weight::from_parts(4_270_000, 128)
|
||||
// Standard Error: 2_296
|
||||
.saturating_add(Weight::from_parts(1_389_650, 0).saturating_mul(p.into()))
|
||||
// Measured: `127 + p * (69 ±0)`
|
||||
// Estimated: `134 + p * (70 ±0)`
|
||||
// Minimum execution time: 3_990_000 picoseconds.
|
||||
Weight::from_parts(4_172_000, 134)
|
||||
// Standard Error: 1_485
|
||||
.saturating_add(Weight::from_parts(1_227_281, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
|
||||
@@ -275,25 +280,25 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 33_027_000 picoseconds.
|
||||
Weight::from_parts(33_027_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 0))
|
||||
.saturating_add(RocksDbWeight::get().writes(1))
|
||||
// Minimum execution time: 8_851_000 picoseconds.
|
||||
Weight::from_parts(9_643_000, 0)
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
|
||||
/// Proof: `System::AuthorizedUpgrade` (`max_values`: Some(1), `max_size`: Some(33), added: 528, mode: `MaxEncodedLen`)
|
||||
/// Storage: `MultiBlockMigrations::Cursor` (r:1 w:0)
|
||||
/// Proof: `MultiBlockMigrations::Cursor` (`max_values`: Some(1), `max_size`: Some(65550), added: 66045, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Digest` (r:1 w:1)
|
||||
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
/// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
|
||||
fn apply_authorized_upgrade() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `22`
|
||||
// Estimated: `1518`
|
||||
// Minimum execution time: 118_101_992_000 picoseconds.
|
||||
Weight::from_parts(118_101_992_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 1518))
|
||||
.saturating_add(RocksDbWeight::get().reads(2))
|
||||
.saturating_add(RocksDbWeight::get().writes(3))
|
||||
// Measured: `164`
|
||||
// Estimated: `67035`
|
||||
// Minimum execution time: 86_295_879_000 picoseconds.
|
||||
Weight::from_parts(87_636_595_000, 67035)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+32
-33
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_timestamp
|
||||
//! Autogenerated weights for `pallet_timestamp`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/timestamp/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/timestamp/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,57 +49,57 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_timestamp.
|
||||
/// Weight functions needed for `pallet_timestamp`.
|
||||
pub trait WeightInfo {
|
||||
fn set() -> Weight;
|
||||
fn on_finalize() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_timestamp using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312`
|
||||
// Measured: `345`
|
||||
// Estimated: `1493`
|
||||
// Minimum execution time: 9_857_000 picoseconds.
|
||||
Weight::from_parts(10_492_000, 1493)
|
||||
// Minimum execution time: 8_356_000 picoseconds.
|
||||
Weight::from_parts(8_684_000, 1493)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn on_finalize() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Measured: `194`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_175_000 picoseconds.
|
||||
Weight::from_parts(4_334_000, 0)
|
||||
// Minimum execution time: 3_886_000 picoseconds.
|
||||
Weight::from_parts(4_118_000, 0)
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `312`
|
||||
// Measured: `345`
|
||||
// Estimated: `1493`
|
||||
// Minimum execution time: 9_857_000 picoseconds.
|
||||
Weight::from_parts(10_492_000, 1493)
|
||||
// Minimum execution time: 8_356_000 picoseconds.
|
||||
Weight::from_parts(8_684_000, 1493)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
fn on_finalize() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Measured: `194`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 4_175_000 picoseconds.
|
||||
Weight::from_parts(4_334_000, 0)
|
||||
// Minimum execution time: 3_886_000 picoseconds.
|
||||
Weight::from_parts(4_118_000, 0)
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+120
-121
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_tips
|
||||
//! Autogenerated weights for `pallet_tips`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/tips/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/tips/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_tips.
|
||||
/// Weight functions needed for `pallet_tips`.
|
||||
pub trait WeightInfo {
|
||||
fn report_awesome(r: u32, ) -> Weight;
|
||||
fn retract_tip() -> Weight;
|
||||
@@ -60,220 +59,220 @@ pub trait WeightInfo {
|
||||
fn slash_tip(t: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_tips using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// Storage: `Tips::Reasons` (r:1 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `r` is `[0, 300]`.
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4`
|
||||
// Estimated: `3469`
|
||||
// Minimum execution time: 29_576_000 picoseconds.
|
||||
Weight::from_parts(30_722_650, 3469)
|
||||
// Standard Error: 192
|
||||
.saturating_add(Weight::from_parts(2_601, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 26_549_000 picoseconds.
|
||||
Weight::from_parts(27_804_619, 3469)
|
||||
// Standard Error: 173
|
||||
.saturating_add(Weight::from_parts(1_718, 0).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)
|
||||
/// 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)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Reasons` (r:0 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn retract_tip() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `221`
|
||||
// Estimated: `3686`
|
||||
// Minimum execution time: 28_522_000 picoseconds.
|
||||
Weight::from_parts(29_323_000, 3686)
|
||||
// Minimum execution time: 25_430_000 picoseconds.
|
||||
Weight::from_parts(26_056_000, 3686)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Reasons` (r:1 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Tips` (r:0 w:1)
|
||||
/// Proof: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `526 + t * (64 ±0)`
|
||||
// Estimated: `3991 + t * (64 ±0)`
|
||||
// Minimum execution time: 19_650_000 picoseconds.
|
||||
Weight::from_parts(19_837_982, 3991)
|
||||
// Standard Error: 151
|
||||
.saturating_add(Weight::from_parts(1_746, 0).saturating_mul(r.into()))
|
||||
// Standard Error: 3_588
|
||||
.saturating_add(Weight::from_parts(102_359, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 17_309_000 picoseconds.
|
||||
Weight::from_parts(17_493_185, 3991)
|
||||
// Standard Error: 126
|
||||
.saturating_add(Weight::from_parts(1_444, 0).saturating_mul(r.into()))
|
||||
// Standard Error: 3_011
|
||||
.saturating_add(Weight::from_parts(88_592, 0).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(t.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `747 + t * (112 ±0)`
|
||||
// Estimated: `4212 + t * (112 ±0)`
|
||||
// Minimum execution time: 15_641_000 picoseconds.
|
||||
Weight::from_parts(15_745_460, 4212)
|
||||
// Standard Error: 5_106
|
||||
.saturating_add(Weight::from_parts(229_475, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 14_148_000 picoseconds.
|
||||
Weight::from_parts(14_434_268, 4212)
|
||||
// Standard Error: 4_666
|
||||
.saturating_add(Weight::from_parts(210_867, 0).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `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: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `786 + t * (112 ±0)`
|
||||
// Estimated: `4242 + t * (112 ±0)`
|
||||
// Minimum execution time: 62_059_000 picoseconds.
|
||||
Weight::from_parts(64_604_554, 4242)
|
||||
// Standard Error: 11_818
|
||||
.saturating_add(Weight::from_parts(116_297, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 56_060_000 picoseconds.
|
||||
Weight::from_parts(57_913_972, 4242)
|
||||
// Standard Error: 11_691
|
||||
.saturating_add(Weight::from_parts(229_579, 0).saturating_mul(t.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Reasons` (r:0 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `269`
|
||||
// Estimated: `3734`
|
||||
// Minimum execution time: 14_133_000 picoseconds.
|
||||
Weight::from_parts(14_957_547, 3734)
|
||||
// Standard Error: 2_765
|
||||
.saturating_add(Weight::from_parts(22_138, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 12_034_000 picoseconds.
|
||||
Weight::from_parts(12_934_534, 3734)
|
||||
// Standard Error: 2_420
|
||||
.saturating_add(Weight::from_parts(4_167, 0).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
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// Storage: `Tips::Reasons` (r:1 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `r` is `[0, 300]`.
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `4`
|
||||
// Estimated: `3469`
|
||||
// Minimum execution time: 29_576_000 picoseconds.
|
||||
Weight::from_parts(30_722_650, 3469)
|
||||
// Standard Error: 192
|
||||
.saturating_add(Weight::from_parts(2_601, 0).saturating_mul(r.into()))
|
||||
// Minimum execution time: 26_549_000 picoseconds.
|
||||
Weight::from_parts(27_804_619, 3469)
|
||||
// Standard Error: 173
|
||||
.saturating_add(Weight::from_parts(1_718, 0).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)
|
||||
/// 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)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Reasons` (r:0 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
fn retract_tip() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `221`
|
||||
// Estimated: `3686`
|
||||
// Minimum execution time: 28_522_000 picoseconds.
|
||||
Weight::from_parts(29_323_000, 3686)
|
||||
// Minimum execution time: 25_430_000 picoseconds.
|
||||
Weight::from_parts(26_056_000, 3686)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Reasons` (r:1 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Tips` (r:0 w:1)
|
||||
/// Proof: `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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `526 + t * (64 ±0)`
|
||||
// Estimated: `3991 + t * (64 ±0)`
|
||||
// Minimum execution time: 19_650_000 picoseconds.
|
||||
Weight::from_parts(19_837_982, 3991)
|
||||
// Standard Error: 151
|
||||
.saturating_add(Weight::from_parts(1_746, 0).saturating_mul(r.into()))
|
||||
// Standard Error: 3_588
|
||||
.saturating_add(Weight::from_parts(102_359, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 17_309_000 picoseconds.
|
||||
Weight::from_parts(17_493_185, 3991)
|
||||
// Standard Error: 126
|
||||
.saturating_add(Weight::from_parts(1_444, 0).saturating_mul(r.into()))
|
||||
// Standard Error: 3_011
|
||||
.saturating_add(Weight::from_parts(88_592, 0).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(Weight::from_parts(0, 64).saturating_mul(t.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `Elections::Members` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `747 + t * (112 ±0)`
|
||||
// Estimated: `4212 + t * (112 ±0)`
|
||||
// Minimum execution time: 15_641_000 picoseconds.
|
||||
Weight::from_parts(15_745_460, 4212)
|
||||
// Standard Error: 5_106
|
||||
.saturating_add(Weight::from_parts(229_475, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 14_148_000 picoseconds.
|
||||
Weight::from_parts(14_434_268, 4212)
|
||||
// Standard Error: 4_666
|
||||
.saturating_add(Weight::from_parts(210_867, 0).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Elections::Members` (r:1 w:0)
|
||||
/// Proof: `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: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `786 + t * (112 ±0)`
|
||||
// Estimated: `4242 + t * (112 ±0)`
|
||||
// Minimum execution time: 62_059_000 picoseconds.
|
||||
Weight::from_parts(64_604_554, 4242)
|
||||
// Standard Error: 11_818
|
||||
.saturating_add(Weight::from_parts(116_297, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 56_060_000 picoseconds.
|
||||
Weight::from_parts(57_913_972, 4242)
|
||||
// Standard Error: 11_691
|
||||
.saturating_add(Weight::from_parts(229_579, 0).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 112).saturating_mul(t.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// Storage: `Tips::Tips` (r:1 w:1)
|
||||
/// Proof: `Tips::Tips` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// Storage: `Tips::Reasons` (r:0 w:1)
|
||||
/// Proof: `Tips::Reasons` (`max_values`: None, `max_size`: None, mode: `Measured`)
|
||||
/// The range of component `t` is `[1, 13]`.
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `269`
|
||||
// Estimated: `3734`
|
||||
// Minimum execution time: 14_133_000 picoseconds.
|
||||
Weight::from_parts(14_957_547, 3734)
|
||||
// Standard Error: 2_765
|
||||
.saturating_add(Weight::from_parts(22_138, 0).saturating_mul(t.into()))
|
||||
// Minimum execution time: 12_034_000 picoseconds.
|
||||
Weight::from_parts(12_934_534, 3734)
|
||||
// Standard Error: 2_420
|
||||
.saturating_add(Weight::from_parts(4_167, 0).saturating_mul(t.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
|
||||
+98
-91
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_transaction_storage
|
||||
//! Autogenerated weights for `pallet_transaction_storage`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/transaction-storage/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/transaction-storage/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,125 +49,133 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_transaction_storage.
|
||||
/// Weight functions needed for `pallet_transaction_storage`.
|
||||
pub trait WeightInfo {
|
||||
fn store(l: u32, ) -> Weight;
|
||||
fn renew() -> Weight;
|
||||
fn check_proof_max() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_transaction_storage using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `176`
|
||||
// Measured: `242`
|
||||
// Estimated: `38351`
|
||||
// Minimum execution time: 34_844_000 picoseconds.
|
||||
Weight::from_parts(35_489_000, 38351)
|
||||
// Standard Error: 11
|
||||
.saturating_add(Weight::from_parts(6_912, 0).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
// Minimum execution time: 62_024_000 picoseconds.
|
||||
Weight::from_parts(63_536_000, 38351)
|
||||
// Standard Error: 13
|
||||
.saturating_add(Weight::from_parts(7_178, 0).saturating_mul(l.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `326`
|
||||
// Measured: `430`
|
||||
// Estimated: `40351`
|
||||
// Minimum execution time: 48_244_000 picoseconds.
|
||||
Weight::from_parts(50_939_000, 40351)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
// Minimum execution time: 81_473_000 picoseconds.
|
||||
Weight::from_parts(84_000_000, 40351)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `37145`
|
||||
// Measured: `37211`
|
||||
// Estimated: `40351`
|
||||
// Minimum execution time: 80_913_000 picoseconds.
|
||||
Weight::from_parts(84_812_000, 40351)
|
||||
// Minimum execution time: 68_167_000 picoseconds.
|
||||
Weight::from_parts(75_532_000, 40351)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `176`
|
||||
// Measured: `242`
|
||||
// Estimated: `38351`
|
||||
// Minimum execution time: 34_844_000 picoseconds.
|
||||
Weight::from_parts(35_489_000, 38351)
|
||||
// Standard Error: 11
|
||||
.saturating_add(Weight::from_parts(6_912, 0).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
// Minimum execution time: 62_024_000 picoseconds.
|
||||
Weight::from_parts(63_536_000, 38351)
|
||||
// Standard Error: 13
|
||||
.saturating_add(Weight::from_parts(7_178, 0).saturating_mul(l.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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: `Balances::Holds` (r:1 w:1)
|
||||
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `326`
|
||||
// Measured: `430`
|
||||
// Estimated: `40351`
|
||||
// Minimum execution time: 48_244_000 picoseconds.
|
||||
Weight::from_parts(50_939_000, 40351)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
// Minimum execution time: 81_473_000 picoseconds.
|
||||
Weight::from_parts(84_000_000, 40351)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `37145`
|
||||
// Measured: `37211`
|
||||
// Estimated: `40351`
|
||||
// Minimum execution time: 80_913_000 picoseconds.
|
||||
Weight::from_parts(84_812_000, 40351)
|
||||
// Minimum execution time: 68_167_000 picoseconds.
|
||||
Weight::from_parts(75_532_000, 40351)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+176
-172
@@ -15,27 +15,31 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_treasury
|
||||
//! Autogenerated weights for `pallet_treasury`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-07-07, STEPS: `20`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
|
||||
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/debug/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=20
|
||||
// --repeat=2
|
||||
// --pallet=pallet-treasury
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_treasury
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/treasury/src/._weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/treasury/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -45,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_treasury.
|
||||
/// Weight functions needed for `pallet_treasury`.
|
||||
pub trait WeightInfo {
|
||||
fn spend_local() -> Weight;
|
||||
fn propose_spend() -> Weight;
|
||||
@@ -59,304 +63,304 @@ pub trait WeightInfo {
|
||||
fn void_spend() -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_treasury using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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_local() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `1887`
|
||||
// Minimum execution time: 179_000_000 picoseconds.
|
||||
Weight::from_parts(190_000_000, 1887)
|
||||
// Minimum execution time: 11_910_000 picoseconds.
|
||||
Weight::from_parts(12_681_000, 1887)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `177`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 349_000_000 picoseconds.
|
||||
Weight::from_parts(398_000_000, 1489)
|
||||
// Minimum execution time: 24_704_000 picoseconds.
|
||||
Weight::from_parts(25_484_000, 1489)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `335`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 367_000_000 picoseconds.
|
||||
Weight::from_parts(388_000_000, 3593)
|
||||
// Minimum execution time: 26_632_000 picoseconds.
|
||||
Weight::from_parts(27_325_000, 3593)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `483 + p * (9 ±0)`
|
||||
// Measured: `504 + p * (8 ±0)`
|
||||
// Estimated: `3573`
|
||||
// Minimum execution time: 111_000_000 picoseconds.
|
||||
Weight::from_parts(108_813_243, 3573)
|
||||
// Standard Error: 147_887
|
||||
.saturating_add(Weight::from_parts(683_216, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 8_436_000 picoseconds.
|
||||
Weight::from_parts(11_268_438, 3573)
|
||||
// Standard Error: 1_039
|
||||
.saturating_add(Weight::from_parts(70_903, 0).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)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Estimated: `1887`
|
||||
// Minimum execution time: 71_000_000 picoseconds.
|
||||
Weight::from_parts(78_000_000, 1887)
|
||||
// Minimum execution time: 6_372_000 picoseconds.
|
||||
Weight::from_parts(6_567_000, 1887)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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:99 w:99)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:198 w:198)
|
||||
/// 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)
|
||||
/// 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:99 w:99)
|
||||
/// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:198 w:198)
|
||||
/// 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, 99]`.
|
||||
fn on_initialize_proposals(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `427 + p * (251 ±0)`
|
||||
// Measured: `451 + p * (251 ±0)`
|
||||
// Estimated: `1887 + p * (5206 ±0)`
|
||||
// Minimum execution time: 614_000_000 picoseconds.
|
||||
Weight::from_parts(498_501_558, 1887)
|
||||
// Standard Error: 1_070_260
|
||||
.saturating_add(Weight::from_parts(599_011_690, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 33_150_000 picoseconds.
|
||||
Weight::from_parts(41_451_020, 1887)
|
||||
// Standard Error: 19_018
|
||||
.saturating_add(Weight::from_parts(34_410_759, 0).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_parts(0, 5206).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:0)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury SpendCount (r:1 w:1)
|
||||
/// Proof: Treasury SpendCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Spends (r:0 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:0)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Treasury::SpendCount` (r:1 w:1)
|
||||
/// Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Treasury::Spends` (r:0 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn spend() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `140`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 214_000_000 picoseconds.
|
||||
Weight::from_parts(216_000_000, 3501)
|
||||
// Minimum execution time: 14_233_000 picoseconds.
|
||||
Weight::from_parts(14_842_000, 3501)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Treasury Spends (r:1 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, 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:2 w:2)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Treasury::Spends` (r:1 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, 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:2 w:2)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
fn payout() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `705`
|
||||
// Measured: `709`
|
||||
// Estimated: `6208`
|
||||
// Minimum execution time: 760_000_000 picoseconds.
|
||||
Weight::from_parts(822_000_000, 6208)
|
||||
// Minimum execution time: 58_857_000 picoseconds.
|
||||
Weight::from_parts(61_291_000, 6208)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: Treasury Spends (r:1 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Treasury::Spends` (r:1 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn check_status() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `194`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 153_000_000 picoseconds.
|
||||
Weight::from_parts(160_000_000, 3534)
|
||||
// Measured: `198`
|
||||
// Estimated: `3538`
|
||||
// Minimum execution time: 12_116_000 picoseconds.
|
||||
Weight::from_parts(12_480_000, 3538)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Treasury Spends (r:1 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Treasury::Spends` (r:1 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn void_spend() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `194`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 147_000_000 picoseconds.
|
||||
Weight::from_parts(181_000_000, 3534)
|
||||
// Measured: `198`
|
||||
// Estimated: `3538`
|
||||
// Minimum execution time: 10_834_000 picoseconds.
|
||||
Weight::from_parts(11_427_000, 3538)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// 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)
|
||||
/// 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_local() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `76`
|
||||
// Estimated: `1887`
|
||||
// Minimum execution time: 179_000_000 picoseconds.
|
||||
Weight::from_parts(190_000_000, 1887)
|
||||
// Minimum execution time: 11_910_000 picoseconds.
|
||||
Weight::from_parts(12_681_000, 1887)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `177`
|
||||
// Estimated: `1489`
|
||||
// Minimum execution time: 349_000_000 picoseconds.
|
||||
Weight::from_parts(398_000_000, 1489)
|
||||
// Minimum execution time: 24_704_000 picoseconds.
|
||||
Weight::from_parts(25_484_000, 1489)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `335`
|
||||
// Estimated: `3593`
|
||||
// Minimum execution time: 367_000_000 picoseconds.
|
||||
Weight::from_parts(388_000_000, 3593)
|
||||
// Minimum execution time: 26_632_000 picoseconds.
|
||||
Weight::from_parts(27_325_000, 3593)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `483 + p * (9 ±0)`
|
||||
// Measured: `504 + p * (8 ±0)`
|
||||
// Estimated: `3573`
|
||||
// Minimum execution time: 111_000_000 picoseconds.
|
||||
Weight::from_parts(108_813_243, 3573)
|
||||
// Standard Error: 147_887
|
||||
.saturating_add(Weight::from_parts(683_216, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 8_436_000 picoseconds.
|
||||
Weight::from_parts(11_268_438, 3573)
|
||||
// Standard Error: 1_039
|
||||
.saturating_add(Weight::from_parts(70_903, 0).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)
|
||||
/// Proof: Treasury Approvals (max_values: Some(1), max_size: Some(402), added: 897, mode: MaxEncodedLen)
|
||||
/// 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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `161`
|
||||
// Estimated: `1887`
|
||||
// Minimum execution time: 71_000_000 picoseconds.
|
||||
Weight::from_parts(78_000_000, 1887)
|
||||
// Minimum execution time: 6_372_000 picoseconds.
|
||||
Weight::from_parts(6_567_000, 1887)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// 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:99 w:99)
|
||||
/// Proof: Treasury Proposals (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:198 w:198)
|
||||
/// 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)
|
||||
/// 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:99 w:99)
|
||||
/// Proof: `Treasury::Proposals` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:198 w:198)
|
||||
/// 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, 99]`.
|
||||
fn on_initialize_proposals(p: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `427 + p * (251 ±0)`
|
||||
// Measured: `451 + p * (251 ±0)`
|
||||
// Estimated: `1887 + p * (5206 ±0)`
|
||||
// Minimum execution time: 614_000_000 picoseconds.
|
||||
Weight::from_parts(498_501_558, 1887)
|
||||
// Standard Error: 1_070_260
|
||||
.saturating_add(Weight::from_parts(599_011_690, 0).saturating_mul(p.into()))
|
||||
// Minimum execution time: 33_150_000 picoseconds.
|
||||
Weight::from_parts(41_451_020, 1887)
|
||||
// Standard Error: 19_018
|
||||
.saturating_add(Weight::from_parts(34_410_759, 0).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_parts(0, 5206).saturating_mul(p.into()))
|
||||
}
|
||||
/// Storage: AssetRate ConversionRateToNative (r:1 w:0)
|
||||
/// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury SpendCount (r:1 w:1)
|
||||
/// Proof: Treasury SpendCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Treasury Spends (r:0 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `AssetRate::ConversionRateToNative` (r:1 w:0)
|
||||
/// Proof: `AssetRate::ConversionRateToNative` (`max_values`: None, `max_size`: Some(36), added: 2511, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Treasury::SpendCount` (r:1 w:1)
|
||||
/// Proof: `Treasury::SpendCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Treasury::Spends` (r:0 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn spend() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `140`
|
||||
// Estimated: `3501`
|
||||
// Minimum execution time: 214_000_000 picoseconds.
|
||||
Weight::from_parts(216_000_000, 3501)
|
||||
// Minimum execution time: 14_233_000 picoseconds.
|
||||
Weight::from_parts(14_842_000, 3501)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: Treasury Spends (r:1 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, 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:2 w:2)
|
||||
/// Proof: Assets Account (max_values: None, max_size: Some(134), added: 2609, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: `Treasury::Spends` (r:1 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, 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:2 w:2)
|
||||
/// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
fn payout() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `705`
|
||||
// Measured: `709`
|
||||
// Estimated: `6208`
|
||||
// Minimum execution time: 760_000_000 picoseconds.
|
||||
Weight::from_parts(822_000_000, 6208)
|
||||
// Minimum execution time: 58_857_000 picoseconds.
|
||||
Weight::from_parts(61_291_000, 6208)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: Treasury Spends (r:1 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Treasury::Spends` (r:1 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn check_status() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `194`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 153_000_000 picoseconds.
|
||||
Weight::from_parts(160_000_000, 3534)
|
||||
// Measured: `198`
|
||||
// Estimated: `3538`
|
||||
// Minimum execution time: 12_116_000 picoseconds.
|
||||
Weight::from_parts(12_480_000, 3538)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
/// Storage: Treasury Spends (r:1 w:1)
|
||||
/// Proof: Treasury Spends (max_values: None, max_size: Some(69), added: 2544, mode: MaxEncodedLen)
|
||||
/// Storage: `Treasury::Spends` (r:1 w:1)
|
||||
/// Proof: `Treasury::Spends` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
|
||||
fn void_spend() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `194`
|
||||
// Estimated: `3534`
|
||||
// Minimum execution time: 147_000_000 picoseconds.
|
||||
Weight::from_parts(181_000_000, 3534)
|
||||
// Measured: `198`
|
||||
// Estimated: `3538`
|
||||
// Minimum execution time: 10_834_000 picoseconds.
|
||||
Weight::from_parts(11_427_000, 3538)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+20
-18
@@ -17,27 +17,29 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_tx_pause`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-08-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-aahe6cbd-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_tx_pause
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_tx_pause
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/tx-pause/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/tx-pause/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -62,8 +64,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 15_096_000 picoseconds.
|
||||
Weight::from_parts(15_437_000, 3997)
|
||||
// Minimum execution time: 12_218_000 picoseconds.
|
||||
Weight::from_parts(12_542_000, 3997)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -73,8 +75,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `565`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 21_546_000 picoseconds.
|
||||
Weight::from_parts(22_178_000, 3997)
|
||||
// Minimum execution time: 18_314_000 picoseconds.
|
||||
Weight::from_parts(18_990_000, 3997)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -88,8 +90,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `3`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 15_096_000 picoseconds.
|
||||
Weight::from_parts(15_437_000, 3997)
|
||||
// Minimum execution time: 12_218_000 picoseconds.
|
||||
Weight::from_parts(12_542_000, 3997)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -99,8 +101,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `565`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 21_546_000 picoseconds.
|
||||
Weight::from_parts(22_178_000, 3997)
|
||||
// Minimum execution time: 18_314_000 picoseconds.
|
||||
Weight::from_parts(18_990_000, 3997)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
|
||||
Generated
+191
-185
@@ -17,27 +17,29 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_uniques`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-07-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-gghbxkbs-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_uniques
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_uniques
|
||||
// --chain=dev
|
||||
// --header=./HEADER-APACHE2
|
||||
// --output=./frame/uniques/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/uniques/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -88,8 +90,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `249`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 31_393_000 picoseconds.
|
||||
Weight::from_parts(32_933_000, 3643)
|
||||
// Minimum execution time: 27_074_000 picoseconds.
|
||||
Weight::from_parts(28_213_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -101,8 +103,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 14_827_000 picoseconds.
|
||||
Weight::from_parts(15_273_000, 3643)
|
||||
// Minimum execution time: 12_034_000 picoseconds.
|
||||
Weight::from_parts(12_669_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -111,13 +113,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `Uniques::Asset` (r:1001 w:1000)
|
||||
/// Proof: `Uniques::Asset` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1000 w:1000)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Attribute` (r:1000 w:1000)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(364), added: 2839, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(172), added: 2647, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassAccount` (r:0 w:1)
|
||||
/// Proof: `Uniques::ClassAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassMetadataOf` (r:0 w:1)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(167), added: 2642, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Account` (r:0 w:1000)
|
||||
/// Proof: `Uniques::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::CollectionMaxSupply` (r:0 w:1)
|
||||
@@ -128,15 +130,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `418 + a * (107 ±0) + m * (56 ±0) + n * (76 ±0)`
|
||||
// Estimated: `3643 + a * (2839 ±0) + m * (2583 ±0) + n * (2597 ±0)`
|
||||
// Minimum execution time: 3_281_673_000 picoseconds.
|
||||
Weight::from_parts(3_443_387_000, 3643)
|
||||
// Standard Error: 41_937
|
||||
.saturating_add(Weight::from_parts(7_914_842, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 41_937
|
||||
.saturating_add(Weight::from_parts(519_960, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 41_937
|
||||
.saturating_add(Weight::from_parts(462_690, 0).saturating_mul(a.into()))
|
||||
// Estimated: `3643 + a * (2647 ±0) + m * (2662 ±0) + n * (2597 ±0)`
|
||||
// Minimum execution time: 2_928_174_000 picoseconds.
|
||||
Weight::from_parts(2_970_367_000, 3643)
|
||||
// Standard Error: 30_368
|
||||
.saturating_add(Weight::from_parts(7_336_699, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 30_368
|
||||
.saturating_add(Weight::from_parts(401_816, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 30_368
|
||||
.saturating_add(Weight::from_parts(346_952, 0).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
@@ -145,8 +147,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(n.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(a.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2839).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2583).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2647).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2662).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2597).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: `Uniques::Asset` (r:1 w:1)
|
||||
@@ -161,8 +163,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 38_122_000 picoseconds.
|
||||
Weight::from_parts(38_924_000, 3643)
|
||||
// Minimum execution time: 33_733_000 picoseconds.
|
||||
Weight::from_parts(35_366_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -178,8 +180,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 38_835_000 picoseconds.
|
||||
Weight::from_parts(39_754_000, 3643)
|
||||
// Minimum execution time: 35_064_000 picoseconds.
|
||||
Weight::from_parts(35_747_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -195,8 +197,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 27_032_000 picoseconds.
|
||||
Weight::from_parts(27_793_000, 3643)
|
||||
// Minimum execution time: 24_955_000 picoseconds.
|
||||
Weight::from_parts(25_661_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -209,10 +211,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `805 + i * (76 ±0)`
|
||||
// Estimated: `3643 + i * (2597 ±0)`
|
||||
// Minimum execution time: 14_737_000 picoseconds.
|
||||
Weight::from_parts(15_070_000, 3643)
|
||||
// Standard Error: 22_500
|
||||
.saturating_add(Weight::from_parts(18_855_468, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 12_119_000 picoseconds.
|
||||
Weight::from_parts(12_490_000, 3643)
|
||||
// Standard Error: 14_697
|
||||
.saturating_add(Weight::from_parts(15_720_495, 0).saturating_mul(i.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(i.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
@@ -227,8 +229,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 18_664_000 picoseconds.
|
||||
Weight::from_parts(19_455_000, 3643)
|
||||
// Minimum execution time: 16_183_000 picoseconds.
|
||||
Weight::from_parts(16_716_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -240,8 +242,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 18_247_000 picoseconds.
|
||||
Weight::from_parts(18_763_000, 3643)
|
||||
// Minimum execution time: 16_119_000 picoseconds.
|
||||
Weight::from_parts(16_725_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -251,8 +253,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 13_219_000 picoseconds.
|
||||
Weight::from_parts(13_923_000, 3643)
|
||||
// Minimum execution time: 10_889_000 picoseconds.
|
||||
Weight::from_parts(11_480_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -262,8 +264,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 13_376_000 picoseconds.
|
||||
Weight::from_parts(13_904_000, 3643)
|
||||
// Minimum execution time: 10_903_000 picoseconds.
|
||||
Weight::from_parts(11_241_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -271,16 +273,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Proof: `Uniques::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassAccount` (r:0 w:2)
|
||||
/// Proof: `Uniques::ClassAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
fn transfer_ownership() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `423`
|
||||
// Measured: `597`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 22_353_000 picoseconds.
|
||||
Weight::from_parts(23_222_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
// Minimum execution time: 24_942_000 picoseconds.
|
||||
Weight::from_parts(25_715_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
@@ -288,8 +292,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 14_072_000 picoseconds.
|
||||
Weight::from_parts(14_619_000, 3643)
|
||||
// Minimum execution time: 11_488_000 picoseconds.
|
||||
Weight::from_parts(11_752_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -301,92 +305,92 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 17_081_000 picoseconds.
|
||||
Weight::from_parts(17_698_000, 3643)
|
||||
// Minimum execution time: 14_721_000 picoseconds.
|
||||
Weight::from_parts(15_187_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:0)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Attribute` (r:1 w:1)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(364), added: 2839, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(172), added: 2647, mode: `MaxEncodedLen`)
|
||||
fn set_attribute() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `547`
|
||||
// Estimated: `3829`
|
||||
// Minimum execution time: 41_501_000 picoseconds.
|
||||
Weight::from_parts(43_101_000, 3829)
|
||||
// Measured: `626`
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 36_665_000 picoseconds.
|
||||
Weight::from_parts(37_587_000, 3652)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:0)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Attribute` (r:1 w:1)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(364), added: 2839, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(172), added: 2647, mode: `MaxEncodedLen`)
|
||||
fn clear_attribute() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `936`
|
||||
// Estimated: `3829`
|
||||
// Minimum execution time: 39_722_000 picoseconds.
|
||||
Weight::from_parts(40_390_000, 3829)
|
||||
// Measured: `823`
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 35_066_000 picoseconds.
|
||||
Weight::from_parts(36_380_000, 3652)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
fn set_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `415`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 30_726_000 picoseconds.
|
||||
Weight::from_parts(31_557_000, 3643)
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 27_060_000 picoseconds.
|
||||
Weight::from_parts(27_813_000, 3652)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
fn clear_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `547`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 31_303_000 picoseconds.
|
||||
Weight::from_parts(32_389_000, 3643)
|
||||
// Measured: `626`
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 27_776_000 picoseconds.
|
||||
Weight::from_parts(28_582_000, 3652)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(167), added: 2642, mode: `MaxEncodedLen`)
|
||||
fn set_collection_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 32_155_000 picoseconds.
|
||||
Weight::from_parts(32_885_000, 3643)
|
||||
// Minimum execution time: 27_636_000 picoseconds.
|
||||
Weight::from_parts(29_118_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:0)
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(167), added: 2642, mode: `MaxEncodedLen`)
|
||||
fn clear_collection_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `461`
|
||||
// Measured: `540`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 30_044_000 picoseconds.
|
||||
Weight::from_parts(31_405_000, 3643)
|
||||
// Minimum execution time: 28_246_000 picoseconds.
|
||||
Weight::from_parts(29_059_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:0)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
@@ -396,8 +400,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 18_904_000 picoseconds.
|
||||
Weight::from_parts(19_687_000, 3643)
|
||||
// Minimum execution time: 16_793_000 picoseconds.
|
||||
Weight::from_parts(17_396_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -409,8 +413,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `528`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 19_144_000 picoseconds.
|
||||
Weight::from_parts(19_706_000, 3643)
|
||||
// Minimum execution time: 16_726_000 picoseconds.
|
||||
Weight::from_parts(17_357_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -420,8 +424,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `3517`
|
||||
// Minimum execution time: 15_339_000 picoseconds.
|
||||
Weight::from_parts(15_918_000, 3517)
|
||||
// Minimum execution time: 12_686_000 picoseconds.
|
||||
Weight::from_parts(13_182_000, 3517)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -433,8 +437,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 15_387_000 picoseconds.
|
||||
Weight::from_parts(15_726_000, 3643)
|
||||
// Minimum execution time: 13_508_000 picoseconds.
|
||||
Weight::from_parts(13_906_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -446,8 +450,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `326`
|
||||
// Estimated: `3587`
|
||||
// Minimum execution time: 15_873_000 picoseconds.
|
||||
Weight::from_parts(16_860_000, 3587)
|
||||
// Minimum execution time: 13_742_000 picoseconds.
|
||||
Weight::from_parts(14_200_000, 3587)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -463,8 +467,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `607`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 37_245_000 picoseconds.
|
||||
Weight::from_parts(38_383_000, 3643)
|
||||
// Minimum execution time: 32_931_000 picoseconds.
|
||||
Weight::from_parts(34_023_000, 3643)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -480,8 +484,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `249`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 31_393_000 picoseconds.
|
||||
Weight::from_parts(32_933_000, 3643)
|
||||
// Minimum execution time: 27_074_000 picoseconds.
|
||||
Weight::from_parts(28_213_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -493,8 +497,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 14_827_000 picoseconds.
|
||||
Weight::from_parts(15_273_000, 3643)
|
||||
// Minimum execution time: 12_034_000 picoseconds.
|
||||
Weight::from_parts(12_669_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -503,13 +507,13 @@ impl WeightInfo for () {
|
||||
/// Storage: `Uniques::Asset` (r:1001 w:1000)
|
||||
/// Proof: `Uniques::Asset` (`max_values`: None, `max_size`: Some(122), added: 2597, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1000 w:1000)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Attribute` (r:1000 w:1000)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(364), added: 2839, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(172), added: 2647, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassAccount` (r:0 w:1)
|
||||
/// Proof: `Uniques::ClassAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassMetadataOf` (r:0 w:1)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(167), added: 2642, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Account` (r:0 w:1000)
|
||||
/// Proof: `Uniques::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::CollectionMaxSupply` (r:0 w:1)
|
||||
@@ -520,15 +524,15 @@ impl WeightInfo for () {
|
||||
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `418 + a * (107 ±0) + m * (56 ±0) + n * (76 ±0)`
|
||||
// Estimated: `3643 + a * (2839 ±0) + m * (2583 ±0) + n * (2597 ±0)`
|
||||
// Minimum execution time: 3_281_673_000 picoseconds.
|
||||
Weight::from_parts(3_443_387_000, 3643)
|
||||
// Standard Error: 41_937
|
||||
.saturating_add(Weight::from_parts(7_914_842, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 41_937
|
||||
.saturating_add(Weight::from_parts(519_960, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 41_937
|
||||
.saturating_add(Weight::from_parts(462_690, 0).saturating_mul(a.into()))
|
||||
// Estimated: `3643 + a * (2647 ±0) + m * (2662 ±0) + n * (2597 ±0)`
|
||||
// Minimum execution time: 2_928_174_000 picoseconds.
|
||||
Weight::from_parts(2_970_367_000, 3643)
|
||||
// Standard Error: 30_368
|
||||
.saturating_add(Weight::from_parts(7_336_699, 0).saturating_mul(n.into()))
|
||||
// Standard Error: 30_368
|
||||
.saturating_add(Weight::from_parts(401_816, 0).saturating_mul(m.into()))
|
||||
// Standard Error: 30_368
|
||||
.saturating_add(Weight::from_parts(346_952, 0).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
||||
@@ -537,8 +541,8 @@ impl WeightInfo for () {
|
||||
.saturating_add(RocksDbWeight::get().writes((2_u64).saturating_mul(n.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(m.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(a.into())))
|
||||
.saturating_add(Weight::from_parts(0, 2839).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2583).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2647).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2662).saturating_mul(m.into()))
|
||||
.saturating_add(Weight::from_parts(0, 2597).saturating_mul(n.into()))
|
||||
}
|
||||
/// Storage: `Uniques::Asset` (r:1 w:1)
|
||||
@@ -553,8 +557,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 38_122_000 picoseconds.
|
||||
Weight::from_parts(38_924_000, 3643)
|
||||
// Minimum execution time: 33_733_000 picoseconds.
|
||||
Weight::from_parts(35_366_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -570,8 +574,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 38_835_000 picoseconds.
|
||||
Weight::from_parts(39_754_000, 3643)
|
||||
// Minimum execution time: 35_064_000 picoseconds.
|
||||
Weight::from_parts(35_747_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -587,8 +591,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 27_032_000 picoseconds.
|
||||
Weight::from_parts(27_793_000, 3643)
|
||||
// Minimum execution time: 24_955_000 picoseconds.
|
||||
Weight::from_parts(25_661_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -601,10 +605,10 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `805 + i * (76 ±0)`
|
||||
// Estimated: `3643 + i * (2597 ±0)`
|
||||
// Minimum execution time: 14_737_000 picoseconds.
|
||||
Weight::from_parts(15_070_000, 3643)
|
||||
// Standard Error: 22_500
|
||||
.saturating_add(Weight::from_parts(18_855_468, 0).saturating_mul(i.into()))
|
||||
// Minimum execution time: 12_119_000 picoseconds.
|
||||
Weight::from_parts(12_490_000, 3643)
|
||||
// Standard Error: 14_697
|
||||
.saturating_add(Weight::from_parts(15_720_495, 0).saturating_mul(i.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(i.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
@@ -619,8 +623,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 18_664_000 picoseconds.
|
||||
Weight::from_parts(19_455_000, 3643)
|
||||
// Minimum execution time: 16_183_000 picoseconds.
|
||||
Weight::from_parts(16_716_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -632,8 +636,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 18_247_000 picoseconds.
|
||||
Weight::from_parts(18_763_000, 3643)
|
||||
// Minimum execution time: 16_119_000 picoseconds.
|
||||
Weight::from_parts(16_725_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -643,8 +647,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 13_219_000 picoseconds.
|
||||
Weight::from_parts(13_923_000, 3643)
|
||||
// Minimum execution time: 10_889_000 picoseconds.
|
||||
Weight::from_parts(11_480_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -654,8 +658,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 13_376_000 picoseconds.
|
||||
Weight::from_parts(13_904_000, 3643)
|
||||
// Minimum execution time: 10_903_000 picoseconds.
|
||||
Weight::from_parts(11_241_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -663,16 +667,18 @@ impl WeightInfo for () {
|
||||
/// Proof: `Uniques::OwnershipAcceptance` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `System::Account` (r:1 w:1)
|
||||
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassAccount` (r:0 w:2)
|
||||
/// Proof: `Uniques::ClassAccount` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
||||
fn transfer_ownership() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `423`
|
||||
// Measured: `597`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 22_353_000 picoseconds.
|
||||
Weight::from_parts(23_222_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
// Minimum execution time: 24_942_000 picoseconds.
|
||||
Weight::from_parts(25_715_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
@@ -680,8 +686,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 14_072_000 picoseconds.
|
||||
Weight::from_parts(14_619_000, 3643)
|
||||
// Minimum execution time: 11_488_000 picoseconds.
|
||||
Weight::from_parts(11_752_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -693,92 +699,92 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 17_081_000 picoseconds.
|
||||
Weight::from_parts(17_698_000, 3643)
|
||||
// Minimum execution time: 14_721_000 picoseconds.
|
||||
Weight::from_parts(15_187_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:0)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Attribute` (r:1 w:1)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(364), added: 2839, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(172), added: 2647, mode: `MaxEncodedLen`)
|
||||
fn set_attribute() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `547`
|
||||
// Estimated: `3829`
|
||||
// Minimum execution time: 41_501_000 picoseconds.
|
||||
Weight::from_parts(43_101_000, 3829)
|
||||
// Measured: `626`
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 36_665_000 picoseconds.
|
||||
Weight::from_parts(37_587_000, 3652)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:0)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::Attribute` (r:1 w:1)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(364), added: 2839, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::Attribute` (`max_values`: None, `max_size`: Some(172), added: 2647, mode: `MaxEncodedLen`)
|
||||
fn clear_attribute() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `936`
|
||||
// Estimated: `3829`
|
||||
// Minimum execution time: 39_722_000 picoseconds.
|
||||
Weight::from_parts(40_390_000, 3829)
|
||||
// Measured: `823`
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 35_066_000 picoseconds.
|
||||
Weight::from_parts(36_380_000, 3652)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
fn set_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `415`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 30_726_000 picoseconds.
|
||||
Weight::from_parts(31_557_000, 3643)
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 27_060_000 picoseconds.
|
||||
Weight::from_parts(27_813_000, 3652)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::InstanceMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::InstanceMetadataOf` (`max_values`: None, `max_size`: Some(187), added: 2662, mode: `MaxEncodedLen`)
|
||||
fn clear_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `547`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 31_303_000 picoseconds.
|
||||
Weight::from_parts(32_389_000, 3643)
|
||||
// Measured: `626`
|
||||
// Estimated: `3652`
|
||||
// Minimum execution time: 27_776_000 picoseconds.
|
||||
Weight::from_parts(28_582_000, 3652)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(167), added: 2642, mode: `MaxEncodedLen`)
|
||||
fn set_collection_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 32_155_000 picoseconds.
|
||||
Weight::from_parts(32_885_000, 3643)
|
||||
// Minimum execution time: 27_636_000 picoseconds.
|
||||
Weight::from_parts(29_118_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:0)
|
||||
/// Storage: `Uniques::Class` (r:1 w:1)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Uniques::ClassMetadataOf` (r:1 w:1)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
|
||||
/// Proof: `Uniques::ClassMetadataOf` (`max_values`: None, `max_size`: Some(167), added: 2642, mode: `MaxEncodedLen`)
|
||||
fn clear_collection_metadata() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `461`
|
||||
// Measured: `540`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 30_044_000 picoseconds.
|
||||
Weight::from_parts(31_405_000, 3643)
|
||||
// Minimum execution time: 28_246_000 picoseconds.
|
||||
Weight::from_parts(29_059_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// Storage: `Uniques::Class` (r:1 w:0)
|
||||
/// Proof: `Uniques::Class` (`max_values`: None, `max_size`: Some(178), added: 2653, mode: `MaxEncodedLen`)
|
||||
@@ -788,8 +794,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `495`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 18_904_000 picoseconds.
|
||||
Weight::from_parts(19_687_000, 3643)
|
||||
// Minimum execution time: 16_793_000 picoseconds.
|
||||
Weight::from_parts(17_396_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -801,8 +807,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `528`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 19_144_000 picoseconds.
|
||||
Weight::from_parts(19_706_000, 3643)
|
||||
// Minimum execution time: 16_726_000 picoseconds.
|
||||
Weight::from_parts(17_357_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -812,8 +818,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `109`
|
||||
// Estimated: `3517`
|
||||
// Minimum execution time: 15_339_000 picoseconds.
|
||||
Weight::from_parts(15_918_000, 3517)
|
||||
// Minimum execution time: 12_686_000 picoseconds.
|
||||
Weight::from_parts(13_182_000, 3517)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -825,8 +831,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `349`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 15_387_000 picoseconds.
|
||||
Weight::from_parts(15_726_000, 3643)
|
||||
// Minimum execution time: 13_508_000 picoseconds.
|
||||
Weight::from_parts(13_906_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -838,8 +844,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `326`
|
||||
// Estimated: `3587`
|
||||
// Minimum execution time: 15_873_000 picoseconds.
|
||||
Weight::from_parts(16_860_000, 3587)
|
||||
// Minimum execution time: 13_742_000 picoseconds.
|
||||
Weight::from_parts(14_200_000, 3587)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
@@ -855,8 +861,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `607`
|
||||
// Estimated: `3643`
|
||||
// Minimum execution time: 37_245_000 picoseconds.
|
||||
Weight::from_parts(38_383_000, 3643)
|
||||
// Minimum execution time: 32_931_000 picoseconds.
|
||||
Weight::from_parts(34_023_000, 3643)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
|
||||
Generated
+100
-61
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_utility
|
||||
//! Autogenerated weights for `pallet_utility`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/utility/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/utility/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_utility.
|
||||
/// Weight functions needed for `pallet_utility`.
|
||||
pub trait WeightInfo {
|
||||
fn batch(c: u32, ) -> Weight;
|
||||
fn as_derivative() -> Weight;
|
||||
@@ -59,99 +58,139 @@ pub trait WeightInfo {
|
||||
fn force_batch(c: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_utility using the Substrate node and recommended hardware.
|
||||
/// Weights for `pallet_utility` using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_763_000 picoseconds.
|
||||
Weight::from_parts(16_943_157, 0)
|
||||
// Standard Error: 1_904
|
||||
.saturating_add(Weight::from_parts(4_653_855, 0).saturating_mul(c.into()))
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 5_312_000 picoseconds.
|
||||
Weight::from_parts(2_694_370, 3997)
|
||||
// Standard Error: 5_055
|
||||
.saturating_add(Weight::from_parts(5_005_941, 0).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
fn as_derivative() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_149_000 picoseconds.
|
||||
Weight::from_parts(5_268_000, 0)
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 9_263_000 picoseconds.
|
||||
Weight::from_parts(9_639_000, 3997)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_976_000 picoseconds.
|
||||
Weight::from_parts(16_448_433, 0)
|
||||
// Standard Error: 1_834
|
||||
.saturating_add(Weight::from_parts(4_796_983, 0).saturating_mul(c.into()))
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 5_120_000 picoseconds.
|
||||
Weight::from_parts(12_948_874, 3997)
|
||||
// Standard Error: 4_643
|
||||
.saturating_add(Weight::from_parts(5_162_821, 0).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_102_000 picoseconds.
|
||||
Weight::from_parts(9_353_000, 0)
|
||||
// Minimum execution time: 7_126_000 picoseconds.
|
||||
Weight::from_parts(7_452_000, 0)
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn force_batch(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_840_000 picoseconds.
|
||||
Weight::from_parts(17_748_474, 0)
|
||||
// Standard Error: 2_059
|
||||
.saturating_add(Weight::from_parts(4_630_079, 0).saturating_mul(c.into()))
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 5_254_000 picoseconds.
|
||||
Weight::from_parts(4_879_712, 3997)
|
||||
// Standard Error: 4_988
|
||||
.saturating_add(Weight::from_parts(4_955_816, 0).saturating_mul(c.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_763_000 picoseconds.
|
||||
Weight::from_parts(16_943_157, 0)
|
||||
// Standard Error: 1_904
|
||||
.saturating_add(Weight::from_parts(4_653_855, 0).saturating_mul(c.into()))
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 5_312_000 picoseconds.
|
||||
Weight::from_parts(2_694_370, 3997)
|
||||
// Standard Error: 5_055
|
||||
.saturating_add(Weight::from_parts(5_005_941, 0).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
fn as_derivative() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 5_149_000 picoseconds.
|
||||
Weight::from_parts(5_268_000, 0)
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 9_263_000 picoseconds.
|
||||
Weight::from_parts(9_639_000, 3997)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_976_000 picoseconds.
|
||||
Weight::from_parts(16_448_433, 0)
|
||||
// Standard Error: 1_834
|
||||
.saturating_add(Weight::from_parts(4_796_983, 0).saturating_mul(c.into()))
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 5_120_000 picoseconds.
|
||||
Weight::from_parts(12_948_874, 3997)
|
||||
// Standard Error: 4_643
|
||||
.saturating_add(Weight::from_parts(5_162_821, 0).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 9_102_000 picoseconds.
|
||||
Weight::from_parts(9_353_000, 0)
|
||||
// Minimum execution time: 7_126_000 picoseconds.
|
||||
Weight::from_parts(7_452_000, 0)
|
||||
}
|
||||
/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
|
||||
/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
||||
/// Storage: `TxPause::PausedCalls` (r:1 w:0)
|
||||
/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
|
||||
/// The range of component `c` is `[0, 1000]`.
|
||||
fn force_batch(c: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 6_840_000 picoseconds.
|
||||
Weight::from_parts(17_748_474, 0)
|
||||
// Standard Error: 2_059
|
||||
.saturating_add(Weight::from_parts(4_630_079, 0).saturating_mul(c.into()))
|
||||
// Measured: `145`
|
||||
// Estimated: `3997`
|
||||
// Minimum execution time: 5_254_000 picoseconds.
|
||||
Weight::from_parts(4_879_712, 3997)
|
||||
// Standard Error: 4_988
|
||||
.saturating_add(Weight::from_parts(4_955_816, 0).saturating_mul(c.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Generated
+118
-116
@@ -17,26 +17,28 @@
|
||||
|
||||
//! Autogenerated weights for `pallet_vesting`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-10-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-vmdtonbz-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// target/production/substrate-node
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=pallet_vesting
|
||||
// --no-storage-info
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||
// --pallet=pallet_vesting
|
||||
// --chain=dev
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --output=./substrate/frame/vesting/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
@@ -75,12 +77,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 32_846_000 picoseconds.
|
||||
Weight::from_parts(30_974_459, 4764)
|
||||
// Standard Error: 1_755
|
||||
.saturating_add(Weight::from_parts(73_138, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_123
|
||||
.saturating_add(Weight::from_parts(82_417, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 32_202_000 picoseconds.
|
||||
Weight::from_parts(31_586_520, 4764)
|
||||
// Standard Error: 1_513
|
||||
.saturating_add(Weight::from_parts(67_257, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_693
|
||||
.saturating_add(Weight::from_parts(69_725, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -96,12 +98,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 34_360_000 picoseconds.
|
||||
Weight::from_parts(34_964_080, 4764)
|
||||
// Standard Error: 1_996
|
||||
.saturating_add(Weight::from_parts(48_024, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_552
|
||||
.saturating_add(Weight::from_parts(34_411, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_847_000 picoseconds.
|
||||
Weight::from_parts(34_690_456, 4764)
|
||||
// Standard Error: 1_681
|
||||
.saturating_add(Weight::from_parts(51_103, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_991
|
||||
.saturating_add(Weight::from_parts(55_094, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -119,12 +121,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 33_859_000 picoseconds.
|
||||
Weight::from_parts(32_950_681, 4764)
|
||||
// Standard Error: 1_745
|
||||
.saturating_add(Weight::from_parts(69_323, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_105
|
||||
.saturating_add(Weight::from_parts(86_370, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_027_000 picoseconds.
|
||||
Weight::from_parts(33_353_168, 4764)
|
||||
// Standard Error: 1_477
|
||||
.saturating_add(Weight::from_parts(72_605, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_629
|
||||
.saturating_add(Weight::from_parts(64_115, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -142,12 +144,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 36_239_000 picoseconds.
|
||||
Weight::from_parts(36_459_756, 4764)
|
||||
// Standard Error: 2_051
|
||||
.saturating_add(Weight::from_parts(56_670, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_650
|
||||
.saturating_add(Weight::from_parts(49_663, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 36_816_000 picoseconds.
|
||||
Weight::from_parts(36_467_447, 4764)
|
||||
// Standard Error: 1_689
|
||||
.saturating_add(Weight::from_parts(51_855, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_006
|
||||
.saturating_add(Weight::from_parts(58_233, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -165,12 +167,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 70_330_000 picoseconds.
|
||||
Weight::from_parts(71_196_328, 4764)
|
||||
// Standard Error: 2_923
|
||||
.saturating_add(Weight::from_parts(67_238, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_201
|
||||
.saturating_add(Weight::from_parts(89_102, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 70_906_000 picoseconds.
|
||||
Weight::from_parts(72_663_428, 4764)
|
||||
// Standard Error: 2_877
|
||||
.saturating_add(Weight::from_parts(81_242, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_118
|
||||
.saturating_add(Weight::from_parts(103_344, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -188,12 +190,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `658 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 70_235_000 picoseconds.
|
||||
Weight::from_parts(71_960_020, 6196)
|
||||
// Standard Error: 2_493
|
||||
.saturating_add(Weight::from_parts(64_835, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_436
|
||||
.saturating_add(Weight::from_parts(102_159, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 72_730_000 picoseconds.
|
||||
Weight::from_parts(75_050_411, 6196)
|
||||
// Standard Error: 2_748
|
||||
.saturating_add(Weight::from_parts(73_218, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_889
|
||||
.saturating_add(Weight::from_parts(112_868, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -211,12 +213,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 34_352_000 picoseconds.
|
||||
Weight::from_parts(33_697_027, 4764)
|
||||
// Standard Error: 2_008
|
||||
.saturating_add(Weight::from_parts(79_270, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_710
|
||||
.saturating_add(Weight::from_parts(60_691, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_698_000 picoseconds.
|
||||
Weight::from_parts(34_504_324, 4764)
|
||||
// Standard Error: 1_703
|
||||
.saturating_add(Weight::from_parts(56_321, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_145
|
||||
.saturating_add(Weight::from_parts(55_503, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -234,12 +236,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 37_467_000 picoseconds.
|
||||
Weight::from_parts(36_866_847, 4764)
|
||||
// Standard Error: 1_692
|
||||
.saturating_add(Weight::from_parts(57_882, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_124
|
||||
.saturating_add(Weight::from_parts(80_266, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 36_951_000 picoseconds.
|
||||
Weight::from_parts(37_020_649, 4764)
|
||||
// Standard Error: 1_791
|
||||
.saturating_add(Weight::from_parts(65_437, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_308
|
||||
.saturating_add(Weight::from_parts(54_146, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -257,12 +259,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_497_000 picoseconds.
|
||||
Weight::from_parts(38_763_834, 4764)
|
||||
// Standard Error: 2_030
|
||||
.saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_750
|
||||
.saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 38_849_000 picoseconds.
|
||||
Weight::from_parts(38_488_577, 4764)
|
||||
// Standard Error: 1_911
|
||||
.saturating_add(Weight::from_parts(72_338, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_529
|
||||
.saturating_add(Weight::from_parts(62_206, 0).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -282,12 +284,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 32_846_000 picoseconds.
|
||||
Weight::from_parts(30_974_459, 4764)
|
||||
// Standard Error: 1_755
|
||||
.saturating_add(Weight::from_parts(73_138, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_123
|
||||
.saturating_add(Weight::from_parts(82_417, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 32_202_000 picoseconds.
|
||||
Weight::from_parts(31_586_520, 4764)
|
||||
// Standard Error: 1_513
|
||||
.saturating_add(Weight::from_parts(67_257, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_693
|
||||
.saturating_add(Weight::from_parts(69_725, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -303,12 +305,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `381 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 34_360_000 picoseconds.
|
||||
Weight::from_parts(34_964_080, 4764)
|
||||
// Standard Error: 1_996
|
||||
.saturating_add(Weight::from_parts(48_024, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_552
|
||||
.saturating_add(Weight::from_parts(34_411, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_847_000 picoseconds.
|
||||
Weight::from_parts(34_690_456, 4764)
|
||||
// Standard Error: 1_681
|
||||
.saturating_add(Weight::from_parts(51_103, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_991
|
||||
.saturating_add(Weight::from_parts(55_094, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
@@ -326,12 +328,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 33_859_000 picoseconds.
|
||||
Weight::from_parts(32_950_681, 4764)
|
||||
// Standard Error: 1_745
|
||||
.saturating_add(Weight::from_parts(69_323, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_105
|
||||
.saturating_add(Weight::from_parts(86_370, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_027_000 picoseconds.
|
||||
Weight::from_parts(33_353_168, 4764)
|
||||
// Standard Error: 1_477
|
||||
.saturating_add(Weight::from_parts(72_605, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 2_629
|
||||
.saturating_add(Weight::from_parts(64_115, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -349,12 +351,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `484 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 36_239_000 picoseconds.
|
||||
Weight::from_parts(36_459_756, 4764)
|
||||
// Standard Error: 2_051
|
||||
.saturating_add(Weight::from_parts(56_670, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_650
|
||||
.saturating_add(Weight::from_parts(49_663, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 36_816_000 picoseconds.
|
||||
Weight::from_parts(36_467_447, 4764)
|
||||
// Standard Error: 1_689
|
||||
.saturating_add(Weight::from_parts(51_855, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_006
|
||||
.saturating_add(Weight::from_parts(58_233, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -372,12 +374,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 70_330_000 picoseconds.
|
||||
Weight::from_parts(71_196_328, 4764)
|
||||
// Standard Error: 2_923
|
||||
.saturating_add(Weight::from_parts(67_238, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_201
|
||||
.saturating_add(Weight::from_parts(89_102, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 70_906_000 picoseconds.
|
||||
Weight::from_parts(72_663_428, 4764)
|
||||
// Standard Error: 2_877
|
||||
.saturating_add(Weight::from_parts(81_242, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 5_118
|
||||
.saturating_add(Weight::from_parts(103_344, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -395,12 +397,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `658 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `6196`
|
||||
// Minimum execution time: 70_235_000 picoseconds.
|
||||
Weight::from_parts(71_960_020, 6196)
|
||||
// Standard Error: 2_493
|
||||
.saturating_add(Weight::from_parts(64_835, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_436
|
||||
.saturating_add(Weight::from_parts(102_159, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 72_730_000 picoseconds.
|
||||
Weight::from_parts(75_050_411, 6196)
|
||||
// Standard Error: 2_748
|
||||
.saturating_add(Weight::from_parts(73_218, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 4_889
|
||||
.saturating_add(Weight::from_parts(112_868, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
||||
}
|
||||
@@ -418,12 +420,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 34_352_000 picoseconds.
|
||||
Weight::from_parts(33_697_027, 4764)
|
||||
// Standard Error: 2_008
|
||||
.saturating_add(Weight::from_parts(79_270, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_710
|
||||
.saturating_add(Weight::from_parts(60_691, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 34_698_000 picoseconds.
|
||||
Weight::from_parts(34_504_324, 4764)
|
||||
// Standard Error: 1_703
|
||||
.saturating_add(Weight::from_parts(56_321, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_145
|
||||
.saturating_add(Weight::from_parts(55_503, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -441,12 +443,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `482 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 37_467_000 picoseconds.
|
||||
Weight::from_parts(36_866_847, 4764)
|
||||
// Standard Error: 1_692
|
||||
.saturating_add(Weight::from_parts(57_882, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_124
|
||||
.saturating_add(Weight::from_parts(80_266, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 36_951_000 picoseconds.
|
||||
Weight::from_parts(37_020_649, 4764)
|
||||
// Standard Error: 1_791
|
||||
.saturating_add(Weight::from_parts(65_437, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_308
|
||||
.saturating_add(Weight::from_parts(54_146, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -464,12 +466,12 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `555 + l * (25 ±0) + s * (36 ±0)`
|
||||
// Estimated: `4764`
|
||||
// Minimum execution time: 41_497_000 picoseconds.
|
||||
Weight::from_parts(38_763_834, 4764)
|
||||
// Standard Error: 2_030
|
||||
.saturating_add(Weight::from_parts(99_580, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_750
|
||||
.saturating_add(Weight::from_parts(132_188, 0).saturating_mul(s.into()))
|
||||
// Minimum execution time: 38_849_000 picoseconds.
|
||||
Weight::from_parts(38_488_577, 4764)
|
||||
// Standard Error: 1_911
|
||||
.saturating_add(Weight::from_parts(72_338, 0).saturating_mul(l.into()))
|
||||
// Standard Error: 3_529
|
||||
.saturating_add(Weight::from_parts(62_206, 0).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
|
||||
Generated
+104
-89
@@ -15,16 +15,16 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
//! Autogenerated weights for pallet_whitelist
|
||||
//! Autogenerated weights for `pallet_whitelist`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-06-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
||||
//! DATE: 2024-04-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `runner-e8ezs4ez-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
//! HOSTNAME: `runner-anb7yjbi-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||
|
||||
// Executed Command:
|
||||
// ./target/production/substrate
|
||||
// ./target/production/substrate-node
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=dev
|
||||
@@ -35,12 +35,11 @@
|
||||
// --no-median-slopes
|
||||
// --no-min-squares
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/whitelist/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./substrate/frame/whitelist/src/weights.rs
|
||||
// --header=./substrate/HEADER-APACHE2
|
||||
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -50,7 +49,7 @@
|
||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||
use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions needed for pallet_whitelist.
|
||||
/// Weight functions needed for `pallet_whitelist`.
|
||||
pub trait WeightInfo {
|
||||
fn whitelist_call() -> Weight;
|
||||
fn remove_whitelisted_call() -> Weight;
|
||||
@@ -58,133 +57,149 @@ pub trait WeightInfo {
|
||||
fn dispatch_whitelisted_call_with_preimage(n: u32, ) -> Weight;
|
||||
}
|
||||
|
||||
/// Weights for pallet_whitelist using the Substrate node and recommended hardware.
|
||||
/// 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)
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn whitelist_call() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `217`
|
||||
// Measured: `317`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 19_914_000 picoseconds.
|
||||
Weight::from_parts(20_892_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 19_521_000 picoseconds.
|
||||
Weight::from_parts(20_136_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn remove_whitelisted_call() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Measured: `446`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 18_142_000 picoseconds.
|
||||
Weight::from_parts(18_529_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 18_530_000 picoseconds.
|
||||
Weight::from_parts(19_004_000, 3556)
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `422 + n * (1 ±0)`
|
||||
// Estimated: `3886 + n * (1 ±0)`
|
||||
// Minimum execution time: 30_671_000 picoseconds.
|
||||
Weight::from_parts(31_197_000, 3886)
|
||||
// Measured: `522 + n * (1 ±0)`
|
||||
// Estimated: `3986 + n * (1 ±0)`
|
||||
// Minimum execution time: 29_721_000 picoseconds.
|
||||
Weight::from_parts(30_140_000, 3986)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_parts(1_163, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(Weight::from_parts(1_179, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Measured: `446`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 22_099_000 picoseconds.
|
||||
Weight::from_parts(23_145_477, 3556)
|
||||
// Standard Error: 5
|
||||
.saturating_add(Weight::from_parts(1_422, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 22_608_000 picoseconds.
|
||||
Weight::from_parts(23_682_511, 3556)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_parts(1_420, 0).saturating_mul(n.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
// For backwards compatibility and tests.
|
||||
impl WeightInfo for () {
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn whitelist_call() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `217`
|
||||
// Measured: `317`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 19_914_000 picoseconds.
|
||||
Weight::from_parts(20_892_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 19_521_000 picoseconds.
|
||||
Weight::from_parts(20_136_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
fn remove_whitelisted_call() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Measured: `446`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 18_142_000 picoseconds.
|
||||
Weight::from_parts(18_529_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 18_530_000 picoseconds.
|
||||
Weight::from_parts(19_004_000, 3556)
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `422 + n * (1 ±0)`
|
||||
// Estimated: `3886 + n * (1 ±0)`
|
||||
// Minimum execution time: 30_671_000 picoseconds.
|
||||
Weight::from_parts(31_197_000, 3886)
|
||||
// Measured: `522 + n * (1 ±0)`
|
||||
// Estimated: `3986 + n * (1 ±0)`
|
||||
// Minimum execution time: 29_721_000 picoseconds.
|
||||
Weight::from_parts(30_140_000, 3986)
|
||||
// Standard Error: 0
|
||||
.saturating_add(Weight::from_parts(1_163, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(Weight::from_parts(1_179, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
|
||||
}
|
||||
/// 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)
|
||||
/// 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:0)
|
||||
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
||||
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
||||
/// Proof: `Preimage::RequestStatusFor` (`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 {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `346`
|
||||
// Measured: `446`
|
||||
// Estimated: `3556`
|
||||
// Minimum execution time: 22_099_000 picoseconds.
|
||||
Weight::from_parts(23_145_477, 3556)
|
||||
// Standard Error: 5
|
||||
.saturating_add(Weight::from_parts(1_422, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
// Minimum execution time: 22_608_000 picoseconds.
|
||||
Weight::from_parts(23_682_511, 3556)
|
||||
// Standard Error: 6
|
||||
.saturating_add(Weight::from_parts(1_420, 0).saturating_mul(n.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user