mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +00:00
Optimized weights (#10692)
* Add optimization flags to 'release' profile Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Optimized weights Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add missing pallets Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add `production` profile Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * pallet-collective: fix tests the weight of System.remark went to 0, the collective test uses a remark call to trigger an out-of-gas condition so I replaced it with a `remark_with_event` call. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
This commit is contained in:
committed by
GitHub
parent
8c6301a6e6
commit
9daea28085
@@ -272,6 +272,17 @@ wasmi = { opt-level = 3 }
|
||||
x25519-dalek = { opt-level = 3 }
|
||||
yamux = { opt-level = 3 }
|
||||
zeroize = { opt-level = 3 }
|
||||
|
||||
[profile.release]
|
||||
# Substrate runtime requires unwinding.
|
||||
panic = "unwind"
|
||||
|
||||
[profile.production]
|
||||
inherits = "release"
|
||||
|
||||
# Sacrifice compile speed for execution speed by using optimization flags:
|
||||
|
||||
# https://doc.rust-lang.org/rustc/linker-plugin-lto.html
|
||||
lto = "fat"
|
||||
# https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
|
||||
codegen-units = 1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_assets
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/assets/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -75,13 +76,13 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn create() -> Weight {
|
||||
(41_651_000 as Weight)
|
||||
(22_050_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_create() -> Weight {
|
||||
(21_378_000 as Weight)
|
||||
(11_673_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -92,12 +93,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Approvals (r:501 w:500)
|
||||
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 32_000
|
||||
.saturating_add((21_163_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 32_000
|
||||
.saturating_add((26_932_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 329_000
|
||||
.saturating_add((29_714_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((14_657_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((17_018_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 362_000
|
||||
.saturating_add((16_620_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -110,14 +111,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn mint() -> Weight {
|
||||
(47_913_000 as Weight)
|
||||
(26_254_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn burn() -> Weight {
|
||||
(55_759_000 as Weight)
|
||||
(30_407_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -125,7 +126,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
(83_205_000 as Weight)
|
||||
(44_220_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -133,7 +134,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
(70_665_000 as Weight)
|
||||
(36_910_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -141,93 +142,93 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_transfer() -> Weight {
|
||||
(81_458_000 as Weight)
|
||||
(44_330_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn freeze() -> Weight {
|
||||
(32_845_000 as Weight)
|
||||
(17_937_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn thaw() -> Weight {
|
||||
(33_303_000 as Weight)
|
||||
(18_224_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn freeze_asset() -> Weight {
|
||||
(23_434_000 as Weight)
|
||||
(14_875_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn thaw_asset() -> Weight {
|
||||
(24_173_000 as Weight)
|
||||
(14_792_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Metadata (r:1 w:0)
|
||||
fn transfer_ownership() -> Weight {
|
||||
(27_466_000 as Weight)
|
||||
(15_794_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn set_team() -> Weight {
|
||||
(24_608_000 as Weight)
|
||||
(14_702_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn set_metadata(n: u32, s: u32, ) -> Weight {
|
||||
(49_515_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((6_000 as Weight).saturating_mul(s as Weight))
|
||||
(27_368_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((4_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((4_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn clear_metadata() -> Weight {
|
||||
(48_163_000 as Weight)
|
||||
(28_222_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||
(26_722_000 as Weight)
|
||||
(15_139_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((5_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((3_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn force_clear_metadata() -> Weight {
|
||||
(47_923_000 as Weight)
|
||||
(28_065_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_asset_status() -> Weight {
|
||||
(23_081_000 as Weight)
|
||||
(13_808_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn approve_transfer() -> Weight {
|
||||
(56_998_000 as Weight)
|
||||
(31_261_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -236,21 +237,21 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_approved() -> Weight {
|
||||
(107_171_000 as Weight)
|
||||
(56_329_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn cancel_approval() -> Weight {
|
||||
(57_358_000 as Weight)
|
||||
(32_086_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn force_cancel_approval() -> Weight {
|
||||
(58_330_000 as Weight)
|
||||
(32_502_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -260,13 +261,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn create() -> Weight {
|
||||
(41_651_000 as Weight)
|
||||
(22_050_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_create() -> Weight {
|
||||
(21_378_000 as Weight)
|
||||
(11_673_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -277,12 +278,12 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Approvals (r:501 w:500)
|
||||
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 32_000
|
||||
.saturating_add((21_163_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 32_000
|
||||
.saturating_add((26_932_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 329_000
|
||||
.saturating_add((29_714_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((14_657_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((17_018_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 362_000
|
||||
.saturating_add((16_620_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -295,14 +296,14 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn mint() -> Weight {
|
||||
(47_913_000 as Weight)
|
||||
(26_254_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn burn() -> Weight {
|
||||
(55_759_000 as Weight)
|
||||
(30_407_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -310,7 +311,7 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
(83_205_000 as Weight)
|
||||
(44_220_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -318,7 +319,7 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
(70_665_000 as Weight)
|
||||
(36_910_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -326,93 +327,93 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_transfer() -> Weight {
|
||||
(81_458_000 as Weight)
|
||||
(44_330_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn freeze() -> Weight {
|
||||
(32_845_000 as Weight)
|
||||
(17_937_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Account (r:1 w:1)
|
||||
fn thaw() -> Weight {
|
||||
(33_303_000 as Weight)
|
||||
(18_224_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn freeze_asset() -> Weight {
|
||||
(23_434_000 as Weight)
|
||||
(14_875_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn thaw_asset() -> Weight {
|
||||
(24_173_000 as Weight)
|
||||
(14_792_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Metadata (r:1 w:0)
|
||||
fn transfer_ownership() -> Weight {
|
||||
(27_466_000 as Weight)
|
||||
(15_794_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn set_team() -> Weight {
|
||||
(24_608_000 as Weight)
|
||||
(14_702_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn set_metadata(n: u32, s: u32, ) -> Weight {
|
||||
(49_515_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((6_000 as Weight).saturating_mul(s as Weight))
|
||||
(27_368_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((4_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((4_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn clear_metadata() -> Weight {
|
||||
(48_163_000 as Weight)
|
||||
(28_222_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||
(26_722_000 as Weight)
|
||||
(15_139_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((5_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((3_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:0)
|
||||
// Storage: Assets Metadata (r:1 w:1)
|
||||
fn force_clear_metadata() -> Weight {
|
||||
(47_923_000 as Weight)
|
||||
(28_065_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
fn force_asset_status() -> Weight {
|
||||
(23_081_000 as Weight)
|
||||
(13_808_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn approve_transfer() -> Weight {
|
||||
(56_998_000 as Weight)
|
||||
(31_261_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -421,21 +422,21 @@ impl WeightInfo for () {
|
||||
// Storage: Assets Account (r:2 w:2)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_approved() -> Weight {
|
||||
(107_171_000 as Weight)
|
||||
(56_329_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn cancel_approval() -> Weight {
|
||||
(57_358_000 as Weight)
|
||||
(32_086_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Assets Asset (r:1 w:1)
|
||||
// Storage: Assets Approvals (r:1 w:1)
|
||||
fn force_cancel_approval() -> Weight {
|
||||
(58_330_000 as Weight)
|
||||
(32_502_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_bags_list
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-01-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -32,8 +32,10 @@
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/bags-list/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./weights-optimized/frame/bags-list/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -57,7 +59,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList ListNodes (r:4 w:4)
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
fn rebag_non_terminal() -> Weight {
|
||||
(62_060_000 as Weight)
|
||||
(50_222_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -66,7 +68,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebag_terminal() -> Weight {
|
||||
(60_585_000 as Weight)
|
||||
(47_975_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -76,7 +78,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
fn put_in_front_of() -> Weight {
|
||||
(69_779_000 as Weight)
|
||||
(55_539_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -89,7 +91,7 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList ListNodes (r:4 w:4)
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
fn rebag_non_terminal() -> Weight {
|
||||
(62_060_000 as Weight)
|
||||
(50_222_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -98,7 +100,7 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebag_terminal() -> Weight {
|
||||
(60_585_000 as Weight)
|
||||
(47_975_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -108,7 +110,7 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
fn put_in_front_of() -> Weight {
|
||||
(69_779_000 as Weight)
|
||||
(55_539_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_balances
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-09-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/balances/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -59,43 +60,43 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
(70_952_000 as Weight)
|
||||
(34_668_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
(54_410_000 as Weight)
|
||||
(26_826_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn set_balance_creating() -> Weight {
|
||||
(29_176_000 as Weight)
|
||||
(17_292_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn set_balance_killing() -> Weight {
|
||||
(35_214_000 as Weight)
|
||||
(19_988_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn force_transfer() -> Weight {
|
||||
(71_780_000 as Weight)
|
||||
(34_646_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_all() -> Weight {
|
||||
(66_475_000 as Weight)
|
||||
(32_040_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_unreserve() -> Weight {
|
||||
(27_766_000 as Weight)
|
||||
(15_743_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -105,43 +106,43 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
(70_952_000 as Weight)
|
||||
(34_668_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_keep_alive() -> Weight {
|
||||
(54_410_000 as Weight)
|
||||
(26_826_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn set_balance_creating() -> Weight {
|
||||
(29_176_000 as Weight)
|
||||
(17_292_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn set_balance_killing() -> Weight {
|
||||
(35_214_000 as Weight)
|
||||
(19_988_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn force_transfer() -> Weight {
|
||||
(71_780_000 as Weight)
|
||||
(34_646_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer_all() -> Weight {
|
||||
(66_475_000 as Weight)
|
||||
(32_040_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_unreserve() -> Weight {
|
||||
(27_766_000 as Weight)
|
||||
(15_743_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for frame_benchmarking
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-12-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,7 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/benchmarking/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -58,39 +60,37 @@ pub trait WeightInfo {
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn addition(_i: u32, ) -> Weight {
|
||||
(284_000 as Weight)
|
||||
(141_000 as Weight)
|
||||
}
|
||||
fn subtraction(_i: u32, ) -> Weight {
|
||||
(279_000 as Weight)
|
||||
(136_000 as Weight)
|
||||
}
|
||||
fn multiplication(_i: u32, ) -> Weight {
|
||||
(278_000 as Weight)
|
||||
(136_000 as Weight)
|
||||
}
|
||||
fn division(_i: u32, ) -> Weight {
|
||||
(274_000 as Weight)
|
||||
(134_000 as Weight)
|
||||
}
|
||||
fn hashing(i: u32, ) -> Weight {
|
||||
(33_441_957_000 as Weight)
|
||||
// Standard Error: 535_000
|
||||
.saturating_add((363_000 as Weight).saturating_mul(i as Weight))
|
||||
fn hashing(_i: u32, ) -> Weight {
|
||||
(21_681_881_000 as Weight)
|
||||
}
|
||||
fn sr25519_verification(i: u32, ) -> Weight {
|
||||
(26_000 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((48_151_000 as Weight).saturating_mul(i as Weight))
|
||||
(0 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((42_000_000 as Weight).saturating_mul(i as Weight))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn storage_read(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((2_694_000 as Weight).saturating_mul(i as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((1_984_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn storage_write(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((606_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add((363_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
}
|
||||
@@ -98,39 +98,37 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
fn addition(_i: u32, ) -> Weight {
|
||||
(284_000 as Weight)
|
||||
(141_000 as Weight)
|
||||
}
|
||||
fn subtraction(_i: u32, ) -> Weight {
|
||||
(279_000 as Weight)
|
||||
(136_000 as Weight)
|
||||
}
|
||||
fn multiplication(_i: u32, ) -> Weight {
|
||||
(278_000 as Weight)
|
||||
(136_000 as Weight)
|
||||
}
|
||||
fn division(_i: u32, ) -> Weight {
|
||||
(274_000 as Weight)
|
||||
(134_000 as Weight)
|
||||
}
|
||||
fn hashing(i: u32, ) -> Weight {
|
||||
(33_441_957_000 as Weight)
|
||||
// Standard Error: 535_000
|
||||
.saturating_add((363_000 as Weight).saturating_mul(i as Weight))
|
||||
fn hashing(_i: u32, ) -> Weight {
|
||||
(21_681_881_000 as Weight)
|
||||
}
|
||||
fn sr25519_verification(i: u32, ) -> Weight {
|
||||
(26_000 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((48_151_000 as Weight).saturating_mul(i as Weight))
|
||||
(0 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((42_000_000 as Weight).saturating_mul(i as Weight))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn storage_read(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((2_694_000 as Weight).saturating_mul(i as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((1_984_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn storage_write(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((606_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add((363_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,23 +18,24 @@
|
||||
//! Autogenerated weights for pallet_bounties
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-11-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet
|
||||
// pallet_bounties
|
||||
// --pallet=pallet_bounties
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/bounties/src/
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./frame/bounties/src/weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -66,7 +67,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
// Storage: Bounties Bounties (r:0 w:1)
|
||||
fn propose_bounty(d: u32, ) -> Weight {
|
||||
(58_161_000 as Weight)
|
||||
(23_165_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
@@ -75,34 +76,34 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
fn approve_bounty() -> Weight {
|
||||
(20_000_000 as Weight)
|
||||
(6_876_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
fn propose_curator() -> Weight {
|
||||
(14_000_000 as Weight)
|
||||
(5_718_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unassign_curator() -> Weight {
|
||||
(62_000_000 as Weight)
|
||||
(27_021_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn accept_curator() -> Weight {
|
||||
(55_000_000 as Weight)
|
||||
(20_933_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
fn award_bounty() -> Weight {
|
||||
(46_000_000 as Weight)
|
||||
(17_285_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -111,7 +112,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
fn claim_bounty() -> Weight {
|
||||
(185_000_000 as Weight)
|
||||
(61_264_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -120,7 +121,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
fn close_bounty_proposed() -> Weight {
|
||||
(82_000_000 as Weight)
|
||||
(28_218_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -129,13 +130,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
fn close_bounty_active() -> Weight {
|
||||
(137_000_000 as Weight)
|
||||
(45_577_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
fn extend_bounty_expiry() -> Weight {
|
||||
(33_000_000 as Weight)
|
||||
(14_983_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -144,8 +145,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn spend_funds(b: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 191_000
|
||||
.saturating_add((81_116_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((28_380_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(b as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -160,7 +161,7 @@ impl WeightInfo for () {
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
// Storage: Bounties Bounties (r:0 w:1)
|
||||
fn propose_bounty(d: u32, ) -> Weight {
|
||||
(58_161_000 as Weight)
|
||||
(23_165_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
@@ -169,34 +170,34 @@ impl WeightInfo for () {
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
fn approve_bounty() -> Weight {
|
||||
(20_000_000 as Weight)
|
||||
(6_876_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
fn propose_curator() -> Weight {
|
||||
(14_000_000 as Weight)
|
||||
(5_718_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unassign_curator() -> Weight {
|
||||
(62_000_000 as Weight)
|
||||
(27_021_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn accept_curator() -> Weight {
|
||||
(55_000_000 as Weight)
|
||||
(20_933_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
|
||||
fn award_bounty() -> Weight {
|
||||
(46_000_000 as Weight)
|
||||
(17_285_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -205,7 +206,7 @@ impl WeightInfo for () {
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
fn claim_bounty() -> Weight {
|
||||
(185_000_000 as Weight)
|
||||
(61_264_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -214,7 +215,7 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
fn close_bounty_proposed() -> Weight {
|
||||
(82_000_000 as Weight)
|
||||
(28_218_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -223,13 +224,13 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Bounties BountyDescriptions (r:0 w:1)
|
||||
fn close_bounty_active() -> Weight {
|
||||
(137_000_000 as Weight)
|
||||
(45_577_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:1)
|
||||
fn extend_bounty_expiry() -> Weight {
|
||||
(33_000_000 as Weight)
|
||||
(14_983_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -238,8 +239,8 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn spend_funds(b: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 191_000
|
||||
.saturating_add((81_116_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((28_380_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(b as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,23 +18,24 @@
|
||||
//! Autogenerated weights for pallet_child_bounties
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-12-03, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// ./target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet
|
||||
// pallet_child_bounties
|
||||
// --pallet=pallet_child_bounties
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/child-bounties/src/
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --output=./weights-optimized/frame/child-bounties/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -64,10 +65,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ChildBountyCount (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
// Storage: ChildBounties ChildBounties (r:0 w:1)
|
||||
fn add_child_bounty(d: u32, ) -> Weight {
|
||||
(113_579_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((4_000 as Weight).saturating_mul(d as Weight))
|
||||
fn add_child_bounty(_d: u32, ) -> Weight {
|
||||
(44_997_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -75,7 +74,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
fn propose_curator() -> Weight {
|
||||
(24_000_000 as Weight)
|
||||
(11_848_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -83,7 +82,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn accept_curator() -> Weight {
|
||||
(55_000_000 as Weight)
|
||||
(24_490_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -91,14 +90,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unassign_curator() -> Weight {
|
||||
(61_000_000 as Weight)
|
||||
(28_605_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
fn award_child_bounty() -> Weight {
|
||||
(42_000_000 as Weight)
|
||||
(19_471_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -107,7 +106,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
fn claim_child_bounty() -> Weight {
|
||||
(153_000_000 as Weight)
|
||||
(60_737_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -118,7 +117,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
fn close_child_bounty_added() -> Weight {
|
||||
(101_000_000 as Weight)
|
||||
(43_120_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -129,7 +128,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
fn close_child_bounty_active() -> Weight {
|
||||
(130_000_000 as Weight)
|
||||
(53_610_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
@@ -143,10 +142,8 @@ impl WeightInfo for () {
|
||||
// Storage: ChildBounties ChildBountyCount (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
// Storage: ChildBounties ChildBounties (r:0 w:1)
|
||||
fn add_child_bounty(d: u32, ) -> Weight {
|
||||
(113_579_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((4_000 as Weight).saturating_mul(d as Weight))
|
||||
fn add_child_bounty(_d: u32, ) -> Weight {
|
||||
(44_997_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -154,7 +151,7 @@ impl WeightInfo for () {
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
|
||||
fn propose_curator() -> Weight {
|
||||
(24_000_000 as Weight)
|
||||
(11_848_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -162,7 +159,7 @@ impl WeightInfo for () {
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn accept_curator() -> Weight {
|
||||
(55_000_000 as Weight)
|
||||
(24_490_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -170,14 +167,14 @@ impl WeightInfo for () {
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unassign_curator() -> Weight {
|
||||
(61_000_000 as Weight)
|
||||
(28_605_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Bounties Bounties (r:1 w:0)
|
||||
// Storage: ChildBounties ChildBounties (r:1 w:1)
|
||||
fn award_child_bounty() -> Weight {
|
||||
(42_000_000 as Weight)
|
||||
(19_471_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -186,7 +183,7 @@ impl WeightInfo for () {
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
fn claim_child_bounty() -> Weight {
|
||||
(153_000_000 as Weight)
|
||||
(60_737_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -197,7 +194,7 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
fn close_child_bounty_added() -> Weight {
|
||||
(101_000_000 as Weight)
|
||||
(43_120_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -208,7 +205,7 @@ impl WeightInfo for () {
|
||||
// Storage: ChildBounties ParentChildBounties (r:1 w:1)
|
||||
// Storage: ChildBounties ChildBountyDescriptions (r:0 w:1)
|
||||
fn close_child_bounty_active() -> Weight {
|
||||
(130_000_000 as Weight)
|
||||
(53_610_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
|
||||
@@ -175,7 +175,7 @@ pub fn new_test_ext() -> sp_io::TestExternalities {
|
||||
}
|
||||
|
||||
fn make_proposal(value: u64) -> Call {
|
||||
Call::System(frame_system::Call::remark { remark: value.encode() })
|
||||
Call::System(frame_system::Call::remark_with_event { remark: value.to_be_bytes().to_vec() })
|
||||
}
|
||||
|
||||
fn record(event: Event) -> EventRecord<Event, H256> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_collective
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/collective/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -60,132 +61,132 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_collective using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Instance1Collective Members (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Collective Voting (r:100 w:100)
|
||||
// Storage: Instance1Collective Prime (r:0 w:1)
|
||||
// Storage: Council Members (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((14_084_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((161_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((19_201_000 as Weight).saturating_mul(p as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((12_933_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((81_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((15_645_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(p as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
fn execute(b: u32, m: u32, ) -> Weight {
|
||||
(22_748_000 as Weight)
|
||||
(12_975_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((92_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((74_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:0)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:0)
|
||||
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
||||
(27_465_000 as Weight)
|
||||
(15_120_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((178_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((139_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective ProposalCount (r:1 w:1)
|
||||
// Storage: Instance1Collective Voting (r:0 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalCount (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(39_869_000 as Weight)
|
||||
(18_343_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((8_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((107_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((83_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((406_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((211_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
fn vote(m: u32, ) -> Weight {
|
||||
(37_387_000 as Weight)
|
||||
(26_675_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((223_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((166_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective ProposalOf (r:0 w:1)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
(45_670_000 as Weight)
|
||||
(28_535_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((170_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((123_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((358_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((154_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(52_529_000 as Weight)
|
||||
(27_235_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((7_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((6_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((206_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((158_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((412_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((201_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Prime (r:1 w:0)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective ProposalOf (r:0 w:1)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
(50_427_000 as Weight)
|
||||
(29_502_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((139_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((163_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(28_944_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((5_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((170_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((354_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Prime (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(57_031_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((7_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((208_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((408_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((208_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective Voting (r:0 w:1)
|
||||
// Storage: Instance1Collective ProposalOf (r:0 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
fn disapprove_proposal(p: u32, ) -> Weight {
|
||||
(27_458_000 as Weight)
|
||||
(16_215_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((402_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((212_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -193,132 +194,132 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Instance1Collective Members (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Collective Voting (r:100 w:100)
|
||||
// Storage: Instance1Collective Prime (r:0 w:1)
|
||||
// Storage: Council Members (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Voting (r:100 w:100)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((14_084_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((161_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((19_201_000 as Weight).saturating_mul(p as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((12_933_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((81_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((15_645_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(p as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
fn execute(b: u32, m: u32, ) -> Weight {
|
||||
(22_748_000 as Weight)
|
||||
(12_975_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((92_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((74_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:0)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:0)
|
||||
fn propose_execute(b: u32, m: u32, ) -> Weight {
|
||||
(27_465_000 as Weight)
|
||||
(15_120_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((178_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((139_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective ProposalCount (r:1 w:1)
|
||||
// Storage: Instance1Collective Voting (r:0 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalCount (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(39_869_000 as Weight)
|
||||
(18_343_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((8_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((107_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((83_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((406_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((211_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
fn vote(m: u32, ) -> Weight {
|
||||
(37_387_000 as Weight)
|
||||
(26_675_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((223_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((166_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective ProposalOf (r:0 w:1)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
(45_670_000 as Weight)
|
||||
(28_535_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((170_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((123_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((358_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((154_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(52_529_000 as Weight)
|
||||
(27_235_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((7_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((6_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((206_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((158_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((412_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((201_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Prime (r:1 w:0)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective ProposalOf (r:0 w:1)
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
fn close_disapproved(m: u32, p: u32, ) -> Weight {
|
||||
(50_427_000 as Weight)
|
||||
(29_502_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((139_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((163_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Council Voting (r:1 w:1)
|
||||
// Storage: Council Members (r:1 w:0)
|
||||
// Storage: Council Prime (r:1 w:0)
|
||||
// Storage: Council ProposalOf (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(28_944_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((5_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((170_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((354_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Voting (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:1 w:0)
|
||||
// Storage: Instance1Collective Prime (r:1 w:0)
|
||||
// Storage: Instance1Collective ProposalOf (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
|
||||
(57_031_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((7_000 as Weight).saturating_mul(b as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((208_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((408_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((208_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Collective Proposals (r:1 w:1)
|
||||
// Storage: Instance1Collective Voting (r:0 w:1)
|
||||
// Storage: Instance1Collective ProposalOf (r:0 w:1)
|
||||
// Storage: Council Proposals (r:1 w:1)
|
||||
// Storage: Council Voting (r:0 w:1)
|
||||
// Storage: Council ProposalOf (r:0 w:1)
|
||||
fn disapprove_proposal(p: u32, ) -> Weight {
|
||||
(27_458_000 as Weight)
|
||||
(16_215_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((402_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((212_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_democracy
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-09-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/democracy/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -81,15 +82,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy Blacklist (r:1 w:0)
|
||||
// Storage: Democracy DepositOf (r:0 w:1)
|
||||
fn propose() -> Weight {
|
||||
(67_388_000 as Weight)
|
||||
(42_599_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy DepositOf (r:1 w:1)
|
||||
fn second(s: u32, ) -> Weight {
|
||||
(41_157_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((157_000 as Weight).saturating_mul(s as Weight))
|
||||
(25_521_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((171_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -97,9 +98,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_new(r: u32, ) -> Weight {
|
||||
(46_406_000 as Weight)
|
||||
(34_035_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((170_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((142_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -107,16 +108,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_existing(r: u32, ) -> Weight {
|
||||
(46_071_000 as Weight)
|
||||
(33_910_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((166_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((147_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Democracy Cancellations (r:1 w:1)
|
||||
fn emergency_cancel() -> Weight {
|
||||
(27_699_000 as Weight)
|
||||
(14_874_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -127,16 +128,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy DepositOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn blacklist(p: u32, ) -> Weight {
|
||||
(82_703_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((500_000 as Weight).saturating_mul(p as Weight))
|
||||
(49_557_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((267_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:1 w:1)
|
||||
// Storage: Democracy Blacklist (r:1 w:0)
|
||||
fn external_propose(v: u32, ) -> Weight {
|
||||
(13_747_000 as Weight)
|
||||
(7_540_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((76_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
@@ -144,28 +145,28 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:0 w:1)
|
||||
fn external_propose_majority() -> Weight {
|
||||
(3_070_000 as Weight)
|
||||
(1_272_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:0 w:1)
|
||||
fn external_propose_default() -> Weight {
|
||||
(3_080_000 as Weight)
|
||||
(1_274_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:1 w:1)
|
||||
// Storage: Democracy ReferendumCount (r:1 w:1)
|
||||
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
fn fast_track() -> Weight {
|
||||
(29_129_000 as Weight)
|
||||
(15_216_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:1 w:1)
|
||||
// Storage: Democracy Blacklist (r:1 w:1)
|
||||
fn veto_external(v: u32, ) -> Weight {
|
||||
(30_105_000 as Weight)
|
||||
(16_713_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((104_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((92_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -173,56 +174,58 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy DepositOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn cancel_proposal(p: u32, ) -> Weight {
|
||||
(55_228_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((457_000 as Weight).saturating_mul(p as Weight))
|
||||
(37_990_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((259_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
fn cancel_referendum() -> Weight {
|
||||
(17_319_000 as Weight)
|
||||
(9_756_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn cancel_queued(r: u32, ) -> Weight {
|
||||
(29_738_000 as Weight)
|
||||
(19_408_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_153_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((650_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:0)
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:1)
|
||||
// Storage: Democracy ReferendumCount (r:1 w:0)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
||||
fn on_initialize_base(r: u32, ) -> Weight {
|
||||
(2_165_000 as Weight)
|
||||
(2_134_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((5_577_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((3_041_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:0)
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:1)
|
||||
// Storage: Democracy ReferendumCount (r:1 w:0)
|
||||
// Storage: Democracy LastTabledWasExternal (r:1 w:0)
|
||||
// Storage: Democracy NextExternal (r:1 w:0)
|
||||
// Storage: Democracy PublicProps (r:1 w:0)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
||||
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
|
||||
(9_396_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_604_000 as Weight).saturating_mul(r as Weight))
|
||||
(6_357_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_054_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy VotingOf (r:3 w:3)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
(57_783_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((7_623_000 as Weight).saturating_mul(r as Weight))
|
||||
(30_822_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_826_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
@@ -231,9 +234,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy VotingOf (r:2 w:2)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
(26_027_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((7_593_000 as Weight).saturating_mul(r as Weight))
|
||||
(15_307_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_827_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -241,12 +244,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
}
|
||||
// Storage: Democracy PublicProps (r:0 w:1)
|
||||
fn clear_public_proposals() -> Weight {
|
||||
(2_780_000 as Weight)
|
||||
(1_624_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy Preimages (r:1 w:1)
|
||||
fn note_preimage(b: u32, ) -> Weight {
|
||||
(46_416_000 as Weight)
|
||||
(22_731_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
@@ -254,7 +257,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
}
|
||||
// Storage: Democracy Preimages (r:1 w:1)
|
||||
fn note_imminent_preimage(b: u32, ) -> Weight {
|
||||
(29_735_000 as Weight)
|
||||
(15_518_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
@@ -263,7 +266,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Democracy Preimages (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:0)
|
||||
fn reap_preimage(b: u32, ) -> Weight {
|
||||
(41_276_000 as Weight)
|
||||
(23_749_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
@@ -273,9 +276,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unlock_remove(r: u32, ) -> Weight {
|
||||
(40_348_000 as Weight)
|
||||
(21_818_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((60_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((66_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -283,27 +286,27 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unlock_set(r: u32, ) -> Weight {
|
||||
(37_475_000 as Weight)
|
||||
(21_491_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((151_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((121_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
fn remove_vote(r: u32, ) -> Weight {
|
||||
(19_970_000 as Weight)
|
||||
(11_767_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((153_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((115_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
fn remove_other_vote(r: u32, ) -> Weight {
|
||||
(20_094_000 as Weight)
|
||||
(11_959_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((157_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((111_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -316,15 +319,15 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy Blacklist (r:1 w:0)
|
||||
// Storage: Democracy DepositOf (r:0 w:1)
|
||||
fn propose() -> Weight {
|
||||
(67_388_000 as Weight)
|
||||
(42_599_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy DepositOf (r:1 w:1)
|
||||
fn second(s: u32, ) -> Weight {
|
||||
(41_157_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((157_000 as Weight).saturating_mul(s as Weight))
|
||||
(25_521_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((171_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -332,9 +335,9 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_new(r: u32, ) -> Weight {
|
||||
(46_406_000 as Weight)
|
||||
(34_035_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((170_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((142_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -342,16 +345,16 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_existing(r: u32, ) -> Weight {
|
||||
(46_071_000 as Weight)
|
||||
(33_910_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((166_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((147_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Democracy Cancellations (r:1 w:1)
|
||||
fn emergency_cancel() -> Weight {
|
||||
(27_699_000 as Weight)
|
||||
(14_874_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -362,16 +365,16 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy DepositOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn blacklist(p: u32, ) -> Weight {
|
||||
(82_703_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((500_000 as Weight).saturating_mul(p as Weight))
|
||||
(49_557_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((267_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:1 w:1)
|
||||
// Storage: Democracy Blacklist (r:1 w:0)
|
||||
fn external_propose(v: u32, ) -> Weight {
|
||||
(13_747_000 as Weight)
|
||||
(7_540_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((76_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
@@ -379,28 +382,28 @@ impl WeightInfo for () {
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:0 w:1)
|
||||
fn external_propose_majority() -> Weight {
|
||||
(3_070_000 as Weight)
|
||||
(1_272_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:0 w:1)
|
||||
fn external_propose_default() -> Weight {
|
||||
(3_080_000 as Weight)
|
||||
(1_274_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:1 w:1)
|
||||
// Storage: Democracy ReferendumCount (r:1 w:1)
|
||||
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
fn fast_track() -> Weight {
|
||||
(29_129_000 as Weight)
|
||||
(15_216_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy NextExternal (r:1 w:1)
|
||||
// Storage: Democracy Blacklist (r:1 w:1)
|
||||
fn veto_external(v: u32, ) -> Weight {
|
||||
(30_105_000 as Weight)
|
||||
(16_713_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((104_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((92_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -408,56 +411,58 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy DepositOf (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn cancel_proposal(p: u32, ) -> Weight {
|
||||
(55_228_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((457_000 as Weight).saturating_mul(p as Weight))
|
||||
(37_990_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((259_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
|
||||
fn cancel_referendum() -> Weight {
|
||||
(17_319_000 as Weight)
|
||||
(9_756_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn cancel_queued(r: u32, ) -> Weight {
|
||||
(29_738_000 as Weight)
|
||||
(19_408_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_153_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((650_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:0)
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:1)
|
||||
// Storage: Democracy ReferendumCount (r:1 w:0)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
||||
fn on_initialize_base(r: u32, ) -> Weight {
|
||||
(2_165_000 as Weight)
|
||||
(2_134_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((5_577_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((3_041_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:0)
|
||||
// Storage: Democracy LowestUnbaked (r:1 w:1)
|
||||
// Storage: Democracy ReferendumCount (r:1 w:0)
|
||||
// Storage: Democracy LastTabledWasExternal (r:1 w:0)
|
||||
// Storage: Democracy NextExternal (r:1 w:0)
|
||||
// Storage: Democracy PublicProps (r:1 w:0)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:0)
|
||||
fn on_initialize_base_with_launch_period(r: u32, ) -> Weight {
|
||||
(9_396_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_604_000 as Weight).saturating_mul(r as Weight))
|
||||
(6_357_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_054_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy VotingOf (r:3 w:3)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
(57_783_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((7_623_000 as Weight).saturating_mul(r as Weight))
|
||||
(30_822_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_826_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
@@ -466,9 +471,9 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy VotingOf (r:2 w:2)
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
(26_027_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((7_593_000 as Weight).saturating_mul(r as Weight))
|
||||
(15_307_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_827_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
@@ -476,12 +481,12 @@ impl WeightInfo for () {
|
||||
}
|
||||
// Storage: Democracy PublicProps (r:0 w:1)
|
||||
fn clear_public_proposals() -> Weight {
|
||||
(2_780_000 as Weight)
|
||||
(1_624_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Democracy Preimages (r:1 w:1)
|
||||
fn note_preimage(b: u32, ) -> Weight {
|
||||
(46_416_000 as Weight)
|
||||
(22_731_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
@@ -489,7 +494,7 @@ impl WeightInfo for () {
|
||||
}
|
||||
// Storage: Democracy Preimages (r:1 w:1)
|
||||
fn note_imminent_preimage(b: u32, ) -> Weight {
|
||||
(29_735_000 as Weight)
|
||||
(15_518_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
@@ -498,7 +503,7 @@ impl WeightInfo for () {
|
||||
// Storage: Democracy Preimages (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:0)
|
||||
fn reap_preimage(b: u32, ) -> Weight {
|
||||
(41_276_000 as Weight)
|
||||
(23_749_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
@@ -508,9 +513,9 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unlock_remove(r: u32, ) -> Weight {
|
||||
(40_348_000 as Weight)
|
||||
(21_818_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((60_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((66_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -518,27 +523,27 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unlock_set(r: u32, ) -> Weight {
|
||||
(37_475_000 as Weight)
|
||||
(21_491_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((151_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((121_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
fn remove_vote(r: u32, ) -> Weight {
|
||||
(19_970_000 as Weight)
|
||||
(11_767_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((153_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((115_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Democracy ReferendumInfoOf (r:1 w:1)
|
||||
// Storage: Democracy VotingOf (r:1 w:1)
|
||||
fn remove_other_vote(r: u32, ) -> Weight {
|
||||
(20_094_000 as Weight)
|
||||
(11_959_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((157_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add((111_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_election_provider_multi_phase
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-09-22, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -32,9 +32,10 @@
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/election-provider-multi-phase/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --output=./weights-optimized/frame/election-provider-multi-phase/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -69,33 +70,33 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking ForceEra (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
(22_784_000 as Weight)
|
||||
(12_360_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
(32_763_000 as Weight)
|
||||
(12_981_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
(29_117_000 as Weight)
|
||||
(12_684_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
(48_996_000 as Weight)
|
||||
(27_272_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn finalize_signed_phase_reject_solution() -> Weight {
|
||||
(32_508_000 as Weight)
|
||||
(20_798_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -103,11 +104,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight {
|
||||
(96_001_000 as Weight)
|
||||
(13_760_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((307_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((133_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((201_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((49_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
@@ -120,11 +121,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
fn elect_queued(a: u32, d: u32, ) -> Weight {
|
||||
(100_505_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((1_665_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((443_000 as Weight).saturating_mul(d as Weight))
|
||||
(108_461_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((1_318_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((194_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -135,9 +136,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
fn submit(c: u32, ) -> Weight {
|
||||
(74_088_000 as Weight)
|
||||
// Standard Error: 59_000
|
||||
.saturating_add((187_000 as Weight).saturating_mul(c as Weight))
|
||||
(39_721_000 as Weight)
|
||||
// Standard Error: 24_000
|
||||
.saturating_add((298_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -150,14 +151,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((1_970_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((173_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 18_000
|
||||
.saturating_add((9_783_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((2_224_000 as Weight).saturating_mul(d as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((1_612_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((105_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((7_024_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 20_000
|
||||
.saturating_add((1_361_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -167,14 +168,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((1_910_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((111_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_639_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((138_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((5_665_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((7_741_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 19_000
|
||||
.saturating_add((1_844_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add((980_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
}
|
||||
}
|
||||
@@ -190,33 +191,33 @@ impl WeightInfo for () {
|
||||
// Storage: Staking ForceEra (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
|
||||
fn on_initialize_nothing() -> Weight {
|
||||
(22_784_000 as Weight)
|
||||
(12_360_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(8 as Weight))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
fn on_initialize_open_signed() -> Weight {
|
||||
(32_763_000 as Weight)
|
||||
(12_981_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
fn on_initialize_open_unsigned() -> Weight {
|
||||
(29_117_000 as Weight)
|
||||
(12_684_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
|
||||
fn finalize_signed_phase_accept_solution() -> Weight {
|
||||
(48_996_000 as Weight)
|
||||
(27_272_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn finalize_signed_phase_reject_solution() -> Weight {
|
||||
(32_508_000 as Weight)
|
||||
(20_798_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -224,11 +225,11 @@ impl WeightInfo for () {
|
||||
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight {
|
||||
(96_001_000 as Weight)
|
||||
(13_760_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((307_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((133_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((201_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((49_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
|
||||
@@ -241,11 +242,11 @@ impl WeightInfo for () {
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
|
||||
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
|
||||
fn elect_queued(a: u32, d: u32, ) -> Weight {
|
||||
(100_505_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((1_665_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((443_000 as Weight).saturating_mul(d as Weight))
|
||||
(108_461_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((1_318_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((194_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -256,9 +257,9 @@ impl WeightInfo for () {
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
|
||||
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
|
||||
fn submit(c: u32, ) -> Weight {
|
||||
(74_088_000 as Weight)
|
||||
// Standard Error: 59_000
|
||||
.saturating_add((187_000 as Weight).saturating_mul(c as Weight))
|
||||
(39_721_000 as Weight)
|
||||
// Standard Error: 24_000
|
||||
.saturating_add((298_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -271,14 +272,14 @@ impl WeightInfo for () {
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((1_970_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((173_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 18_000
|
||||
.saturating_add((9_783_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((2_224_000 as Weight).saturating_mul(d as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((1_612_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((105_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((7_024_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 20_000
|
||||
.saturating_add((1_361_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -288,14 +289,14 @@ impl WeightInfo for () {
|
||||
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
|
||||
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((1_910_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((111_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_639_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((138_000 as Weight).saturating_mul(t as Weight))
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((5_665_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((7_741_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 19_000
|
||||
.saturating_add((1_844_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add((980_000 as Weight).saturating_mul(d as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_elections_phragmen
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -32,9 +32,10 @@
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/elections-phragmen/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --output=./weights-optimized/frame/elections-phragmen/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -53,8 +54,8 @@ pub trait WeightInfo {
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight;
|
||||
fn renounce_candidacy_members() -> Weight;
|
||||
fn renounce_candidacy_runners_up() -> Weight;
|
||||
fn remove_member_with_replacement() -> Weight;
|
||||
fn remove_member_without_replacement() -> Weight;
|
||||
fn remove_member_with_replacement() -> Weight;
|
||||
fn remove_member_wrong_refund() -> Weight;
|
||||
fn clean_defunct_voters(v: u32, d: u32, ) -> Weight;
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight;
|
||||
@@ -69,9 +70,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
(42_509_000 as Weight)
|
||||
(24_231_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((372_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((305_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -81,9 +82,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
(65_311_000 as Weight)
|
||||
(37_524_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((419_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((285_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -93,16 +94,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
(65_444_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((376_000 as Weight).saturating_mul(v as Weight))
|
||||
(37_350_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((311_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn remove_voter() -> Weight {
|
||||
(61_585_000 as Weight)
|
||||
(35_119_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -110,53 +111,54 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
(53_333_000 as Weight)
|
||||
(36_110_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((267_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add((193_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
(49_128_000 as Weight)
|
||||
(30_976_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((144_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add((129_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Instance1Collective Prime (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Collective Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
fn renounce_candidacy_members() -> Weight {
|
||||
(70_685_000 as Weight)
|
||||
(44_456_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
fn renounce_candidacy_runners_up() -> Weight {
|
||||
(49_766_000 as Weight)
|
||||
(31_990_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Benchmark Override (r:0 w:0)
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
(2_000_000_000_000 as Weight)
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Instance1Collective Prime (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Collective Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
fn remove_member_with_replacement() -> Weight {
|
||||
(76_153_000 as Weight)
|
||||
(51_221_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
T::BlockWeights::get().max_block
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
fn remove_member_wrong_refund() -> Weight {
|
||||
(6_697_000 as Weight)
|
||||
(4_773_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Elections Voting (r:251 w:250)
|
||||
@@ -167,8 +169,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:250 w:250)
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 60_000
|
||||
.saturating_add((107_467_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 31_000
|
||||
.saturating_add((51_744_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight)))
|
||||
@@ -177,19 +179,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Elections Voting (r:502 w:0)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Elections ElectionRounds (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:0 w:1)
|
||||
// Storage: Instance1Collective Prime (r:0 w:1)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 1_846_000
|
||||
.saturating_add((39_843_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 768_000
|
||||
.saturating_add((60_623_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 52_000
|
||||
.saturating_add((3_884_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 1_744_000
|
||||
.saturating_add((29_677_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 725_000
|
||||
.saturating_add((51_480_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 49_000
|
||||
.saturating_add((3_491_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
|
||||
@@ -204,9 +206,9 @@ impl WeightInfo for () {
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_equal(v: u32, ) -> Weight {
|
||||
(42_509_000 as Weight)
|
||||
(24_231_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((372_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((305_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -216,9 +218,9 @@ impl WeightInfo for () {
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_more(v: u32, ) -> Weight {
|
||||
(65_311_000 as Weight)
|
||||
(37_524_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((419_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((285_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -228,16 +230,16 @@ impl WeightInfo for () {
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vote_less(v: u32, ) -> Weight {
|
||||
(65_444_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((376_000 as Weight).saturating_mul(v as Weight))
|
||||
(37_350_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((311_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Voting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn remove_voter() -> Weight {
|
||||
(61_585_000 as Weight)
|
||||
(35_119_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -245,55 +247,54 @@ impl WeightInfo for () {
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
fn submit_candidacy(c: u32, ) -> Weight {
|
||||
(53_333_000 as Weight)
|
||||
(36_110_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((267_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add((193_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Elections Candidates (r:1 w:1)
|
||||
fn renounce_candidacy_candidate(c: u32, ) -> Weight {
|
||||
(49_128_000 as Weight)
|
||||
(30_976_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((144_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add((129_000 as Weight).saturating_mul(c as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Instance1Collective Prime (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Collective Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
fn renounce_candidacy_members() -> Weight {
|
||||
(70_685_000 as Weight)
|
||||
(44_456_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
fn renounce_candidacy_runners_up() -> Weight {
|
||||
(49_766_000 as Weight)
|
||||
(31_990_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Benchmark Override (r:0 w:0)
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
(2_000_000_000_000 as Weight)
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Instance1Collective Prime (r:1 w:1)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Collective Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:1 w:1)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
fn remove_member_with_replacement() -> Weight {
|
||||
(76_153_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
fn remove_member_without_replacement() -> Weight {
|
||||
(76_153_000 as Weight)
|
||||
(51_221_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
// Storage: Elections RunnersUp (r:1 w:0)
|
||||
fn remove_member_wrong_refund() -> Weight {
|
||||
(6_697_000 as Weight)
|
||||
(4_773_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Elections Voting (r:251 w:250)
|
||||
@@ -304,8 +305,8 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:250 w:250)
|
||||
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 60_000
|
||||
.saturating_add((107_467_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 31_000
|
||||
.saturating_add((51_744_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(v as Weight)))
|
||||
@@ -314,19 +315,19 @@ impl WeightInfo for () {
|
||||
// Storage: Elections Members (r:1 w:1)
|
||||
// Storage: Elections RunnersUp (r:1 w:1)
|
||||
// Storage: Elections Voting (r:502 w:0)
|
||||
// Storage: Instance1Collective Proposals (r:1 w:0)
|
||||
// Storage: Council Proposals (r:1 w:0)
|
||||
// Storage: Elections ElectionRounds (r:1 w:1)
|
||||
// Storage: Instance1Collective Members (r:0 w:1)
|
||||
// Storage: Instance1Collective Prime (r:0 w:1)
|
||||
// Storage: Council Members (r:0 w:1)
|
||||
// Storage: Council Prime (r:0 w:1)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn election_phragmen(c: u32, v: u32, e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 1_846_000
|
||||
.saturating_add((39_843_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 768_000
|
||||
.saturating_add((60_623_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 52_000
|
||||
.saturating_add((3_884_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 1_744_000
|
||||
.saturating_add((29_677_000 as Weight).saturating_mul(c as Weight))
|
||||
// Standard Error: 725_000
|
||||
.saturating_add((51_480_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 49_000
|
||||
.saturating_add((3_491_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_gilt
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/gilt/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -61,44 +62,44 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt QueueTotals (r:1 w:1)
|
||||
fn place_bid(l: u32, ) -> Weight {
|
||||
(59_219_000 as Weight)
|
||||
(32_876_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((156_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((97_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt QueueTotals (r:1 w:1)
|
||||
fn place_bid_max() -> Weight {
|
||||
(184_943_000 as Weight)
|
||||
(125_854_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt QueueTotals (r:1 w:1)
|
||||
fn retract_bid(l: u32, ) -> Weight {
|
||||
(59_352_000 as Weight)
|
||||
(33_643_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((129_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((88_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt ActiveTotal (r:1 w:1)
|
||||
fn set_target() -> Weight {
|
||||
(5_444_000 as Weight)
|
||||
(2_570_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Gilt Active (r:1 w:1)
|
||||
// Storage: Gilt ActiveTotal (r:1 w:1)
|
||||
fn thaw() -> Weight {
|
||||
(71_399_000 as Weight)
|
||||
(40_854_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt ActiveTotal (r:1 w:0)
|
||||
fn pursue_target_noop() -> Weight {
|
||||
(3_044_000 as Weight)
|
||||
(1_598_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Gilt ActiveTotal (r:1 w:1)
|
||||
@@ -106,9 +107,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt Active (r:0 w:1)
|
||||
fn pursue_target_per_item(b: u32, ) -> Weight {
|
||||
(54_478_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((10_150_000 as Weight).saturating_mul(b as Weight))
|
||||
(34_848_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((3_951_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))
|
||||
@@ -118,9 +119,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt Active (r:0 w:1)
|
||||
fn pursue_target_per_queue(q: u32, ) -> Weight {
|
||||
(20_099_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((16_603_000 as Weight).saturating_mul(q as Weight))
|
||||
(9_735_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((7_873_000 as Weight).saturating_mul(q as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(q as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -133,44 +134,44 @@ impl WeightInfo for () {
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt QueueTotals (r:1 w:1)
|
||||
fn place_bid(l: u32, ) -> Weight {
|
||||
(59_219_000 as Weight)
|
||||
(32_876_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((156_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((97_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt QueueTotals (r:1 w:1)
|
||||
fn place_bid_max() -> Weight {
|
||||
(184_943_000 as Weight)
|
||||
(125_854_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt QueueTotals (r:1 w:1)
|
||||
fn retract_bid(l: u32, ) -> Weight {
|
||||
(59_352_000 as Weight)
|
||||
(33_643_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((129_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((88_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt ActiveTotal (r:1 w:1)
|
||||
fn set_target() -> Weight {
|
||||
(5_444_000 as Weight)
|
||||
(2_570_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Gilt Active (r:1 w:1)
|
||||
// Storage: Gilt ActiveTotal (r:1 w:1)
|
||||
fn thaw() -> Weight {
|
||||
(71_399_000 as Weight)
|
||||
(40_854_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Gilt ActiveTotal (r:1 w:0)
|
||||
fn pursue_target_noop() -> Weight {
|
||||
(3_044_000 as Weight)
|
||||
(1_598_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Gilt ActiveTotal (r:1 w:1)
|
||||
@@ -178,9 +179,9 @@ impl WeightInfo for () {
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt Active (r:0 w:1)
|
||||
fn pursue_target_per_item(b: u32, ) -> Weight {
|
||||
(54_478_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((10_150_000 as Weight).saturating_mul(b as Weight))
|
||||
(34_848_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((3_951_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(b as Weight)))
|
||||
@@ -190,9 +191,9 @@ impl WeightInfo for () {
|
||||
// Storage: Gilt Queues (r:1 w:1)
|
||||
// Storage: Gilt Active (r:0 w:1)
|
||||
fn pursue_target_per_queue(q: u32, ) -> Weight {
|
||||
(20_099_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((16_603_000 as Weight).saturating_mul(q as Weight))
|
||||
(9_735_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((7_873_000 as Weight).saturating_mul(q as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(q as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_identity
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-11-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,7 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/identity/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -67,19 +69,19 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
(19_176_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((313_000 as Weight).saturating_mul(r as Weight))
|
||||
(12_513_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((257_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
(44_668_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((244_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((811_000 as Weight).saturating_mul(x as Weight))
|
||||
(27_904_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((215_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((294_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -87,9 +89,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
(38_917_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((5_331_000 as Weight).saturating_mul(s as Weight))
|
||||
(24_530_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_914_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -99,9 +101,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:1)
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
(36_057_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_756_000 as Weight).saturating_mul(p as Weight))
|
||||
(23_957_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((954_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
||||
@@ -110,13 +112,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
(44_348_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((183_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_724_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((439_000 as Weight).saturating_mul(x as Weight))
|
||||
(31_213_000 as Weight)
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((99_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((931_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((188_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -124,56 +126,56 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
(46_592_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((321_000 as Weight).saturating_mul(r as Weight))
|
||||
(30_691_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((269_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((858_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add((338_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
(43_556_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((174_000 as Weight).saturating_mul(r as Weight))
|
||||
(27_356_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((179_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((850_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add((335_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
(7_971_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((283_000 as Weight).saturating_mul(r as Weight))
|
||||
(4_761_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((202_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
(8_234_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((280_000 as Weight).saturating_mul(r as Weight))
|
||||
(4_801_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((211_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
(8_126_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((275_000 as Weight).saturating_mul(r as Weight))
|
||||
(4_756_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((204_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
(30_949_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((286_000 as Weight).saturating_mul(r as Weight))
|
||||
(21_047_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((246_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((856_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add((341_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -182,11 +184,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
fn kill_identity(r: u32, s: u32, _x: u32, ) -> Weight {
|
||||
(63_792_000 as Weight)
|
||||
// Standard Error: 11_000
|
||||
.saturating_add((242_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_738_000 as Weight).saturating_mul(s as Weight))
|
||||
(41_324_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((192_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((951_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -195,18 +197,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
(48_751_000 as Weight)
|
||||
(31_405_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((193_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((160_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
(15_892_000 as Weight)
|
||||
(10_622_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((49_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((47_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -214,18 +216,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
(49_746_000 as Weight)
|
||||
(32_765_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((181_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((158_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
(32_286_000 as Weight)
|
||||
(21_925_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((166_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((156_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -235,19 +237,19 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn add_registrar(r: u32, ) -> Weight {
|
||||
(19_176_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((313_000 as Weight).saturating_mul(r as Weight))
|
||||
(12_513_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((257_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn set_identity(r: u32, x: u32, ) -> Weight {
|
||||
(44_668_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((244_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((811_000 as Weight).saturating_mul(x as Weight))
|
||||
(27_904_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((215_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((294_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -255,9 +257,9 @@ impl WeightInfo for () {
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
fn set_subs_new(s: u32, ) -> Weight {
|
||||
(38_917_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((5_331_000 as Weight).saturating_mul(s as Weight))
|
||||
(24_530_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_914_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -267,9 +269,9 @@ impl WeightInfo for () {
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:1)
|
||||
fn set_subs_old(p: u32, ) -> Weight {
|
||||
(36_057_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_756_000 as Weight).saturating_mul(p as Weight))
|
||||
(23_957_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((954_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
||||
@@ -278,13 +280,13 @@ impl WeightInfo for () {
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
||||
(44_348_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((183_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_724_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((439_000 as Weight).saturating_mul(x as Weight))
|
||||
(31_213_000 as Weight)
|
||||
// Standard Error: 8_000
|
||||
.saturating_add((99_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((931_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((188_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -292,56 +294,56 @@ impl WeightInfo for () {
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
||||
(46_592_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((321_000 as Weight).saturating_mul(r as Weight))
|
||||
(30_691_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((269_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((858_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add((338_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
||||
(43_556_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((174_000 as Weight).saturating_mul(r as Weight))
|
||||
(27_356_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((179_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((850_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add((335_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn set_fee(r: u32, ) -> Weight {
|
||||
(7_971_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((283_000 as Weight).saturating_mul(r as Weight))
|
||||
(4_761_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((202_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn set_account_id(r: u32, ) -> Weight {
|
||||
(8_234_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((280_000 as Weight).saturating_mul(r as Weight))
|
||||
(4_801_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((211_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:1)
|
||||
fn set_fields(r: u32, ) -> Weight {
|
||||
(8_126_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((275_000 as Weight).saturating_mul(r as Weight))
|
||||
(4_756_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((204_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Identity Registrars (r:1 w:0)
|
||||
// Storage: Identity IdentityOf (r:1 w:1)
|
||||
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
||||
(30_949_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((286_000 as Weight).saturating_mul(r as Weight))
|
||||
(21_047_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((246_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((856_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add((341_000 as Weight).saturating_mul(x as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -350,11 +352,11 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Identity SuperOf (r:0 w:100)
|
||||
fn kill_identity(r: u32, s: u32, _x: u32, ) -> Weight {
|
||||
(63_792_000 as Weight)
|
||||
// Standard Error: 11_000
|
||||
.saturating_add((242_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_738_000 as Weight).saturating_mul(s as Weight))
|
||||
(41_324_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((192_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((951_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -363,18 +365,18 @@ impl WeightInfo for () {
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
fn add_sub(s: u32, ) -> Weight {
|
||||
(48_751_000 as Weight)
|
||||
(31_405_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((193_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((160_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Identity IdentityOf (r:1 w:0)
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
fn rename_sub(s: u32, ) -> Weight {
|
||||
(15_892_000 as Weight)
|
||||
(10_622_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((49_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((47_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -382,18 +384,18 @@ impl WeightInfo for () {
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
fn remove_sub(s: u32, ) -> Weight {
|
||||
(49_746_000 as Weight)
|
||||
(32_765_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((181_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((158_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Identity SuperOf (r:1 w:1)
|
||||
// Storage: Identity SubsOf (r:1 w:1)
|
||||
fn quit_sub(s: u32, ) -> Weight {
|
||||
(32_286_000 as Weight)
|
||||
(21_925_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((166_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((156_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_im_online
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -32,9 +32,10 @@
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/im-online/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --output=./weights-optimized/frame/im-online/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -57,11 +58,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
// Storage: ImOnline Keys (r:1 w:0)
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
|
||||
(93_400_000 as Weight)
|
||||
(73_594_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((144_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add((128_000 as Weight).saturating_mul(k as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((335_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add((295_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -75,11 +76,11 @@ impl WeightInfo for () {
|
||||
// Storage: ImOnline AuthoredBlocks (r:1 w:0)
|
||||
// Storage: ImOnline Keys (r:1 w:0)
|
||||
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
|
||||
(93_400_000 as Weight)
|
||||
(73_594_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((144_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add((128_000 as Weight).saturating_mul(k as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((335_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add((295_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_indices
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/indices/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -57,33 +58,33 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
fn claim() -> Weight {
|
||||
(38_814_000 as Weight)
|
||||
(20_754_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
(47_274_000 as Weight)
|
||||
(26_655_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
fn free() -> Weight {
|
||||
(39_692_000 as Weight)
|
||||
(22_112_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_transfer() -> Weight {
|
||||
(40_250_000 as Weight)
|
||||
(22_175_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
fn freeze() -> Weight {
|
||||
(37_358_000 as Weight)
|
||||
(24_344_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -93,33 +94,33 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
fn claim() -> Weight {
|
||||
(38_814_000 as Weight)
|
||||
(20_754_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn transfer() -> Weight {
|
||||
(47_274_000 as Weight)
|
||||
(26_655_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
fn free() -> Weight {
|
||||
(39_692_000 as Weight)
|
||||
(22_112_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn force_transfer() -> Weight {
|
||||
(40_250_000 as Weight)
|
||||
(22_175_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Indices Accounts (r:1 w:1)
|
||||
fn freeze() -> Weight {
|
||||
(37_358_000 as Weight)
|
||||
(24_344_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_lottery
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,7 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/lottery/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -63,28 +65,28 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:0 w:1)
|
||||
fn buy_ticket() -> Weight {
|
||||
(52_219_000 as Weight)
|
||||
(38_270_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Lottery CallIndices (r:0 w:1)
|
||||
fn set_calls(n: u32, ) -> Weight {
|
||||
(13_249_000 as Weight)
|
||||
(8_830_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((378_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((291_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn start_lottery() -> Weight {
|
||||
(44_636_000 as Weight)
|
||||
(31_404_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
fn stop_repeat() -> Weight {
|
||||
(5_654_000 as Weight)
|
||||
(3_825_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -94,7 +96,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
fn on_initialize_end() -> Weight {
|
||||
(72_990_000 as Weight)
|
||||
(49_760_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -105,7 +107,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
fn on_initialize_repeat() -> Weight {
|
||||
(75_323_000 as Weight)
|
||||
(53_159_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -121,28 +123,28 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:0 w:1)
|
||||
fn buy_ticket() -> Weight {
|
||||
(52_219_000 as Weight)
|
||||
(38_270_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Lottery CallIndices (r:0 w:1)
|
||||
fn set_calls(n: u32, ) -> Weight {
|
||||
(13_249_000 as Weight)
|
||||
(8_830_000 as Weight)
|
||||
// Standard Error: 7_000
|
||||
.saturating_add((378_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((291_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn start_lottery() -> Weight {
|
||||
(44_636_000 as Weight)
|
||||
(31_404_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Lottery Lottery (r:1 w:1)
|
||||
fn stop_repeat() -> Weight {
|
||||
(5_654_000 as Weight)
|
||||
(3_825_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -152,7 +154,7 @@ impl WeightInfo for () {
|
||||
// Storage: Lottery TicketsCount (r:1 w:1)
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
fn on_initialize_end() -> Weight {
|
||||
(72_990_000 as Weight)
|
||||
(49_760_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -163,7 +165,7 @@ impl WeightInfo for () {
|
||||
// Storage: Lottery Tickets (r:1 w:0)
|
||||
// Storage: Lottery LotteryIndex (r:1 w:1)
|
||||
fn on_initialize_repeat() -> Weight {
|
||||
(75_323_000 as Weight)
|
||||
(53_159_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_membership
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/membership/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -57,79 +58,79 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_membership using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
(23_668_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((142_000 as Weight).saturating_mul(m as Weight))
|
||||
(14_403_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((94_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
(29_149_000 as Weight)
|
||||
(17_005_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((111_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((90_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
(29_289_000 as Weight)
|
||||
(17_210_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((126_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((98_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn reset_member(m: u32, ) -> Weight {
|
||||
(30_178_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((286_000 as Weight).saturating_mul(m as Weight))
|
||||
(17_425_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((194_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:1)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
(31_049_000 as Weight)
|
||||
(17_948_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((121_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((95_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
(8_006_000 as Weight)
|
||||
(4_579_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((89_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((71_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Prime (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn clear_prime(m: u32, ) -> Weight {
|
||||
(3_452_000 as Weight)
|
||||
(1_481_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -138,79 +139,79 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
(23_668_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((142_000 as Weight).saturating_mul(m as Weight))
|
||||
(14_403_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((94_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
(29_149_000 as Weight)
|
||||
(17_005_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((111_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((90_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
(29_289_000 as Weight)
|
||||
(17_210_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((126_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((98_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:0)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:0)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn reset_member(m: u32, ) -> Weight {
|
||||
(30_178_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((286_000 as Weight).saturating_mul(m as Weight))
|
||||
(17_425_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((194_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:1)
|
||||
// Storage: Instance2Collective Proposals (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:1 w:1)
|
||||
// Storage: Instance2Collective Members (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:1 w:1)
|
||||
// Storage: TechnicalCommittee Members (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
(31_049_000 as Weight)
|
||||
(17_948_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((121_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((95_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Members (r:1 w:0)
|
||||
// Storage: Instance1Membership Prime (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Members (r:1 w:0)
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
(8_006_000 as Weight)
|
||||
(4_579_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((89_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((71_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Instance1Membership Prime (r:0 w:1)
|
||||
// Storage: Instance2Collective Prime (r:0 w:1)
|
||||
// Storage: TechnicalMembership Prime (r:0 w:1)
|
||||
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
||||
fn clear_prime(m: u32, ) -> Weight {
|
||||
(3_452_000 as Weight)
|
||||
(1_481_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_multisig
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/multisig/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -61,18 +62,18 @@ pub trait WeightInfo {
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||
(19_405_000 as Weight)
|
||||
(16_904_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||
(54_364_000 as Weight)
|
||||
(30_172_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((163_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((142_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -80,32 +81,32 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
fn as_multi_create_store(s: u32, z: u32, ) -> Weight {
|
||||
(59_545_000 as Weight)
|
||||
(33_039_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((140_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((168_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||
(32_721_000 as Weight)
|
||||
(20_752_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((176_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((133_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
fn as_multi_approve_store(s: u32, z: u32, ) -> Weight {
|
||||
(56_596_000 as Weight)
|
||||
(33_198_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((183_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((135_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -113,29 +114,29 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||
(72_391_000 as Weight)
|
||||
(39_407_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((268_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((230_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((4_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||
(52_543_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((164_000 as Weight).saturating_mul(s as Weight))
|
||||
(28_365_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((156_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: Multisig Calls (r:1 w:0)
|
||||
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||
(30_764_000 as Weight)
|
||||
(17_960_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((180_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((158_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -143,18 +144,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn approve_as_multi_complete(s: u32, ) -> Weight {
|
||||
(113_631_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((283_000 as Weight).saturating_mul(s as Weight))
|
||||
(56_920_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((243_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||
(86_310_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((166_000 as Weight).saturating_mul(s as Weight))
|
||||
(45_336_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((155_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -163,18 +164,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||
(19_405_000 as Weight)
|
||||
(16_904_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||
(54_364_000 as Weight)
|
||||
(30_172_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((163_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((142_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -182,32 +183,32 @@ impl WeightInfo for () {
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
fn as_multi_create_store(s: u32, z: u32, ) -> Weight {
|
||||
(59_545_000 as Weight)
|
||||
(33_039_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((140_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((168_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||
(32_721_000 as Weight)
|
||||
(20_752_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((176_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((133_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
fn as_multi_approve_store(s: u32, z: u32, ) -> Weight {
|
||||
(56_596_000 as Weight)
|
||||
(33_198_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((183_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((135_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -215,29 +216,29 @@ impl WeightInfo for () {
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||
(72_391_000 as Weight)
|
||||
(39_407_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((268_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((230_000 as Weight).saturating_mul(s as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((4_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||
(52_543_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((164_000 as Weight).saturating_mul(s as Weight))
|
||||
(28_365_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((156_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: Multisig Calls (r:1 w:0)
|
||||
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||
(30_764_000 as Weight)
|
||||
(17_960_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((180_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((158_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -245,18 +246,18 @@ impl WeightInfo for () {
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn approve_as_multi_complete(s: u32, ) -> Weight {
|
||||
(113_631_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((283_000 as Weight).saturating_mul(s as Weight))
|
||||
(56_920_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((243_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Multisig Multisigs (r:1 w:1)
|
||||
// Storage: Multisig Calls (r:1 w:1)
|
||||
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||
(86_310_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((166_000 as Weight).saturating_mul(s as Weight))
|
||||
(45_336_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((155_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_preimage
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-12-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,7 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/preimage/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -91,58 +93,58 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unnote_preimage() -> Weight {
|
||||
(60_560_000 as Weight)
|
||||
(38_155_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unnote_no_deposit_preimage() -> Weight {
|
||||
(37_575_000 as Weight)
|
||||
(24_132_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_preimage() -> Weight {
|
||||
(56_868_000 as Weight)
|
||||
(36_703_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_no_deposit_preimage() -> Weight {
|
||||
(37_058_000 as Weight)
|
||||
(23_056_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_unnoted_preimage() -> Weight {
|
||||
(21_500_000 as Weight)
|
||||
(12_937_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_requested_preimage() -> Weight {
|
||||
(7_798_000 as Weight)
|
||||
(4_460_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unrequest_preimage() -> Weight {
|
||||
(37_771_000 as Weight)
|
||||
(23_761_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unrequest_unnoted_preimage() -> Weight {
|
||||
(22_913_000 as Weight)
|
||||
(13_829_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn unrequest_multi_referenced_preimage() -> Weight {
|
||||
(7_608_000 as Weight)
|
||||
(4_595_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -180,58 +182,58 @@ impl WeightInfo for () {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unnote_preimage() -> Weight {
|
||||
(60_560_000 as Weight)
|
||||
(38_155_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unnote_no_deposit_preimage() -> Weight {
|
||||
(37_575_000 as Weight)
|
||||
(24_132_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_preimage() -> Weight {
|
||||
(56_868_000 as Weight)
|
||||
(36_703_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_no_deposit_preimage() -> Weight {
|
||||
(37_058_000 as Weight)
|
||||
(23_056_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_unnoted_preimage() -> Weight {
|
||||
(21_500_000 as Weight)
|
||||
(12_937_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn request_requested_preimage() -> Weight {
|
||||
(7_798_000 as Weight)
|
||||
(4_460_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unrequest_preimage() -> Weight {
|
||||
(37_771_000 as Weight)
|
||||
(23_761_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Preimage PreimageFor (r:0 w:1)
|
||||
fn unrequest_unnoted_preimage() -> Weight {
|
||||
(22_913_000 as Weight)
|
||||
(13_829_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn unrequest_multi_referenced_preimage() -> Weight {
|
||||
(7_608_000 as Weight)
|
||||
(4_595_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_proxy
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/proxy/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -62,38 +63,42 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
(23_213_000 as Weight)
|
||||
(13_623_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((153_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((121_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||
(53_286_000 as Weight)
|
||||
(29_560_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((549_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((259_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((138_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((121_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn remove_announcement(a: u32, _p: u32, ) -> Weight {
|
||||
(36_864_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((550_000 as Weight).saturating_mul(a as Weight))
|
||||
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(21_004_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((266_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((13_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn reject_announcement(a: u32, _p: u32, ) -> Weight {
|
||||
(36_755_000 as Weight)
|
||||
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(20_992_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((550_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((266_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((14_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -101,52 +106,52 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn announce(a: u32, p: u32, ) -> Weight {
|
||||
(50_765_000 as Weight)
|
||||
(28_118_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((547_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((250_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((141_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((118_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn add_proxy(p: u32, ) -> Weight {
|
||||
(35_556_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((211_000 as Weight).saturating_mul(p as Weight))
|
||||
(23_077_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((159_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn remove_proxy(p: u32, ) -> Weight {
|
||||
(35_284_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((229_000 as Weight).saturating_mul(p as Weight))
|
||||
(19_919_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((155_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn remove_proxies(p: u32, ) -> Weight {
|
||||
(34_449_000 as Weight)
|
||||
(19_625_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((146_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((120_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn anonymous(p: u32, ) -> Weight {
|
||||
(49_149_000 as Weight)
|
||||
(26_066_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((15_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((37_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn kill_anonymous(p: u32, ) -> Weight {
|
||||
(36_399_000 as Weight)
|
||||
(21_294_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((152_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((112_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -156,38 +161,42 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
impl WeightInfo for () {
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
(23_213_000 as Weight)
|
||||
(13_623_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((153_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((121_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:0)
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||
(53_286_000 as Weight)
|
||||
(29_560_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((549_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((259_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((138_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((121_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn remove_announcement(a: u32, _p: u32, ) -> Weight {
|
||||
(36_864_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((550_000 as Weight).saturating_mul(a as Weight))
|
||||
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(21_004_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((266_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((13_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn reject_announcement(a: u32, _p: u32, ) -> Weight {
|
||||
(36_755_000 as Weight)
|
||||
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(20_992_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((550_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((266_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((14_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -195,52 +204,52 @@ impl WeightInfo for () {
|
||||
// Storage: Proxy Announcements (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn announce(a: u32, p: u32, ) -> Weight {
|
||||
(50_765_000 as Weight)
|
||||
(28_118_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((547_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((250_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((141_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((118_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn add_proxy(p: u32, ) -> Weight {
|
||||
(35_556_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((211_000 as Weight).saturating_mul(p as Weight))
|
||||
(23_077_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((159_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn remove_proxy(p: u32, ) -> Weight {
|
||||
(35_284_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((229_000 as Weight).saturating_mul(p as Weight))
|
||||
(19_919_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((155_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn remove_proxies(p: u32, ) -> Weight {
|
||||
(34_449_000 as Weight)
|
||||
(19_625_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((146_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((120_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn anonymous(p: u32, ) -> Weight {
|
||||
(49_149_000 as Weight)
|
||||
(26_066_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((15_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((37_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Proxy Proxies (r:1 w:1)
|
||||
fn kill_anonymous(p: u32, ) -> Weight {
|
||||
(36_399_000 as Weight)
|
||||
(21_294_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((152_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((112_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_scheduler
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-12-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,7 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/scheduler/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -68,9 +70,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
|
||||
(8_183_000 as Weight)
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((34_670_000 as Weight).saturating_mul(s as Weight))
|
||||
(10_798_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((17_708_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -81,9 +83,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_named_resolved(s: u32, ) -> Weight {
|
||||
(11_520_000 as Weight)
|
||||
// Standard Error: 30_000
|
||||
.saturating_add((26_386_000 as Weight).saturating_mul(s as Weight))
|
||||
(8_722_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((13_706_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -93,9 +95,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
|
||||
(8_222_000 as Weight)
|
||||
// Standard Error: 33_000
|
||||
.saturating_add((28_925_000 as Weight).saturating_mul(s as Weight))
|
||||
(9_414_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((15_176_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -105,9 +107,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn on_initialize_resolved(s: u32, ) -> Weight {
|
||||
(11_610_000 as Weight)
|
||||
// Standard Error: 26_000
|
||||
.saturating_add((23_857_000 as Weight).saturating_mul(s as Weight))
|
||||
(9_572_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((12_505_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -117,9 +119,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Preimage PreimageFor (r:1 w:0)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_named_aborted(s: u32, ) -> Weight {
|
||||
(11_067_000 as Weight)
|
||||
// Standard Error: 15_000
|
||||
.saturating_add((11_728_000 as Weight).saturating_mul(s as Weight))
|
||||
(6_900_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_486_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -128,9 +130,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
// Storage: Preimage PreimageFor (r:1 w:0)
|
||||
fn on_initialize_aborted(s: u32, ) -> Weight {
|
||||
(13_045_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((6_378_000 as Weight).saturating_mul(s as Weight))
|
||||
(8_346_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_079_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -138,9 +140,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_periodic_named(s: u32, ) -> Weight {
|
||||
(13_496_000 as Weight)
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((17_932_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_462_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((8_230_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -148,9 +150,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn on_initialize_periodic(s: u32, ) -> Weight {
|
||||
(17_074_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((11_982_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_046_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_782_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -159,53 +161,53 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_named(s: u32, ) -> Weight {
|
||||
(18_730_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((9_909_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_481_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((4_385_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn on_initialize(s: u32, ) -> Weight {
|
||||
(17_844_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((7_719_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_081_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((3_434_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn schedule(s: u32, ) -> Weight {
|
||||
(23_361_000 as Weight)
|
||||
(13_863_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((82_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((87_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn cancel(s: u32, ) -> Weight {
|
||||
(22_359_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_219_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_695_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((594_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn schedule_named(s: u32, ) -> Weight {
|
||||
(28_499_000 as Weight)
|
||||
(16_506_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((98_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((99_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn cancel_named(s: u32, ) -> Weight {
|
||||
(24_995_000 as Weight)
|
||||
(15_685_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_223_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((604_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -218,9 +220,9 @@ impl WeightInfo for () {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
|
||||
(8_183_000 as Weight)
|
||||
// Standard Error: 36_000
|
||||
.saturating_add((34_670_000 as Weight).saturating_mul(s as Weight))
|
||||
(10_798_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((17_708_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -231,9 +233,9 @@ impl WeightInfo for () {
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_named_resolved(s: u32, ) -> Weight {
|
||||
(11_520_000 as Weight)
|
||||
// Standard Error: 30_000
|
||||
.saturating_add((26_386_000 as Weight).saturating_mul(s as Weight))
|
||||
(8_722_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((13_706_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -243,9 +245,9 @@ impl WeightInfo for () {
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
|
||||
(8_222_000 as Weight)
|
||||
// Standard Error: 33_000
|
||||
.saturating_add((28_925_000 as Weight).saturating_mul(s as Weight))
|
||||
(9_414_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((15_176_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -255,9 +257,9 @@ impl WeightInfo for () {
|
||||
// Storage: Preimage PreimageFor (r:1 w:1)
|
||||
// Storage: Preimage StatusFor (r:1 w:1)
|
||||
fn on_initialize_resolved(s: u32, ) -> Weight {
|
||||
(11_610_000 as Weight)
|
||||
// Standard Error: 26_000
|
||||
.saturating_add((23_857_000 as Weight).saturating_mul(s as Weight))
|
||||
(9_572_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((12_505_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -267,9 +269,9 @@ impl WeightInfo for () {
|
||||
// Storage: Preimage PreimageFor (r:1 w:0)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_named_aborted(s: u32, ) -> Weight {
|
||||
(11_067_000 as Weight)
|
||||
// Standard Error: 15_000
|
||||
.saturating_add((11_728_000 as Weight).saturating_mul(s as Weight))
|
||||
(6_900_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_486_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
@@ -278,9 +280,9 @@ impl WeightInfo for () {
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
// Storage: Preimage PreimageFor (r:1 w:0)
|
||||
fn on_initialize_aborted(s: u32, ) -> Weight {
|
||||
(13_045_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((6_378_000 as Weight).saturating_mul(s as Weight))
|
||||
(8_346_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((3_079_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
@@ -288,9 +290,9 @@ impl WeightInfo for () {
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_periodic_named(s: u32, ) -> Weight {
|
||||
(13_496_000 as Weight)
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((17_932_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_462_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((8_230_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -298,9 +300,9 @@ impl WeightInfo for () {
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn on_initialize_periodic(s: u32, ) -> Weight {
|
||||
(17_074_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((11_982_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_046_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_782_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -309,53 +311,53 @@ impl WeightInfo for () {
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn on_initialize_named(s: u32, ) -> Weight {
|
||||
(18_730_000 as Weight)
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((9_909_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_481_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((4_385_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn on_initialize(s: u32, ) -> Weight {
|
||||
(17_844_000 as Weight)
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((7_719_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_081_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((3_434_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn schedule(s: u32, ) -> Weight {
|
||||
(23_361_000 as Weight)
|
||||
(13_863_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((82_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((87_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
// Storage: Scheduler Lookup (r:0 w:1)
|
||||
fn cancel(s: u32, ) -> Weight {
|
||||
(22_359_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_219_000 as Weight).saturating_mul(s as Weight))
|
||||
(13_695_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((594_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn schedule_named(s: u32, ) -> Weight {
|
||||
(28_499_000 as Weight)
|
||||
(16_506_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((98_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((99_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Scheduler Lookup (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:1 w:1)
|
||||
fn cancel_named(s: u32, ) -> Weight {
|
||||
(24_995_000 as Weight)
|
||||
(15_685_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((1_223_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((604_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_session
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/session/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -56,7 +57,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:4 w:4)
|
||||
fn set_keys() -> Weight {
|
||||
(64_427_000 as Weight)
|
||||
(42_449_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -64,7 +65,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:0 w:4)
|
||||
fn purge_keys() -> Weight {
|
||||
(42_497_000 as Weight)
|
||||
(32_778_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -76,7 +77,7 @@ impl WeightInfo for () {
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:4 w:4)
|
||||
fn set_keys() -> Weight {
|
||||
(64_427_000 as Weight)
|
||||
(42_449_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
@@ -84,7 +85,7 @@ impl WeightInfo for () {
|
||||
// Storage: Session NextKeys (r:1 w:1)
|
||||
// Storage: Session KeyOwner (r:0 w:4)
|
||||
fn purge_keys() -> Weight {
|
||||
(42_497_000 as Weight)
|
||||
(32_778_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(5 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_staking
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-11-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,7 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/staking/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -84,7 +86,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn bond() -> Weight {
|
||||
(63_660_000 as Weight)
|
||||
(38_457_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -94,7 +96,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn bond_extra() -> Weight {
|
||||
(103_672_000 as Weight)
|
||||
(65_678_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
@@ -108,7 +110,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn unbond() -> Weight {
|
||||
(110_884_000 as Weight)
|
||||
(71_544_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -117,9 +119,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
(46_379_000 as Weight)
|
||||
(30_127_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((55_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((59_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -137,7 +139,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
||||
(91_303_000 as Weight)
|
||||
(59_131_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(13 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(11 as Weight))
|
||||
}
|
||||
@@ -153,16 +155,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForValidators (r:1 w:1)
|
||||
fn validate() -> Weight {
|
||||
(66_587_000 as Weight)
|
||||
(45_519_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
(21_153_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((13_502_000 as Weight).saturating_mul(k as Weight))
|
||||
(16_645_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((8_194_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(k as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(k as Weight)))
|
||||
@@ -173,15 +175,15 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
||||
// Storage: Staking Validators (r:2 w:0)
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListNodes (r:2 w:2)
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
(75_456_000 as Weight)
|
||||
(50_227_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((5_051_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((3_546_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
@@ -194,49 +196,49 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill() -> Weight {
|
||||
(65_332_000 as Weight)
|
||||
(44_294_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn set_payee() -> Weight {
|
||||
(11_757_000 as Weight)
|
||||
(7_556_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking Ledger (r:2 w:2)
|
||||
fn set_controller() -> Weight {
|
||||
(24_252_000 as Weight)
|
||||
(15_826_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Staking ValidatorCount (r:0 w:1)
|
||||
fn set_validator_count() -> Weight {
|
||||
(2_252_000 as Weight)
|
||||
(1_141_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
(2_431_000 as Weight)
|
||||
(1_152_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
(2_397_000 as Weight)
|
||||
(1_169_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era_always() -> Weight {
|
||||
(2_423_000 as Weight)
|
||||
(1_134_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Invulnerables (r:0 w:1)
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
(2_876_000 as Weight)
|
||||
(1_641_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((53_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((52_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -253,18 +255,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
(87_540_000 as Weight)
|
||||
(57_227_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_791_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((817_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Staking UnappliedSlashes (r:1 w:1)
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
(2_769_801_000 as Weight)
|
||||
// Standard Error: 181_000
|
||||
.saturating_add((16_225_000 as Weight).saturating_mul(s as Weight))
|
||||
(950_241_000 as Weight)
|
||||
// Standard Error: 56_000
|
||||
.saturating_add((4_960_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -279,9 +281,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Payee (r:2 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
(103_452_000 as Weight)
|
||||
// Standard Error: 19_000
|
||||
.saturating_add((42_909_000 as Weight).saturating_mul(n as Weight))
|
||||
(73_561_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((24_039_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -299,9 +301,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:2 w:2)
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
(145_995_000 as Weight)
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((55_974_000 as Weight).saturating_mul(n as Weight))
|
||||
(105_296_000 as Weight)
|
||||
// Standard Error: 18_000
|
||||
.saturating_add((33_989_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((5 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
@@ -314,9 +316,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
(101_568_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((66_000 as Weight).saturating_mul(l as Weight))
|
||||
(65_108_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((72_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(9 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -331,8 +333,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn set_history_depth(e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 69_000
|
||||
.saturating_add((29_939_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 54_000
|
||||
.saturating_add((19_731_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((7 as Weight).saturating_mul(e as Weight)))
|
||||
@@ -351,9 +353,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:1)
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
(96_886_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_790_000 as Weight).saturating_mul(s as Weight))
|
||||
(63_115_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((812_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -378,10 +380,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 873_000
|
||||
.saturating_add((286_141_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 43_000
|
||||
.saturating_add((44_712_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 800_000
|
||||
.saturating_add((219_877_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 40_000
|
||||
.saturating_add((31_701_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(208 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -399,10 +401,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Nominators (r:1000 w:0)
|
||||
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 87_000
|
||||
.saturating_add((24_049_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 87_000
|
||||
.saturating_add((27_514_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 88_000
|
||||
.saturating_add((18_183_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 88_000
|
||||
.saturating_add((21_345_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(204 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -411,8 +413,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking Validators (r:501 w:0)
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 32_000
|
||||
.saturating_add((10_128_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 25_000
|
||||
.saturating_add((7_691_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
}
|
||||
@@ -423,7 +425,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs() -> Weight {
|
||||
(6_187_000 as Weight)
|
||||
(3_324_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
@@ -437,7 +439,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill_other() -> Weight {
|
||||
(78_282_000 as Weight)
|
||||
(54_254_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
@@ -452,7 +454,7 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn bond() -> Weight {
|
||||
(63_660_000 as Weight)
|
||||
(38_457_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -462,7 +464,7 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList ListNodes (r:3 w:3)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn bond_extra() -> Weight {
|
||||
(103_672_000 as Weight)
|
||||
(65_678_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(7 as Weight))
|
||||
}
|
||||
@@ -476,7 +478,7 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn unbond() -> Weight {
|
||||
(110_884_000 as Weight)
|
||||
(71_544_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -485,9 +487,9 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn withdraw_unbonded_update(s: u32, ) -> Weight {
|
||||
(46_379_000 as Weight)
|
||||
(30_127_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((55_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((59_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -505,7 +507,7 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn withdraw_unbonded_kill(_s: u32, ) -> Weight {
|
||||
(91_303_000 as Weight)
|
||||
(59_131_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(13 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(11 as Weight))
|
||||
}
|
||||
@@ -521,16 +523,16 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForValidators (r:1 w:1)
|
||||
fn validate() -> Weight {
|
||||
(66_587_000 as Weight)
|
||||
(45_519_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Nominators (r:1 w:1)
|
||||
fn kick(k: u32, ) -> Weight {
|
||||
(21_153_000 as Weight)
|
||||
// Standard Error: 16_000
|
||||
.saturating_add((13_502_000 as Weight).saturating_mul(k as Weight))
|
||||
(16_645_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((8_194_000 as Weight).saturating_mul(k as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(k as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(k as Weight)))
|
||||
@@ -541,15 +543,15 @@ impl WeightInfo for () {
|
||||
// Storage: Staking MaxNominatorsCount (r:1 w:0)
|
||||
// Storage: Staking Validators (r:2 w:0)
|
||||
// Storage: Staking CurrentEra (r:1 w:0)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListNodes (r:2 w:2)
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
// Storage: Staking CounterForNominators (r:1 w:1)
|
||||
fn nominate(n: u32, ) -> Weight {
|
||||
(75_456_000 as Weight)
|
||||
(50_227_000 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((5_051_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add((3_546_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
@@ -562,49 +564,49 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill() -> Weight {
|
||||
(65_332_000 as Weight)
|
||||
(44_294_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(8 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
fn set_payee() -> Weight {
|
||||
(11_757_000 as Weight)
|
||||
(7_556_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
// Storage: Staking Ledger (r:2 w:2)
|
||||
fn set_controller() -> Weight {
|
||||
(24_252_000 as Weight)
|
||||
(15_826_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Staking ValidatorCount (r:0 w:1)
|
||||
fn set_validator_count() -> Weight {
|
||||
(2_252_000 as Weight)
|
||||
(1_141_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_no_eras() -> Weight {
|
||||
(2_431_000 as Weight)
|
||||
(1_152_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era() -> Weight {
|
||||
(2_397_000 as Weight)
|
||||
(1_169_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking ForceEra (r:0 w:1)
|
||||
fn force_new_era_always() -> Weight {
|
||||
(2_423_000 as Weight)
|
||||
(1_134_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Invulnerables (r:0 w:1)
|
||||
fn set_invulnerables(v: u32, ) -> Weight {
|
||||
(2_876_000 as Weight)
|
||||
(1_641_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((53_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add((52_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Staking Bonded (r:1 w:1)
|
||||
@@ -621,18 +623,18 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:2)
|
||||
fn force_unstake(s: u32, ) -> Weight {
|
||||
(87_540_000 as Weight)
|
||||
(57_227_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_791_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((817_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
}
|
||||
// Storage: Staking UnappliedSlashes (r:1 w:1)
|
||||
fn cancel_deferred_slash(s: u32, ) -> Weight {
|
||||
(2_769_801_000 as Weight)
|
||||
// Standard Error: 181_000
|
||||
.saturating_add((16_225_000 as Weight).saturating_mul(s as Weight))
|
||||
(950_241_000 as Weight)
|
||||
// Standard Error: 56_000
|
||||
.saturating_add((4_960_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -647,9 +649,9 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Payee (r:2 w:0)
|
||||
// Storage: System Account (r:2 w:2)
|
||||
fn payout_stakers_dead_controller(n: u32, ) -> Weight {
|
||||
(103_452_000 as Weight)
|
||||
// Standard Error: 19_000
|
||||
.saturating_add((42_909_000 as Weight).saturating_mul(n as Weight))
|
||||
(73_561_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((24_039_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(10 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
@@ -667,9 +669,9 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:2 w:2)
|
||||
fn payout_stakers_alive_staked(n: u32, ) -> Weight {
|
||||
(145_995_000 as Weight)
|
||||
// Standard Error: 27_000
|
||||
.saturating_add((55_974_000 as Weight).saturating_mul(n as Weight))
|
||||
(105_296_000 as Weight)
|
||||
// Standard Error: 18_000
|
||||
.saturating_add((33_989_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((5 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
@@ -682,9 +684,9 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Bonded (r:1 w:0)
|
||||
// Storage: BagsList ListBags (r:2 w:2)
|
||||
fn rebond(l: u32, ) -> Weight {
|
||||
(101_568_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((66_000 as Weight).saturating_mul(l as Weight))
|
||||
(65_108_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((72_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(9 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
|
||||
}
|
||||
@@ -699,8 +701,8 @@ impl WeightInfo for () {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn set_history_depth(e: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 69_000
|
||||
.saturating_add((29_939_000 as Weight).saturating_mul(e as Weight))
|
||||
// Standard Error: 54_000
|
||||
.saturating_add((19_731_000 as Weight).saturating_mul(e as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((7 as Weight).saturating_mul(e as Weight)))
|
||||
@@ -719,9 +721,9 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Payee (r:0 w:1)
|
||||
// Storage: Staking SpanSlash (r:0 w:1)
|
||||
fn reap_stash(s: u32, ) -> Weight {
|
||||
(96_886_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((1_790_000 as Weight).saturating_mul(s as Weight))
|
||||
(63_115_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((812_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(12 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(12 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
|
||||
@@ -746,10 +748,10 @@ impl WeightInfo for () {
|
||||
// Storage: Staking ErasStartSessionIndex (r:0 w:1)
|
||||
fn new_era(v: u32, n: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 873_000
|
||||
.saturating_add((286_141_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 43_000
|
||||
.saturating_add((44_712_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 800_000
|
||||
.saturating_add((219_877_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 40_000
|
||||
.saturating_add((31_701_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(208 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -767,10 +769,10 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Nominators (r:1000 w:0)
|
||||
fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 87_000
|
||||
.saturating_add((24_049_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 87_000
|
||||
.saturating_add((27_514_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 88_000
|
||||
.saturating_add((18_183_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 88_000
|
||||
.saturating_add((21_345_000 as Weight).saturating_mul(n as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(204 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(v as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(n as Weight)))
|
||||
@@ -779,8 +781,8 @@ impl WeightInfo for () {
|
||||
// Storage: Staking Validators (r:501 w:0)
|
||||
fn get_npos_targets(v: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 32_000
|
||||
.saturating_add((10_128_000 as Weight).saturating_mul(v as Weight))
|
||||
// Standard Error: 25_000
|
||||
.saturating_add((7_691_000 as Weight).saturating_mul(v as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(v as Weight)))
|
||||
}
|
||||
@@ -791,7 +793,7 @@ impl WeightInfo for () {
|
||||
// Storage: Staking MaxNominatorsCount (r:0 w:1)
|
||||
// Storage: Staking MinNominatorBond (r:0 w:1)
|
||||
fn set_staking_configs() -> Weight {
|
||||
(6_187_000 as Weight)
|
||||
(3_324_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
// Storage: Staking Ledger (r:1 w:0)
|
||||
@@ -805,7 +807,7 @@ impl WeightInfo for () {
|
||||
// Storage: BagsList ListBags (r:1 w:1)
|
||||
// Storage: BagsList CounterForListNodes (r:1 w:1)
|
||||
fn chill_other() -> Weight {
|
||||
(78_282_000 as Weight)
|
||||
(54_254_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(11 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for frame_system
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -32,9 +32,10 @@
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/system/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --output=./weights-optimized/frame/system/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -56,80 +57,80 @@ pub trait WeightInfo {
|
||||
/// Weights for frame_system using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: crate::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn remark(b: u32, ) -> Weight {
|
||||
(574_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
||||
fn remark(_b: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
}
|
||||
fn remark_with_event(b: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
||||
}
|
||||
// Storage: System Digest (r:1 w:1)
|
||||
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
|
||||
fn set_heap_pages() -> Weight {
|
||||
(1_891_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
(2_821_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn set_storage(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((848_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add((385_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn kill_storage(i: u32, ) -> Weight {
|
||||
(308_000 as Weight)
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((559_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add((286_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn kill_prefix(p: u32, ) -> Weight {
|
||||
(7_616_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((783_000 as Weight).saturating_mul(p as Weight))
|
||||
(1_292_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((633_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
fn remark(b: u32, ) -> Weight {
|
||||
(574_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
||||
fn remark(_b: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
}
|
||||
fn remark_with_event(b: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
|
||||
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
|
||||
}
|
||||
// Storage: System Digest (r:1 w:1)
|
||||
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
|
||||
fn set_heap_pages() -> Weight {
|
||||
(1_891_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
(2_821_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn set_storage(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((848_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add((385_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn kill_storage(i: u32, ) -> Weight {
|
||||
(308_000 as Weight)
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((559_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add((286_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||
}
|
||||
// Storage: Skipped Metadata (r:0 w:0)
|
||||
fn kill_prefix(p: u32, ) -> Weight {
|
||||
(7_616_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((783_000 as Weight).saturating_mul(p as Weight))
|
||||
(1_292_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((633_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_timestamp
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/timestamp/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -55,12 +56,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Timestamp Now (r:1 w:1)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
fn set() -> Weight {
|
||||
(10_391_000 as Weight)
|
||||
(5_191_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn on_finalize() -> Weight {
|
||||
(4_843_000 as Weight)
|
||||
(2_563_000 as Weight)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,11 +70,11 @@ impl WeightInfo for () {
|
||||
// Storage: Timestamp Now (r:1 w:1)
|
||||
// Storage: Babe CurrentSlot (r:1 w:0)
|
||||
fn set() -> Weight {
|
||||
(10_391_000 as Weight)
|
||||
(5_191_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
fn on_finalize() -> Weight {
|
||||
(4_843_000 as Weight)
|
||||
(2_563_000 as Weight)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_tips
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/tips/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -56,60 +57,60 @@ pub trait WeightInfo {
|
||||
/// Weights for pallet_tips using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Treasury Reasons (r:1 w:1)
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
(50_921_000 as Weight)
|
||||
(26_318_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Treasury Reasons (r:0 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn retract_tip() -> Weight {
|
||||
(46_352_000 as Weight)
|
||||
(24_688_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Treasury Reasons (r:1 w:1)
|
||||
// Storage: Treasury Tips (r:0 w:1)
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:0 w:1)
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
(33_338_000 as Weight)
|
||||
(17_395_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((115_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((3_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((197_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
(22_702_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((538_000 as Weight).saturating_mul(t as Weight))
|
||||
(10_783_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((568_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Treasury Reasons (r:0 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
(84_094_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((283_000 as Weight).saturating_mul(t as Weight))
|
||||
(41_658_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((391_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Treasury Reasons (r:0 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
(24_891_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((6_000 as Weight).saturating_mul(t as Weight))
|
||||
(14_935_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((40_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -117,60 +118,60 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
// Storage: Treasury Reasons (r:1 w:1)
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn report_awesome(r: u32, ) -> Weight {
|
||||
(50_921_000 as Weight)
|
||||
(26_318_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Treasury Reasons (r:0 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn retract_tip() -> Weight {
|
||||
(46_352_000 as Weight)
|
||||
(24_688_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Treasury Reasons (r:1 w:1)
|
||||
// Storage: Treasury Tips (r:0 w:1)
|
||||
// Storage: Tips Reasons (r:1 w:1)
|
||||
// Storage: Tips Tips (r:0 w:1)
|
||||
fn tip_new(r: u32, t: u32, ) -> Weight {
|
||||
(33_338_000 as Weight)
|
||||
(17_395_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 0
|
||||
.saturating_add((115_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add((3_000 as Weight).saturating_mul(r as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((197_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
fn tip(t: u32, ) -> Weight {
|
||||
(22_702_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((538_000 as Weight).saturating_mul(t as Weight))
|
||||
(10_783_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((568_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Elections Members (r:1 w:0)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Treasury Reasons (r:0 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn close_tip(t: u32, ) -> Weight {
|
||||
(84_094_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((283_000 as Weight).saturating_mul(t as Weight))
|
||||
(41_658_000 as Weight)
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((391_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
// Storage: Treasury Tips (r:1 w:1)
|
||||
// Storage: Treasury Reasons (r:0 w:1)
|
||||
// Storage: Tips Tips (r:1 w:1)
|
||||
// Storage: Tips Reasons (r:0 w:1)
|
||||
fn slash_tip(t: u32, ) -> Weight {
|
||||
(24_891_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((6_000 as Weight).saturating_mul(t as Weight))
|
||||
(14_935_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((40_000 as Weight).saturating_mul(t as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_transaction_storage
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/optimized/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -32,9 +32,10 @@
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/transaction-storage/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --output=./weights-optimized/frame/transaction-storage/src//weights.rs
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=HEADER-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -62,7 +63,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn store(l: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((8_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((5_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -73,7 +74,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
// Storage: TransactionStorage MaxBlockTransactions (r:1 w:0)
|
||||
fn renew() -> Weight {
|
||||
(67_532_000 as Weight)
|
||||
(43_773_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -83,7 +84,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
fn check_proof_max() -> Weight {
|
||||
(182_886_000 as Weight)
|
||||
(139_490_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -100,7 +101,7 @@ impl WeightInfo for () {
|
||||
fn store(l: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((8_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add((5_000 as Weight).saturating_mul(l as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -111,7 +112,7 @@ impl WeightInfo for () {
|
||||
// Storage: TransactionStorage BlockTransactions (r:1 w:1)
|
||||
// Storage: TransactionStorage MaxBlockTransactions (r:1 w:0)
|
||||
fn renew() -> Weight {
|
||||
(67_532_000 as Weight)
|
||||
(43_773_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -121,7 +122,7 @@ impl WeightInfo for () {
|
||||
// Storage: System ParentHash (r:1 w:0)
|
||||
// Storage: TransactionStorage Transactions (r:1 w:0)
|
||||
fn check_proof_max() -> Weight {
|
||||
(182_886_000 as Weight)
|
||||
(139_490_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_treasury
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/treasury/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -57,34 +58,34 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:0 w:1)
|
||||
fn propose_spend() -> Weight {
|
||||
(41_567_000 as Weight)
|
||||
(21_666_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn reject_proposal() -> Weight {
|
||||
(38_993_000 as Weight)
|
||||
(25_008_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:0)
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
fn approve_proposal(p: u32, ) -> Weight {
|
||||
(13_543_000 as Weight)
|
||||
(8_032_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((55_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((66_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
// Storage: Treasury BountyApprovals (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:2 w:2)
|
||||
// Storage: System Account (r:4 w:4)
|
||||
fn on_initialize_proposals(p: u32, ) -> Weight {
|
||||
(51_708_000 as Weight)
|
||||
// Standard Error: 21_000
|
||||
.saturating_add((57_926_000 as Weight).saturating_mul(p as Weight))
|
||||
(25_541_000 as Weight)
|
||||
// Standard Error: 19_000
|
||||
.saturating_add((27_399_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(p as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
@@ -97,34 +98,34 @@ impl WeightInfo for () {
|
||||
// Storage: Treasury ProposalCount (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:0 w:1)
|
||||
fn propose_spend() -> Weight {
|
||||
(41_567_000 as Weight)
|
||||
(21_666_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn reject_proposal() -> Weight {
|
||||
(38_993_000 as Weight)
|
||||
(25_008_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Treasury Proposals (r:1 w:0)
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
fn approve_proposal(p: u32, ) -> Weight {
|
||||
(13_543_000 as Weight)
|
||||
(8_032_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((55_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add((66_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Treasury Approvals (r:1 w:1)
|
||||
// Storage: Treasury BountyApprovals (r:1 w:1)
|
||||
// Storage: Bounties BountyApprovals (r:1 w:1)
|
||||
// Storage: Treasury Proposals (r:2 w:2)
|
||||
// Storage: System Account (r:4 w:4)
|
||||
fn on_initialize_proposals(p: u32, ) -> Weight {
|
||||
(51_708_000 as Weight)
|
||||
// Standard Error: 21_000
|
||||
.saturating_add((57_926_000 as Weight).saturating_mul(p as Weight))
|
||||
(25_541_000 as Weight)
|
||||
// Standard Error: 19_000
|
||||
.saturating_add((27_399_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as Weight).saturating_mul(p as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_uniques
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-11-02, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/uniques/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -75,14 +76,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||
fn create() -> Weight {
|
||||
(41_109_000 as Weight)
|
||||
(23_715_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||
fn force_create() -> Weight {
|
||||
(22_986_000 as Weight)
|
||||
(12_854_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -95,12 +96,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Account (r:0 w:20)
|
||||
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((14_879_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((1_058_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((956_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((9_291_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((957_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((862_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
@@ -112,7 +113,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques Account (r:0 w:1)
|
||||
fn mint() -> Weight {
|
||||
(51_248_000 as Weight)
|
||||
(29_659_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -120,7 +121,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Account (r:0 w:1)
|
||||
fn burn() -> Weight {
|
||||
(53_172_000 as Weight)
|
||||
(31_363_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -128,7 +129,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Account (r:0 w:2)
|
||||
fn transfer() -> Weight {
|
||||
(39_680_000 as Weight)
|
||||
(23_596_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -136,8 +137,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Asset (r:100 w:100)
|
||||
fn redeposit(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((22_759_000 as Weight).saturating_mul(i as Weight))
|
||||
// Standard Error: 11_000
|
||||
.saturating_add((11_793_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
@@ -146,26 +147,26 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
fn freeze() -> Weight {
|
||||
(27_833_000 as Weight)
|
||||
(17_708_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
fn thaw() -> Weight {
|
||||
(27_739_000 as Weight)
|
||||
(17_959_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
fn freeze_class() -> Weight {
|
||||
(20_890_000 as Weight)
|
||||
(14_034_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
fn thaw_class() -> Weight {
|
||||
(20_848_000 as Weight)
|
||||
(13_751_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -173,20 +174,20 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:2)
|
||||
fn transfer_ownership() -> Weight {
|
||||
(51_523_000 as Weight)
|
||||
(31_328_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
fn set_team() -> Weight {
|
||||
(22_034_000 as Weight)
|
||||
(14_586_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||
fn force_asset_status() -> Weight {
|
||||
(25_877_000 as Weight)
|
||||
(16_374_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -194,7 +195,7 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||
// Storage: Uniques Attribute (r:1 w:1)
|
||||
fn set_attribute() -> Weight {
|
||||
(63_365_000 as Weight)
|
||||
(36_952_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -202,49 +203,49 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||
// Storage: Uniques Attribute (r:1 w:1)
|
||||
fn clear_attribute() -> Weight {
|
||||
(56_849_000 as Weight)
|
||||
(35_230_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||
fn set_metadata() -> Weight {
|
||||
(47_982_000 as Weight)
|
||||
(28_148_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||
fn clear_metadata() -> Weight {
|
||||
(47_340_000 as Weight)
|
||||
(29_027_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||
fn set_class_metadata() -> Weight {
|
||||
(46_897_000 as Weight)
|
||||
(27_535_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||
fn clear_class_metadata() -> Weight {
|
||||
(41_745_000 as Weight)
|
||||
(26_707_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
fn approve_transfer() -> Weight {
|
||||
(29_828_000 as Weight)
|
||||
(19_108_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
fn cancel_approval() -> Weight {
|
||||
(29_759_000 as Weight)
|
||||
(19_779_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -255,14 +256,14 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||
fn create() -> Weight {
|
||||
(41_109_000 as Weight)
|
||||
(23_715_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||
fn force_create() -> Weight {
|
||||
(22_986_000 as Weight)
|
||||
(12_854_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -275,12 +276,12 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Account (r:0 w:20)
|
||||
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((14_879_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((1_058_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 14_000
|
||||
.saturating_add((956_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((9_291_000 as Weight).saturating_mul(n as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((957_000 as Weight).saturating_mul(m as Weight))
|
||||
// Standard Error: 13_000
|
||||
.saturating_add((862_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
@@ -292,7 +293,7 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques Account (r:0 w:1)
|
||||
fn mint() -> Weight {
|
||||
(51_248_000 as Weight)
|
||||
(29_659_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -300,7 +301,7 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Account (r:0 w:1)
|
||||
fn burn() -> Weight {
|
||||
(53_172_000 as Weight)
|
||||
(31_363_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -308,7 +309,7 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Account (r:0 w:2)
|
||||
fn transfer() -> Weight {
|
||||
(39_680_000 as Weight)
|
||||
(23_596_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -316,8 +317,8 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Asset (r:100 w:100)
|
||||
fn redeposit(i: u32, ) -> Weight {
|
||||
(0 as Weight)
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((22_759_000 as Weight).saturating_mul(i as Weight))
|
||||
// Standard Error: 11_000
|
||||
.saturating_add((11_793_000 as Weight).saturating_mul(i as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
@@ -326,26 +327,26 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
fn freeze() -> Weight {
|
||||
(27_833_000 as Weight)
|
||||
(17_708_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
fn thaw() -> Weight {
|
||||
(27_739_000 as Weight)
|
||||
(17_959_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
fn freeze_class() -> Weight {
|
||||
(20_890_000 as Weight)
|
||||
(14_034_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
fn thaw_class() -> Weight {
|
||||
(20_848_000 as Weight)
|
||||
(13_751_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
@@ -353,20 +354,20 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:2)
|
||||
fn transfer_ownership() -> Weight {
|
||||
(51_523_000 as Weight)
|
||||
(31_328_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
fn set_team() -> Weight {
|
||||
(22_034_000 as Weight)
|
||||
(14_586_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassAccount (r:0 w:1)
|
||||
fn force_asset_status() -> Weight {
|
||||
(25_877_000 as Weight)
|
||||
(16_374_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -374,7 +375,7 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||
// Storage: Uniques Attribute (r:1 w:1)
|
||||
fn set_attribute() -> Weight {
|
||||
(63_365_000 as Weight)
|
||||
(36_952_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -382,49 +383,49 @@ impl WeightInfo for () {
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||
// Storage: Uniques Attribute (r:1 w:1)
|
||||
fn clear_attribute() -> Weight {
|
||||
(56_849_000 as Weight)
|
||||
(35_230_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||
fn set_metadata() -> Weight {
|
||||
(47_982_000 as Weight)
|
||||
(28_148_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||
fn clear_metadata() -> Weight {
|
||||
(47_340_000 as Weight)
|
||||
(29_027_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:1)
|
||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||
fn set_class_metadata() -> Weight {
|
||||
(46_897_000 as Weight)
|
||||
(27_535_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||
fn clear_class_metadata() -> Weight {
|
||||
(41_745_000 as Weight)
|
||||
(26_707_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
fn approve_transfer() -> Weight {
|
||||
(29_828_000 as Weight)
|
||||
(19_108_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
// Storage: Uniques Class (r:1 w:0)
|
||||
// Storage: Uniques Asset (r:1 w:1)
|
||||
fn cancel_approval() -> Weight {
|
||||
(29_759_000 as Weight)
|
||||
(19_779_000 as Weight)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_utility
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-10-30, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/utility/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -55,39 +56,39 @@ pub trait WeightInfo {
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
(18_293_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((5_530_000 as Weight).saturating_mul(c as Weight))
|
||||
(15_877_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_341_000 as Weight).saturating_mul(c as Weight))
|
||||
}
|
||||
fn as_derivative() -> Weight {
|
||||
(3_387_000 as Weight)
|
||||
(1_754_000 as Weight)
|
||||
}
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
(19_223_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_998_000 as Weight).saturating_mul(c as Weight))
|
||||
(16_581_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_476_000 as Weight).saturating_mul(c as Weight))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
(14_340_000 as Weight)
|
||||
(8_294_000 as Weight)
|
||||
}
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
fn batch(c: u32, ) -> Weight {
|
||||
(18_293_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((5_530_000 as Weight).saturating_mul(c as Weight))
|
||||
(15_877_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_341_000 as Weight).saturating_mul(c as Weight))
|
||||
}
|
||||
fn as_derivative() -> Weight {
|
||||
(3_387_000 as Weight)
|
||||
(1_754_000 as Weight)
|
||||
}
|
||||
fn batch_all(c: u32, ) -> Weight {
|
||||
(19_223_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((5_998_000 as Weight).saturating_mul(c as Weight))
|
||||
(16_581_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((2_476_000 as Weight).saturating_mul(c as Weight))
|
||||
}
|
||||
fn dispatch_as() -> Weight {
|
||||
(14_340_000 as Weight)
|
||||
(8_294_000 as Weight)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// This file is part of Substrate.
|
||||
|
||||
// Copyright (C) 2021-2022 Parity Technologies (UK) Ltd.
|
||||
// Copyright (C) 2022 Parity Technologies (UK) Ltd.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@@ -18,11 +18,11 @@
|
||||
//! Autogenerated weights for pallet_vesting
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2021-08-10, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
|
||||
//! DATE: 2022-01-18, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
// target/release/substrate
|
||||
// ./target/lto-fat-cg1/substrate
|
||||
// benchmark
|
||||
// --chain=dev
|
||||
// --steps=50
|
||||
@@ -33,8 +33,9 @@
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/vesting/src/weights.rs
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
// --template=.maintain/frame-weight-template.hbs
|
||||
// --header=LICENSE-APACHE2
|
||||
// --raw
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -61,22 +62,22 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
||||
(50_642_000 as Weight)
|
||||
(27_545_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((144_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((177_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((111_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((78_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
(50_830_000 as Weight)
|
||||
(27_638_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((115_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((112_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((102_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((41_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -84,11 +85,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
||||
(52_151_000 as Weight)
|
||||
(27_571_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((130_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((162_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((105_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((76_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -96,11 +97,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
(51_009_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((123_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((118_000 as Weight).saturating_mul(s as Weight))
|
||||
(27_470_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((99_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((48_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -108,11 +109,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
(89_517_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((114_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((23_000 as Weight).saturating_mul(s as Weight))
|
||||
(42_886_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((100_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((49_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -120,11 +121,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
(87_903_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((121_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((56_000 as Weight).saturating_mul(s as Weight))
|
||||
(42_528_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((104_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((46_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -132,11 +133,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
(54_463_000 as Weight)
|
||||
(28_372_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((110_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((123_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((149_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((71_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -144,11 +145,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
(53_674_000 as Weight)
|
||||
(28_117_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((137_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((152_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((108_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((76_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -159,22 +160,22 @@ impl WeightInfo for () {
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
||||
(50_642_000 as Weight)
|
||||
(27_545_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((144_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((177_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((111_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((78_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
// Storage: Vesting Vesting (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
(50_830_000 as Weight)
|
||||
(27_638_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((115_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((112_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((102_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((41_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
@@ -182,11 +183,11 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
||||
(52_151_000 as Weight)
|
||||
(27_571_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((130_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((162_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((105_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((76_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -194,11 +195,11 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
||||
(51_009_000 as Weight)
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((123_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 9_000
|
||||
.saturating_add((118_000 as Weight).saturating_mul(s as Weight))
|
||||
(27_470_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((99_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((48_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -206,11 +207,11 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
(89_517_000 as Weight)
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((114_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 10_000
|
||||
.saturating_add((23_000 as Weight).saturating_mul(s as Weight))
|
||||
(42_886_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((100_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((49_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -218,11 +219,11 @@ impl WeightInfo for () {
|
||||
// Storage: System Account (r:2 w:2)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
||||
(87_903_000 as Weight)
|
||||
// Standard Error: 6_000
|
||||
.saturating_add((121_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 12_000
|
||||
.saturating_add((56_000 as Weight).saturating_mul(s as Weight))
|
||||
(42_528_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((104_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((46_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
@@ -230,11 +231,11 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
(54_463_000 as Weight)
|
||||
(28_372_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((110_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((123_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 5_000
|
||||
.saturating_add((149_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((71_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
@@ -242,11 +243,11 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: System Account (r:1 w:1)
|
||||
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
||||
(53_674_000 as Weight)
|
||||
(28_117_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((137_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 4_000
|
||||
.saturating_add((152_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add((108_000 as Weight).saturating_mul(l as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((76_000 as Weight).saturating_mul(s as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user