mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
New Weights for All Pallets (#12325)
* new weights for everything * fix * fmt * new batch * fmt * new batch * Update run_all_benchmarks.sh * add headers * update weights * Update lib.rs * block and extrinsic weight
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@@ -18,7 +18,8 @@
|
||||
//! Autogenerated weights for pallet_conviction_voting
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2022-05-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
|
||||
// Executed Command:
|
||||
@@ -32,8 +33,10 @@
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
// --heap-pages=4096
|
||||
// --output=./frame/conviction-voting/src/weights.rs
|
||||
// --header=./HEADER-APACHE2
|
||||
// --template=./.maintain/frame-weight-template.hbs
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -62,7 +65,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn vote_new() -> Weight {
|
||||
Weight::from_ref_time(148_804_000 as u64)
|
||||
// Minimum execution time: 131_633 nanoseconds.
|
||||
Weight::from_ref_time(132_742_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
}
|
||||
@@ -72,7 +76,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn vote_existing() -> Weight {
|
||||
Weight::from_ref_time(313_333_000 as u64)
|
||||
// Minimum execution time: 176_240 nanoseconds.
|
||||
Weight::from_ref_time(183_274_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(6 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(6 as u64))
|
||||
}
|
||||
@@ -80,14 +85,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn remove_vote() -> Weight {
|
||||
Weight::from_ref_time(300_591_000 as u64)
|
||||
// Minimum execution time: 158_880 nanoseconds.
|
||||
Weight::from_ref_time(164_648_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:0)
|
||||
fn remove_other_vote() -> Weight {
|
||||
Weight::from_ref_time(53_887_000 as u64)
|
||||
// Minimum execution time: 60_330 nanoseconds.
|
||||
Weight::from_ref_time(61_588_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -96,10 +103,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(51_518_000 as u64)
|
||||
// Standard Error: 83_000
|
||||
.saturating_add(Weight::from_ref_time(27_235_000 as u64).saturating_mul(r as u64))
|
||||
// Minimum execution time: 63_088 nanoseconds.
|
||||
Weight::from_ref_time(67_803_536 as u64)
|
||||
// Standard Error: 197_102
|
||||
.saturating_add(Weight::from_ref_time(31_557_563 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(4 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as u64))
|
||||
@@ -108,10 +117,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(37_885_000 as u64)
|
||||
// Standard Error: 75_000
|
||||
.saturating_add(Weight::from_ref_time(24_395_000 as u64).saturating_mul(r as u64))
|
||||
// Minimum execution time: 45_150 nanoseconds.
|
||||
Weight::from_ref_time(51_547_530 as u64)
|
||||
// Standard Error: 771_127
|
||||
.saturating_add(Weight::from_ref_time(26_927_969 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
||||
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
||||
@@ -121,7 +132,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn unlock() -> Weight {
|
||||
Weight::from_ref_time(67_703_000 as u64)
|
||||
// Minimum execution time: 75_067 nanoseconds.
|
||||
Weight::from_ref_time(76_888_000 as u64)
|
||||
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3 as u64))
|
||||
}
|
||||
@@ -135,7 +147,8 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn vote_new() -> Weight {
|
||||
Weight::from_ref_time(148_804_000 as u64)
|
||||
// Minimum execution time: 131_633 nanoseconds.
|
||||
Weight::from_ref_time(132_742_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
}
|
||||
@@ -145,7 +158,8 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn vote_existing() -> Weight {
|
||||
Weight::from_ref_time(313_333_000 as u64)
|
||||
// Minimum execution time: 176_240 nanoseconds.
|
||||
Weight::from_ref_time(183_274_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(6 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(6 as u64))
|
||||
}
|
||||
@@ -153,14 +167,16 @@ impl WeightInfo for () {
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
fn remove_vote() -> Weight {
|
||||
Weight::from_ref_time(300_591_000 as u64)
|
||||
// Minimum execution time: 158_880 nanoseconds.
|
||||
Weight::from_ref_time(164_648_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
}
|
||||
// Storage: ConvictionVoting VotingFor (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:0)
|
||||
fn remove_other_vote() -> Weight {
|
||||
Weight::from_ref_time(53_887_000 as u64)
|
||||
// Minimum execution time: 60_330 nanoseconds.
|
||||
Weight::from_ref_time(61_588_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as u64))
|
||||
}
|
||||
@@ -169,10 +185,12 @@ impl WeightInfo for () {
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn delegate(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(51_518_000 as u64)
|
||||
// Standard Error: 83_000
|
||||
.saturating_add(Weight::from_ref_time(27_235_000 as u64).saturating_mul(r as u64))
|
||||
// Minimum execution time: 63_088 nanoseconds.
|
||||
Weight::from_ref_time(67_803_536 as u64)
|
||||
// Standard Error: 197_102
|
||||
.saturating_add(Weight::from_ref_time(31_557_563 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(4 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(4 as u64))
|
||||
@@ -181,10 +199,12 @@ impl WeightInfo for () {
|
||||
// Storage: ConvictionVoting VotingFor (r:2 w:2)
|
||||
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
|
||||
// Storage: Scheduler Agenda (r:2 w:2)
|
||||
/// The range of component `r` is `[0, 1]`.
|
||||
fn undelegate(r: u32, ) -> Weight {
|
||||
Weight::from_ref_time(37_885_000 as u64)
|
||||
// Standard Error: 75_000
|
||||
.saturating_add(Weight::from_ref_time(24_395_000 as u64).saturating_mul(r as u64))
|
||||
// Minimum execution time: 45_150 nanoseconds.
|
||||
Weight::from_ref_time(51_547_530 as u64)
|
||||
// Standard Error: 771_127
|
||||
.saturating_add(Weight::from_ref_time(26_927_969 as u64).saturating_mul(r as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as u64))
|
||||
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(r as u64)))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as u64))
|
||||
@@ -194,7 +214,8 @@ impl WeightInfo for () {
|
||||
// Storage: ConvictionVoting ClassLocksFor (r:1 w:1)
|
||||
// Storage: Balances Locks (r:1 w:1)
|
||||
fn unlock() -> Weight {
|
||||
Weight::from_ref_time(67_703_000 as u64)
|
||||
// Minimum execution time: 75_067 nanoseconds.
|
||||
Weight::from_ref_time(76_888_000 as u64)
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3 as u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user