mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +00:00
Add Proof Size to Weight Output (#11637)
* initial impl * add template test * linear fit proof size * always record proof when tracking storage * calculate worst case pov * remove duplicate worst case * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * more comment output * add cli for worst case map size * update name * clap does not support underscores * rename * expose worst case map values * improve some comments * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * update template * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark pallet --chain=dev --steps=50 --repeat=20 --pallet=pallet_assets --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/assets/src/weights.rs --template=./.maintain/frame-weight-template.hbs * fix fmt * more fmt * more fmt * Dont panic when there is no proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix test features Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Whitelist :extrinsic_index Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use whitelist when recording proof Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add logs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Deploy PoV testing pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Storage benches reside in the PoV pallet Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Linear regress PoV per component Splits the PoV calculation into "measured" and "estimated". The measured part is reported by the Proof recorder and linear regressed over all components at once. The estimated part is calculated as worst-case by using the max PoV size per storage access and calculating one linear regress per component. This gives each component a (possibly) independent PoV. For now the measured size will always be lower than the PoV on Polkadot since it is measured on an empty snapshot. The measured part is therefor only used as diagnostic for debugging. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Put PoV into the weight templates Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Extra alanysis choise for PoV Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add+Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make benches faster Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Cleanup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use same template comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_balances * ".git/.scripts/bench-bot.sh" pallet dev pallet_democracy * Update referenda mock BlockWeights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Take measured value size into account Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_scheduler * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * proof_size: None Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ugly, but works Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * wup Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * WIP Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add pov_mode attribute to the benchmarks! macro Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Use pov_mode attribute in PoV benchmarking Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Scheduler, Whitelist: Add pov_mode attr Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update PoV weights * Add CLI arg: default-pov-mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Revert "Update PoV weights" This reverts commit 2f3ac2387396470b118122a6ff8fa4ee12216f4b. * Revert "WIP" This reverts commit c34b538cd2bc45da4544e887180184e30957904a. * Revert first approach This reverts commit range 8ddaa2fffe5930f225a30bee314d0b7c94c344dd^..4c84f8748e5395852a9e0e25b0404953fee1a59e Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add extra benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_alliance * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_whitelist * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_scheduler * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Clippy 🤦 Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add reference benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix doc comments Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Undo logging Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add 'Ignored' pov_mode Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Allow multiple attributes per benchmark Turns out that the current benchmarking syntax does not support multiple attributes per bench 🤦. Changing it to support that since otherwise the `pov_mode` would conflict with the others. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Validate pov_mode syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Ignore PoV for all contract benchmarks Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * test Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Bump macro recursion limit Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fmt Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update contract weights They dont have a PoV component anymore. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * fix test ffs Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * pov_mode is unsupported in V2 syntax Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * update pallet ui Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Fix pallet ui tests Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Parity Bot <admin@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Your Name <you@example.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2023 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_election_provider_multi_phase
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
@@ -62,262 +63,422 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_election_provider_multi_phase using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
// Storage: Babe EpochIndex (r:1 w:0)
|
||||
// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
// Storage: Staking ForceEra (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
/// Proof: Staking CurrentPlannedSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: Babe EpochIndex (r:1 w:0)
|
||||
/// Proof: Babe EpochIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
/// Proof: Babe GenesisSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ForceEra (r:1 w:0)
|
||||
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
// Minimum execution time: 17_309 nanoseconds.
|
||||
Weight::from_ref_time(17_646_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `994`
|
||||
// Estimated: `6983`
|
||||
// Minimum execution time: 17_801 nanoseconds.
|
||||
Weight::from_parts(18_364_000, 6983)
|
||||
.saturating_add(T::DbWeight::get().reads(8_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
// Minimum execution time: 17_992 nanoseconds.
|
||||
Weight::from_ref_time(18_426_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 12_814 nanoseconds.
|
||||
Weight::from_parts(13_154_000, 1218)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
// Minimum execution time: 17_340 nanoseconds.
|
||||
Weight::from_ref_time(17_881_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 14_565 nanoseconds.
|
||||
Weight::from_parts(15_097_000, 1218)
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
// Minimum execution time: 35_571 nanoseconds.
|
||||
Weight::from_ref_time(35_989_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2809`
|
||||
// Minimum execution time: 23_341 nanoseconds.
|
||||
Weight::from_parts(23_770_000, 2809)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn finalize_signed_phase_reject_solution() -> Weight {
|
||||
// Minimum execution time: 27_403 nanoseconds.
|
||||
Weight::from_ref_time(27_879_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 16_662 nanoseconds.
|
||||
Weight::from_parts(16_898_000, 2603)
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight {
|
||||
// Minimum execution time: 571_900 nanoseconds.
|
||||
Weight::from_ref_time(589_170_000 as u64)
|
||||
// Standard Error: 7_123
|
||||
.saturating_add(Weight::from_ref_time(384_767 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 215_168 nanoseconds.
|
||||
Weight::from_ref_time(219_887_000)
|
||||
// Standard Error: 1_444
|
||||
.saturating_add(Weight::from_ref_time(146_388).saturating_mul(v.into()))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn elect_queued(a: u32, d: u32, ) -> Weight {
|
||||
// Minimum execution time: 1_296_481 nanoseconds.
|
||||
Weight::from_ref_time(1_076_121_575 as u64)
|
||||
// Standard Error: 5_708
|
||||
.saturating_add(Weight::from_ref_time(474_995 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 8_556
|
||||
.saturating_add(Weight::from_ref_time(39_224 as u64).saturating_mul(d as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `368 + a * (768 ±0) + d * (48 ±0)`
|
||||
// Estimated: `9540 + a * (6912 ±0) + d * (441 ±0)`
|
||||
// Minimum execution time: 268_021 nanoseconds.
|
||||
Weight::from_parts(72_491_937, 9540)
|
||||
// Standard Error: 2_910
|
||||
.saturating_add(Weight::from_ref_time(303_955).saturating_mul(a.into()))
|
||||
// Standard Error: 4_363
|
||||
.saturating_add(Weight::from_ref_time(167_369).saturating_mul(d.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(8_u64))
|
||||
.saturating_add(Weight::from_proof_size(6912).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_proof_size(441).saturating_mul(d.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
/// Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
fn submit() -> Weight {
|
||||
// Minimum execution time: 58_716 nanoseconds.
|
||||
Weight::from_ref_time(59_480_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `924`
|
||||
// Estimated: `7111`
|
||||
// Minimum execution time: 44_177 nanoseconds.
|
||||
Weight::from_parts(44_663_000, 7111)
|
||||
.saturating_add(T::DbWeight::get().reads(5_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn submit_unsigned(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_540_737 nanoseconds.
|
||||
Weight::from_ref_time(5_567_381_000 as u64)
|
||||
// Standard Error: 18_563
|
||||
.saturating_add(Weight::from_ref_time(603_280 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 55_009
|
||||
.saturating_add(Weight::from_ref_time(3_164_053 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(7 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
fn submit_unsigned(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `251 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `5222 + v * (3871 ±0) + t * (224 ±0)`
|
||||
// Minimum execution time: 4_425_457 nanoseconds.
|
||||
Weight::from_parts(4_445_889_000, 5222)
|
||||
// Standard Error: 13_250
|
||||
.saturating_add(Weight::from_ref_time(48_844).saturating_mul(v.into()))
|
||||
// Standard Error: 39_266
|
||||
.saturating_add(Weight::from_ref_time(4_144_034).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(7_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(3871).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(224).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn feasibility_check(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_021_808 nanoseconds.
|
||||
Weight::from_ref_time(5_051_856_000 as u64)
|
||||
// Standard Error: 16_650
|
||||
.saturating_add(Weight::from_ref_time(683_344 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 49_342
|
||||
.saturating_add(Weight::from_ref_time(2_190_098 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `2884 + v * (2212 ±0) + t * (128 ±0)`
|
||||
// Minimum execution time: 3_812_071 nanoseconds.
|
||||
Weight::from_parts(3_826_375_000, 2884)
|
||||
// Standard Error: 11_601
|
||||
.saturating_add(Weight::from_ref_time(145_309).saturating_mul(v.into()))
|
||||
// Standard Error: 34_378
|
||||
.saturating_add(Weight::from_ref_time(3_223_977).saturating_mul(a.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_proof_size(2212).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(128).saturating_mul(t.into()))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
// Storage: Babe EpochIndex (r:1 w:0)
|
||||
// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
// Storage: Staking ForceEra (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Storage: Staking CurrentEra (r:1 w:0)
|
||||
/// Proof: Staking CurrentEra (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking CurrentPlannedSession (r:1 w:0)
|
||||
/// Proof: Staking CurrentPlannedSession (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ErasStartSessionIndex (r:1 w:0)
|
||||
/// Proof: Staking ErasStartSessionIndex (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)
|
||||
/// Storage: Babe EpochIndex (r:1 w:0)
|
||||
/// Proof: Babe EpochIndex (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe GenesisSlot (r:1 w:0)
|
||||
/// Proof: Babe GenesisSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
/// Proof: Babe CurrentSlot (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
|
||||
/// Storage: Staking ForceEra (r:1 w:0)
|
||||
/// Proof: Staking ForceEra (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
// Minimum execution time: 17_309 nanoseconds.
|
||||
Weight::from_ref_time(17_646_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `994`
|
||||
// Estimated: `6983`
|
||||
// Minimum execution time: 17_801 nanoseconds.
|
||||
Weight::from_parts(18_364_000, 6983)
|
||||
.saturating_add(RocksDbWeight::get().reads(8_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
// Minimum execution time: 17_992 nanoseconds.
|
||||
Weight::from_ref_time(18_426_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 12_814 nanoseconds.
|
||||
Weight::from_parts(13_154_000, 1218)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
// Minimum execution time: 17_340 nanoseconds.
|
||||
Weight::from_ref_time(17_881_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `114`
|
||||
// Estimated: `1218`
|
||||
// Minimum execution time: 14_565 nanoseconds.
|
||||
Weight::from_parts(15_097_000, 1218)
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
// Minimum execution time: 35_571 nanoseconds.
|
||||
Weight::from_ref_time(35_989_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2809`
|
||||
// Minimum execution time: 23_341 nanoseconds.
|
||||
Weight::from_parts(23_770_000, 2809)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
fn finalize_signed_phase_reject_solution() -> Weight {
|
||||
// Minimum execution time: 27_403 nanoseconds.
|
||||
Weight::from_ref_time(27_879_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `206`
|
||||
// Estimated: `2603`
|
||||
// Minimum execution time: 16_662 nanoseconds.
|
||||
Weight::from_parts(16_898_000, 2603)
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
fn create_snapshot_internal(v: u32, _t: u32, ) -> Weight {
|
||||
// Minimum execution time: 571_900 nanoseconds.
|
||||
Weight::from_ref_time(589_170_000 as u64)
|
||||
// Standard Error: 7_123
|
||||
.saturating_add(Weight::from_ref_time(384_767 as u64).saturating_mul(v as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `0`
|
||||
// Estimated: `0`
|
||||
// Minimum execution time: 215_168 nanoseconds.
|
||||
Weight::from_ref_time(219_887_000)
|
||||
// Standard Error: 1_444
|
||||
.saturating_add(Weight::from_ref_time(146_388).saturating_mul(v.into()))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn elect_queued(a: u32, d: u32, ) -> Weight {
|
||||
// Minimum execution time: 1_296_481 nanoseconds.
|
||||
Weight::from_ref_time(1_076_121_575 as u64)
|
||||
// Standard Error: 5_708
|
||||
.saturating_add(Weight::from_ref_time(474_995 as u64).saturating_mul(a as u64))
|
||||
// Standard Error: 8_556
|
||||
.saturating_add(Weight::from_ref_time(39_224 as u64).saturating_mul(d as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `368 + a * (768 ±0) + d * (48 ±0)`
|
||||
// Estimated: `9540 + a * (6912 ±0) + d * (441 ±0)`
|
||||
// Minimum execution time: 268_021 nanoseconds.
|
||||
Weight::from_parts(72_491_937, 9540)
|
||||
// Standard Error: 2_910
|
||||
.saturating_add(Weight::from_ref_time(303_955).saturating_mul(a.into()))
|
||||
// Standard Error: 4_363
|
||||
.saturating_add(Weight::from_ref_time(167_369).saturating_mul(d.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(8_u64))
|
||||
.saturating_add(Weight::from_proof_size(6912).saturating_mul(a.into()))
|
||||
.saturating_add(Weight::from_proof_size(441).saturating_mul(d.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
|
||||
/// Proof: TransactionPayment NextFeeMultiplier (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionIndices (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionNextIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SignedSubmissionsMap (max_values: None, max_size: None, mode: Measured)
|
||||
fn submit() -> Weight {
|
||||
// Minimum execution time: 58_716 nanoseconds.
|
||||
Weight::from_ref_time(59_480_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `924`
|
||||
// Estimated: `7111`
|
||||
// Minimum execution time: 44_177 nanoseconds.
|
||||
Weight::from_parts(44_663_000, 7111)
|
||||
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase CurrentPhase (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase QueuedSolution (r:1 w:1)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase QueuedSolution (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase SnapshotMetadata (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn submit_unsigned(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_540_737 nanoseconds.
|
||||
Weight::from_ref_time(5_567_381_000 as u64)
|
||||
// Standard Error: 18_563
|
||||
.saturating_add(Weight::from_ref_time(603_280 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 55_009
|
||||
.saturating_add(Weight::from_ref_time(3_164_053 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
fn submit_unsigned(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `251 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `5222 + v * (3871 ±0) + t * (224 ±0)`
|
||||
// Minimum execution time: 4_425_457 nanoseconds.
|
||||
Weight::from_parts(4_445_889_000, 5222)
|
||||
// Standard Error: 13_250
|
||||
.saturating_add(Weight::from_ref_time(48_844).saturating_mul(v.into()))
|
||||
// Standard Error: 39_266
|
||||
.saturating_add(Weight::from_ref_time(4_144_034).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(7_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(Weight::from_proof_size(3871).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(224).saturating_mul(t.into()))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Round (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase DesiredTargets (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase MinimumUntrustedScore (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
/// Proof Skipped: ElectionProviderMultiPhase Snapshot (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// The range of component `v` is `[1000, 2000]`.
|
||||
/// The range of component `t` is `[500, 1000]`.
|
||||
/// The range of component `a` is `[500, 800]`.
|
||||
/// The range of component `d` is `[200, 400]`.
|
||||
fn feasibility_check(v: u32, _t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Minimum execution time: 5_021_808 nanoseconds.
|
||||
Weight::from_ref_time(5_051_856_000 as u64)
|
||||
// Standard Error: 16_650
|
||||
.saturating_add(Weight::from_ref_time(683_344 as u64).saturating_mul(v as u64))
|
||||
// Standard Error: 49_342
|
||||
.saturating_add(Weight::from_ref_time(2_190_098 as u64).saturating_mul(a as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, _d: u32, ) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + v * (553 ±0) + t * (32 ±0)`
|
||||
// Estimated: `2884 + v * (2212 ±0) + t * (128 ±0)`
|
||||
// Minimum execution time: 3_812_071 nanoseconds.
|
||||
Weight::from_parts(3_826_375_000, 2884)
|
||||
// Standard Error: 11_601
|
||||
.saturating_add(Weight::from_ref_time(145_309).saturating_mul(v.into()))
|
||||
// Standard Error: 34_378
|
||||
.saturating_add(Weight::from_ref_time(3_223_977).saturating_mul(a.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(Weight::from_proof_size(2212).saturating_mul(v.into()))
|
||||
.saturating_add(Weight::from_proof_size(128).saturating_mul(t.into()))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user