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:
Shawn Tabrizi
2022-11-08 14:50:28 -04:00
committed by GitHub
parent e4c341e023
commit 78cddd7631
43 changed files with 4169 additions and 3264 deletions
+68 -35
View File
@@ -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_bounties
//!
//! 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/bounties/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -64,42 +67,51 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: System Account (r:1 w:1)
// Storage: Bounties BountyDescriptions (r:0 w:1)
// Storage: Bounties Bounties (r:0 w:1)
fn propose_bounty(_d: u32, ) -> Weight {
Weight::from_ref_time(28_903_000 as u64)
/// The range of component `d` is `[0, 300]`.
fn propose_bounty(d: u32, ) -> Weight {
// Minimum execution time: 33_514 nanoseconds.
Weight::from_ref_time(34_906_466 as u64)
// Standard Error: 226
.saturating_add(Weight::from_ref_time(2_241 as u64).saturating_mul(d as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: Bounties BountyApprovals (r:1 w:1)
fn approve_bounty() -> Weight {
Weight::from_ref_time(10_997_000 as u64)
// Minimum execution time: 14_129 nanoseconds.
Weight::from_ref_time(14_424_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
fn propose_curator() -> Weight {
Weight::from_ref_time(8_967_000 as u64)
// Minimum execution time: 13_675 nanoseconds.
Weight::from_ref_time(13_964_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn unassign_curator() -> Weight {
Weight::from_ref_time(28_665_000 as u64)
// Minimum execution time: 38_926 nanoseconds.
Weight::from_ref_time(40_183_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn accept_curator() -> Weight {
Weight::from_ref_time(25_141_000 as u64)
// Minimum execution time: 33_774 nanoseconds.
Weight::from_ref_time(34_295_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
fn award_bounty() -> Weight {
Weight::from_ref_time(21_295_000 as u64)
// Minimum execution time: 28_558 nanoseconds.
Weight::from_ref_time(29_293_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -108,7 +120,8 @@ 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 {
Weight::from_ref_time(67_951_000 as u64)
// Minimum execution time: 77_042 nanoseconds.
Weight::from_ref_time(77_730_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(6 as u64))
}
@@ -117,7 +130,8 @@ 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 {
Weight::from_ref_time(33_654_000 as u64)
// Minimum execution time: 43_632 nanoseconds.
Weight::from_ref_time(44_196_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -126,23 +140,27 @@ 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 {
Weight::from_ref_time(50_582_000 as u64)
// Minimum execution time: 59_519 nanoseconds.
Weight::from_ref_time(59_967_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
fn extend_bounty_expiry() -> Weight {
Weight::from_ref_time(18_322_000 as u64)
// Minimum execution time: 25_263 nanoseconds.
Weight::from_ref_time(25_788_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Bounties BountyApprovals (r:1 w:1)
// Storage: Bounties Bounties (r:1 w:1)
// Storage: System Account (r:2 w:2)
// Storage: Bounties Bounties (r:2 w:2)
// Storage: System Account (r:4 w:4)
/// The range of component `b` is `[0, 100]`.
fn spend_funds(b: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 17_000
.saturating_add(Weight::from_ref_time(29_233_000 as u64).saturating_mul(b as u64))
// Minimum execution time: 8_953 nanoseconds.
Weight::from_ref_time(23_242_227 as u64)
// Standard Error: 13_187
.saturating_add(Weight::from_ref_time(26_727_999 as u64).saturating_mul(b as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(b as u64)))
.saturating_add(T::DbWeight::get().writes(1 as u64))
@@ -156,42 +174,51 @@ impl WeightInfo for () {
// Storage: System Account (r:1 w:1)
// Storage: Bounties BountyDescriptions (r:0 w:1)
// Storage: Bounties Bounties (r:0 w:1)
fn propose_bounty(_d: u32, ) -> Weight {
Weight::from_ref_time(28_903_000 as u64)
/// The range of component `d` is `[0, 300]`.
fn propose_bounty(d: u32, ) -> Weight {
// Minimum execution time: 33_514 nanoseconds.
Weight::from_ref_time(34_906_466 as u64)
// Standard Error: 226
.saturating_add(Weight::from_ref_time(2_241 as u64).saturating_mul(d as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: Bounties BountyApprovals (r:1 w:1)
fn approve_bounty() -> Weight {
Weight::from_ref_time(10_997_000 as u64)
// Minimum execution time: 14_129 nanoseconds.
Weight::from_ref_time(14_424_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
fn propose_curator() -> Weight {
Weight::from_ref_time(8_967_000 as u64)
// Minimum execution time: 13_675 nanoseconds.
Weight::from_ref_time(13_964_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn unassign_curator() -> Weight {
Weight::from_ref_time(28_665_000 as u64)
// Minimum execution time: 38_926 nanoseconds.
Weight::from_ref_time(40_183_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: System Account (r:1 w:1)
fn accept_curator() -> Weight {
Weight::from_ref_time(25_141_000 as u64)
// Minimum execution time: 33_774 nanoseconds.
Weight::from_ref_time(34_295_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
// Storage: ChildBounties ParentChildBounties (r:1 w:0)
fn award_bounty() -> Weight {
Weight::from_ref_time(21_295_000 as u64)
// Minimum execution time: 28_558 nanoseconds.
Weight::from_ref_time(29_293_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -200,7 +227,8 @@ impl WeightInfo for () {
// Storage: ChildBounties ChildrenCuratorFees (r:1 w:1)
// Storage: Bounties BountyDescriptions (r:0 w:1)
fn claim_bounty() -> Weight {
Weight::from_ref_time(67_951_000 as u64)
// Minimum execution time: 77_042 nanoseconds.
Weight::from_ref_time(77_730_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(6 as u64))
}
@@ -209,7 +237,8 @@ impl WeightInfo for () {
// Storage: System Account (r:1 w:1)
// Storage: Bounties BountyDescriptions (r:0 w:1)
fn close_bounty_proposed() -> Weight {
Weight::from_ref_time(33_654_000 as u64)
// Minimum execution time: 43_632 nanoseconds.
Weight::from_ref_time(44_196_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -218,23 +247,27 @@ impl WeightInfo for () {
// Storage: System Account (r:2 w:2)
// Storage: Bounties BountyDescriptions (r:0 w:1)
fn close_bounty_active() -> Weight {
Weight::from_ref_time(50_582_000 as u64)
// Minimum execution time: 59_519 nanoseconds.
Weight::from_ref_time(59_967_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: Bounties Bounties (r:1 w:1)
fn extend_bounty_expiry() -> Weight {
Weight::from_ref_time(18_322_000 as u64)
// Minimum execution time: 25_263 nanoseconds.
Weight::from_ref_time(25_788_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Bounties BountyApprovals (r:1 w:1)
// Storage: Bounties Bounties (r:1 w:1)
// Storage: System Account (r:2 w:2)
// Storage: Bounties Bounties (r:2 w:2)
// Storage: System Account (r:4 w:4)
/// The range of component `b` is `[0, 100]`.
fn spend_funds(b: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 17_000
.saturating_add(Weight::from_ref_time(29_233_000 as u64).saturating_mul(b as u64))
// Minimum execution time: 8_953 nanoseconds.
Weight::from_ref_time(23_242_227 as u64)
// Standard Error: 13_187
.saturating_add(Weight::from_ref_time(26_727_999 as u64).saturating_mul(b as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(b as u64)))
.saturating_add(RocksDbWeight::get().writes(1 as u64))