mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 18:41:05 +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_identity
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
@@ -68,420 +69,584 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_identity using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_269 nanoseconds.
|
||||
Weight::from_ref_time(21_910_543 as u64)
|
||||
// Standard Error: 4_604
|
||||
.saturating_add(Weight::from_ref_time(223_104 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `64 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 10_964 nanoseconds.
|
||||
Weight::from_parts(11_800_935, 1636)
|
||||
// Standard Error: 1_334
|
||||
.saturating_add(Weight::from_ref_time(96_038).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_872 nanoseconds.
|
||||
Weight::from_ref_time(40_230_216 as u64)
|
||||
// Standard Error: 2_342
|
||||
.saturating_add(Weight::from_ref_time(145_168 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 457
|
||||
.saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `474 + r * (5 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 26_400 nanoseconds.
|
||||
Weight::from_parts(26_060_549, 10013)
|
||||
// Standard Error: 1_561
|
||||
.saturating_add(Weight::from_ref_time(72_083).saturating_mul(r.into()))
|
||||
// Standard Error: 304
|
||||
.saturating_add(Weight::from_ref_time(306_994).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:2 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:100 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_024 nanoseconds.
|
||||
Weight::from_ref_time(32_550_819 as u64)
|
||||
// Standard Error: 5_057
|
||||
.saturating_add(Weight::from_ref_time(2_521_245 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `101`
|
||||
// Estimated: `15746 + s * (2589 ±0)`
|
||||
// Minimum execution time: 8_492 nanoseconds.
|
||||
Weight::from_parts(21_645_924, 15746)
|
||||
// Standard Error: 3_452
|
||||
.saturating_add(Weight::from_ref_time(2_442_604).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(Weight::from_proof_size(2589).saturating_mul(s.into()))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_232 nanoseconds.
|
||||
Weight::from_ref_time(34_009_761 as u64)
|
||||
// Standard Error: 5_047
|
||||
.saturating_add(Weight::from_ref_time(1_113_100 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + p * (32 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 8_488 nanoseconds.
|
||||
Weight::from_parts(20_202_601, 15746)
|
||||
// Standard Error: 2_834
|
||||
.saturating_add(Weight::from_ref_time(1_082_941).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 57_144 nanoseconds.
|
||||
Weight::from_ref_time(41_559_247 as u64)
|
||||
// Standard Error: 9_996
|
||||
.saturating_add(Weight::from_ref_time(146_770 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(1_086_673 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(162_481 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 41_319 nanoseconds.
|
||||
Weight::from_parts(25_850_055, 15746)
|
||||
// Standard Error: 4_144
|
||||
.saturating_add(Weight::from_ref_time(59_619).saturating_mul(r.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(1_076_550).saturating_mul(s.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(163_191).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_726 nanoseconds.
|
||||
Weight::from_ref_time(41_637_308 as u64)
|
||||
// Standard Error: 1_907
|
||||
.saturating_add(Weight::from_ref_time(219_078 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 372
|
||||
.saturating_add(Weight::from_ref_time(309_888 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 28_118 nanoseconds.
|
||||
Weight::from_parts(27_359_471, 11649)
|
||||
// Standard Error: 2_707
|
||||
.saturating_add(Weight::from_ref_time(107_279).saturating_mul(r.into()))
|
||||
// Standard Error: 528
|
||||
.saturating_add(Weight::from_ref_time(325_165).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 39_719 nanoseconds.
|
||||
Weight::from_ref_time(38_008_751 as u64)
|
||||
// Standard Error: 2_394
|
||||
.saturating_add(Weight::from_ref_time(181_870 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 467
|
||||
.saturating_add(Weight::from_ref_time(314_990 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `430 + x * (66 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 24_817 nanoseconds.
|
||||
Weight::from_parts(24_749_808, 10013)
|
||||
// Standard Error: 1_938
|
||||
.saturating_add(Weight::from_ref_time(63_396).saturating_mul(r.into()))
|
||||
// Standard Error: 378
|
||||
.saturating_add(Weight::from_ref_time(327_083).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_634 nanoseconds.
|
||||
Weight::from_ref_time(11_383_704 as u64)
|
||||
// Standard Error: 2_250
|
||||
.saturating_add(Weight::from_ref_time(193_094 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_664 nanoseconds.
|
||||
Weight::from_parts(7_286_307, 1636)
|
||||
// Standard Error: 1_560
|
||||
.saturating_add(Weight::from_ref_time(96_416).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_840 nanoseconds.
|
||||
Weight::from_ref_time(11_638_740 as u64)
|
||||
// Standard Error: 1_985
|
||||
.saturating_add(Weight::from_ref_time(193_016 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 7_054 nanoseconds.
|
||||
Weight::from_parts(7_382_954, 1636)
|
||||
// Standard Error: 1_621
|
||||
.saturating_add(Weight::from_ref_time(101_595).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_748 nanoseconds.
|
||||
Weight::from_ref_time(11_346_901 as u64)
|
||||
// Standard Error: 2_132
|
||||
.saturating_add(Weight::from_ref_time(196_630 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_659 nanoseconds.
|
||||
Weight::from_parts(7_188_883, 1636)
|
||||
// Standard Error: 1_377
|
||||
.saturating_add(Weight::from_ref_time(98_965).saturating_mul(r.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_682 nanoseconds.
|
||||
Weight::from_ref_time(31_336_603 as u64)
|
||||
// Standard Error: 3_056
|
||||
.saturating_add(Weight::from_ref_time(200_403 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 565
|
||||
.saturating_add(Weight::from_ref_time(525_142 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 21_567 nanoseconds.
|
||||
Weight::from_parts(21_015_310, 11649)
|
||||
// Standard Error: 2_516
|
||||
.saturating_add(Weight::from_ref_time(123_992).saturating_mul(r.into()))
|
||||
// Standard Error: 465
|
||||
.saturating_add(Weight::from_ref_time(552_116).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 68_794 nanoseconds.
|
||||
Weight::from_ref_time(52_114_486 as u64)
|
||||
// Standard Error: 4_808
|
||||
.saturating_add(Weight::from_ref_time(153_462 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(1_084_612 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(170_112 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `18349`
|
||||
// Minimum execution time: 52_881 nanoseconds.
|
||||
Weight::from_parts(38_504_388, 18349)
|
||||
// Standard Error: 3_909
|
||||
.saturating_add(Weight::from_ref_time(51_452).saturating_mul(r.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(1_069_924).saturating_mul(s.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(164_906).saturating_mul(x.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_914 nanoseconds.
|
||||
Weight::from_ref_time(43_488_083 as u64)
|
||||
// Standard Error: 1_631
|
||||
.saturating_add(Weight::from_ref_time(118_845 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `507 + s * (36 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 24_556 nanoseconds.
|
||||
Weight::from_parts(28_641_160, 18335)
|
||||
// Standard Error: 1_327
|
||||
.saturating_add(Weight::from_ref_time(66_150).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 16_124 nanoseconds.
|
||||
Weight::from_ref_time(18_580_462 as u64)
|
||||
// Standard Error: 688
|
||||
.saturating_add(Weight::from_ref_time(67_220 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `623 + s * (3 ±0)`
|
||||
// Estimated: `12602`
|
||||
// Minimum execution time: 11_347 nanoseconds.
|
||||
Weight::from_parts(13_299_367, 12602)
|
||||
// Standard Error: 525
|
||||
.saturating_add(Weight::from_ref_time(16_472).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_517 nanoseconds.
|
||||
Weight::from_ref_time(45_123_530 as u64)
|
||||
// Standard Error: 1_530
|
||||
.saturating_add(Weight::from_ref_time(105_429 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `702 + s * (35 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 27_810 nanoseconds.
|
||||
Weight::from_parts(30_347_763, 18335)
|
||||
// Standard Error: 928
|
||||
.saturating_add(Weight::from_ref_time(55_342).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(3_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 30_171 nanoseconds.
|
||||
Weight::from_ref_time(33_355_514 as u64)
|
||||
// Standard Error: 1_286
|
||||
.saturating_add(Weight::from_ref_time(114_716 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628 + s * (37 ±0)`
|
||||
// Estimated: `8322`
|
||||
// Minimum execution time: 17_601 nanoseconds.
|
||||
Weight::from_parts(19_794_971, 8322)
|
||||
// Standard Error: 934
|
||||
.saturating_add(Weight::from_ref_time(59_289).saturating_mul(s.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 20_269 nanoseconds.
|
||||
Weight::from_ref_time(21_910_543 as u64)
|
||||
// Standard Error: 4_604
|
||||
.saturating_add(Weight::from_ref_time(223_104 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `64 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 10_964 nanoseconds.
|
||||
Weight::from_parts(11_800_935, 1636)
|
||||
// Standard Error: 1_334
|
||||
.saturating_add(Weight::from_ref_time(96_038).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_872 nanoseconds.
|
||||
Weight::from_ref_time(40_230_216 as u64)
|
||||
// Standard Error: 2_342
|
||||
.saturating_add(Weight::from_ref_time(145_168 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 457
|
||||
.saturating_add(Weight::from_ref_time(291_732 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `474 + r * (5 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 26_400 nanoseconds.
|
||||
Weight::from_parts(26_060_549, 10013)
|
||||
// Standard Error: 1_561
|
||||
.saturating_add(Weight::from_ref_time(72_083).saturating_mul(r.into()))
|
||||
// Standard Error: 304
|
||||
.saturating_add(Weight::from_ref_time(306_994).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:2 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:100 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_024 nanoseconds.
|
||||
Weight::from_ref_time(32_550_819 as u64)
|
||||
// Standard Error: 5_057
|
||||
.saturating_add(Weight::from_ref_time(2_521_245 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(s as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `101`
|
||||
// Estimated: `15746 + s * (2589 ±0)`
|
||||
// Minimum execution time: 8_492 nanoseconds.
|
||||
Weight::from_parts(21_645_924, 15746)
|
||||
// Standard Error: 3_452
|
||||
.saturating_add(Weight::from_ref_time(2_442_604).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
.saturating_add(Weight::from_proof_size(2589).saturating_mul(s.into()))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:2)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `p` is `[0, 100]`.
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
// Minimum execution time: 12_232 nanoseconds.
|
||||
Weight::from_ref_time(34_009_761 as u64)
|
||||
// Standard Error: 5_047
|
||||
.saturating_add(Weight::from_ref_time(1_113_100 as u64).saturating_mul(p as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(p as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `226 + p * (32 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 8_488 nanoseconds.
|
||||
Weight::from_parts(20_202_601, 15746)
|
||||
// Standard Error: 2_834
|
||||
.saturating_add(Weight::from_ref_time(1_082_941).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 57_144 nanoseconds.
|
||||
Weight::from_ref_time(41_559_247 as u64)
|
||||
// Standard Error: 9_996
|
||||
.saturating_add(Weight::from_ref_time(146_770 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(1_086_673 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 1_952
|
||||
.saturating_add(Weight::from_ref_time(162_481 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `15746`
|
||||
// Minimum execution time: 41_319 nanoseconds.
|
||||
Weight::from_parts(25_850_055, 15746)
|
||||
// Standard Error: 4_144
|
||||
.saturating_add(Weight::from_ref_time(59_619).saturating_mul(r.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(1_076_550).saturating_mul(s.into()))
|
||||
// Standard Error: 809
|
||||
.saturating_add(Weight::from_ref_time(163_191).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 44_726 nanoseconds.
|
||||
Weight::from_ref_time(41_637_308 as u64)
|
||||
// Standard Error: 1_907
|
||||
.saturating_add(Weight::from_ref_time(219_078 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 372
|
||||
.saturating_add(Weight::from_ref_time(309_888 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 28_118 nanoseconds.
|
||||
Weight::from_parts(27_359_471, 11649)
|
||||
// Standard Error: 2_707
|
||||
.saturating_add(Weight::from_ref_time(107_279).saturating_mul(r.into()))
|
||||
// Standard Error: 528
|
||||
.saturating_add(Weight::from_ref_time(325_165).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 39_719 nanoseconds.
|
||||
Weight::from_ref_time(38_008_751 as u64)
|
||||
// Standard Error: 2_394
|
||||
.saturating_add(Weight::from_ref_time(181_870 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 467
|
||||
.saturating_add(Weight::from_ref_time(314_990 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `430 + x * (66 ±0)`
|
||||
// Estimated: `10013`
|
||||
// Minimum execution time: 24_817 nanoseconds.
|
||||
Weight::from_parts(24_749_808, 10013)
|
||||
// Standard Error: 1_938
|
||||
.saturating_add(Weight::from_ref_time(63_396).saturating_mul(r.into()))
|
||||
// Standard Error: 378
|
||||
.saturating_add(Weight::from_ref_time(327_083).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_634 nanoseconds.
|
||||
Weight::from_ref_time(11_383_704 as u64)
|
||||
// Standard Error: 2_250
|
||||
.saturating_add(Weight::from_ref_time(193_094 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_664 nanoseconds.
|
||||
Weight::from_parts(7_286_307, 1636)
|
||||
// Standard Error: 1_560
|
||||
.saturating_add(Weight::from_ref_time(96_416).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_840 nanoseconds.
|
||||
Weight::from_ref_time(11_638_740 as u64)
|
||||
// Standard Error: 1_985
|
||||
.saturating_add(Weight::from_ref_time(193_016 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 7_054 nanoseconds.
|
||||
Weight::from_parts(7_382_954, 1636)
|
||||
// Standard Error: 1_621
|
||||
.saturating_add(Weight::from_ref_time(101_595).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:1)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
// Minimum execution time: 10_748 nanoseconds.
|
||||
Weight::from_ref_time(11_346_901 as u64)
|
||||
// Standard Error: 2_132
|
||||
.saturating_add(Weight::from_ref_time(196_630 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `121 + r * (57 ±0)`
|
||||
// Estimated: `1636`
|
||||
// Minimum execution time: 6_659 nanoseconds.
|
||||
Weight::from_parts(7_188_883, 1636)
|
||||
// Standard Error: 1_377
|
||||
.saturating_add(Weight::from_ref_time(98_965).saturating_mul(r.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Storage: Identity Registrars (r:1 w:0)
|
||||
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 19]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 33_682 nanoseconds.
|
||||
Weight::from_ref_time(31_336_603 as u64)
|
||||
// Standard Error: 3_056
|
||||
.saturating_add(Weight::from_ref_time(200_403 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 565
|
||||
.saturating_add(Weight::from_ref_time(525_142 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
||||
// Estimated: `11649`
|
||||
// Minimum execution time: 21_567 nanoseconds.
|
||||
Weight::from_parts(21_015_310, 11649)
|
||||
// Standard Error: 2_516
|
||||
.saturating_add(Weight::from_ref_time(123_992).saturating_mul(r.into()))
|
||||
// Standard Error: 465
|
||||
.saturating_add(Weight::from_ref_time(552_116).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// Storage: Identity IdentityOf (r:1 w:1)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: System Account (r:1 w:1)
|
||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:0 w:100)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `r` is `[1, 20]`.
|
||||
/// The range of component `s` is `[0, 100]`.
|
||||
/// The range of component `x` is `[0, 100]`.
|
||||
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
// Minimum execution time: 68_794 nanoseconds.
|
||||
Weight::from_ref_time(52_114_486 as u64)
|
||||
// Standard Error: 4_808
|
||||
.saturating_add(Weight::from_ref_time(153_462 as u64).saturating_mul(r as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(1_084_612 as u64).saturating_mul(s as u64))
|
||||
// Standard Error: 939
|
||||
.saturating_add(Weight::from_ref_time(170_112 as u64).saturating_mul(x as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(s as u64)))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
||||
// Estimated: `18349`
|
||||
// Minimum execution time: 52_881 nanoseconds.
|
||||
Weight::from_parts(38_504_388, 18349)
|
||||
// Standard Error: 3_909
|
||||
.saturating_add(Weight::from_ref_time(51_452).saturating_mul(r.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(1_069_924).saturating_mul(s.into()))
|
||||
// Standard Error: 763
|
||||
.saturating_add(Weight::from_ref_time(164_906).saturating_mul(x.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 37_914 nanoseconds.
|
||||
Weight::from_ref_time(43_488_083 as u64)
|
||||
// Standard Error: 1_631
|
||||
.saturating_add(Weight::from_ref_time(118_845 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `507 + s * (36 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 24_556 nanoseconds.
|
||||
Weight::from_parts(28_641_160, 18335)
|
||||
// Standard Error: 1_327
|
||||
.saturating_add(Weight::from_ref_time(66_150).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 16_124 nanoseconds.
|
||||
Weight::from_ref_time(18_580_462 as u64)
|
||||
// Standard Error: 688
|
||||
.saturating_add(Weight::from_ref_time(67_220 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `623 + s * (3 ±0)`
|
||||
// Estimated: `12602`
|
||||
// Minimum execution time: 11_347 nanoseconds.
|
||||
Weight::from_parts(13_299_367, 12602)
|
||||
// Standard Error: 525
|
||||
.saturating_add(Weight::from_ref_time(16_472).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity IdentityOf (r:1 w:0)
|
||||
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[1, 100]`.
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 41_517 nanoseconds.
|
||||
Weight::from_ref_time(45_123_530 as u64)
|
||||
// Standard Error: 1_530
|
||||
.saturating_add(Weight::from_ref_time(105_429 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `702 + s * (35 ±0)`
|
||||
// Estimated: `18335`
|
||||
// Minimum execution time: 27_810 nanoseconds.
|
||||
Weight::from_parts(30_347_763, 18335)
|
||||
// Standard Error: 928
|
||||
.saturating_add(Weight::from_ref_time(55_342).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Storage: Identity SuperOf (r:1 w:1)
|
||||
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
||||
/// Storage: Identity SubsOf (r:1 w:1)
|
||||
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
||||
/// The range of component `s` is `[0, 99]`.
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
// Minimum execution time: 30_171 nanoseconds.
|
||||
Weight::from_ref_time(33_355_514 as u64)
|
||||
// Standard Error: 1_286
|
||||
.saturating_add(Weight::from_ref_time(114_716 as u64).saturating_mul(s as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `628 + s * (37 ±0)`
|
||||
// Estimated: `8322`
|
||||
// Minimum execution time: 17_601 nanoseconds.
|
||||
Weight::from_parts(19_794_971, 8322)
|
||||
// Standard Error: 934
|
||||
.saturating_add(Weight::from_ref_time(59_289).saturating_mul(s.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user