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
+118 -63
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_referenda
//!
//! 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/referenda/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -80,14 +83,16 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Scheduler Agenda (r:1 w:1)
// Storage: Referenda ReferendumInfoFor (r:0 w:1)
fn submit() -> Weight {
Weight::from_ref_time(34_640_000 as u64)
// Minimum execution time: 41_475 nanoseconds.
Weight::from_ref_time(42_153_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn place_decision_deposit_preparing() -> Weight {
Weight::from_ref_time(44_290_000 as u64)
// Minimum execution time: 52_291 nanoseconds.
Weight::from_ref_time(53_147_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -95,7 +100,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda DecidingCount (r:1 w:0)
// Storage: Referenda TrackQueue (r:1 w:1)
fn place_decision_deposit_queued() -> Weight {
Weight::from_ref_time(49_428_000 as u64)
// Minimum execution time: 57_322 nanoseconds.
Weight::from_ref_time(58_145_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -103,7 +109,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda DecidingCount (r:1 w:0)
// Storage: Referenda TrackQueue (r:1 w:1)
fn place_decision_deposit_not_queued() -> Weight {
Weight::from_ref_time(50_076_000 as u64)
// Minimum execution time: 57_170 nanoseconds.
Weight::from_ref_time(58_012_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -111,7 +118,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn place_decision_deposit_passing() -> Weight {
Weight::from_ref_time(55_935_000 as u64)
// Minimum execution time: 67_805 nanoseconds.
Weight::from_ref_time(68_844_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -119,34 +127,39 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn place_decision_deposit_failing() -> Weight {
Weight::from_ref_time(52_921_000 as u64)
// Minimum execution time: 63_408 nanoseconds.
Weight::from_ref_time(64_049_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
fn refund_decision_deposit() -> Weight {
Weight::from_ref_time(29_160_000 as u64)
// Minimum execution time: 36_639 nanoseconds.
Weight::from_ref_time(37_329_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn cancel() -> Weight {
Weight::from_ref_time(34_972_000 as u64)
// Minimum execution time: 42_442 nanoseconds.
Weight::from_ref_time(43_006_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn kill() -> Weight {
Weight::from_ref_time(60_620_000 as u64)
// Minimum execution time: 74_681 nanoseconds.
Weight::from_ref_time(75_567_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Referenda TrackQueue (r:1 w:0)
// Storage: Referenda DecidingCount (r:1 w:1)
fn one_fewer_deciding_queue_empty() -> Weight {
Weight::from_ref_time(9_615_000 as u64)
// Minimum execution time: 14_262 nanoseconds.
Weight::from_ref_time(14_504_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -154,7 +167,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn one_fewer_deciding_failing() -> Weight {
Weight::from_ref_time(113_077_000 as u64)
// Minimum execution time: 88_618 nanoseconds.
Weight::from_ref_time(89_443_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -162,7 +176,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn one_fewer_deciding_passing() -> Weight {
Weight::from_ref_time(114_376_000 as u64)
// Minimum execution time: 89_784 nanoseconds.
Weight::from_ref_time(90_619_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
@@ -170,7 +185,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_requeued_insertion() -> Weight {
Weight::from_ref_time(43_901_000 as u64)
// Minimum execution time: 73_179 nanoseconds.
Weight::from_ref_time(74_025_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -178,7 +194,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_requeued_slide() -> Weight {
Weight::from_ref_time(43_279_000 as u64)
// Minimum execution time: 73_168 nanoseconds.
Weight::from_ref_time(73_769_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -187,7 +204,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_queued() -> Weight {
Weight::from_ref_time(45_564_000 as u64)
// Minimum execution time: 75_027 nanoseconds.
Weight::from_ref_time(76_220_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -196,27 +214,31 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_not_queued() -> Weight {
Weight::from_ref_time(45_061_000 as u64)
// Minimum execution time: 74_815 nanoseconds.
Weight::from_ref_time(75_803_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_no_deposit() -> Weight {
Weight::from_ref_time(23_757_000 as u64)
// Minimum execution time: 31_877 nanoseconds.
Weight::from_ref_time(32_236_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_preparing() -> Weight {
Weight::from_ref_time(24_781_000 as u64)
// Minimum execution time: 33_322 nanoseconds.
Weight::from_ref_time(33_762_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
fn nudge_referendum_timed_out() -> Weight {
Weight::from_ref_time(18_344_000 as u64)
// Minimum execution time: 25_393 nanoseconds.
Weight::from_ref_time(25_913_000 as u64)
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
}
@@ -224,7 +246,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_begin_deciding_failing() -> Weight {
Weight::from_ref_time(34_752_000 as u64)
// Minimum execution time: 47_114 nanoseconds.
Weight::from_ref_time(47_586_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -232,51 +255,57 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_begin_deciding_passing() -> Weight {
Weight::from_ref_time(37_055_000 as u64)
// Minimum execution time: 48_443 nanoseconds.
Weight::from_ref_time(50_003_000 as u64)
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_begin_confirming() -> Weight {
Weight::from_ref_time(31_442_000 as u64)
// Minimum execution time: 44_556 nanoseconds.
Weight::from_ref_time(45_167_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_end_confirming() -> Weight {
Weight::from_ref_time(33_201_000 as u64)
// Minimum execution time: 45_474 nanoseconds.
Weight::from_ref_time(46_105_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_continue_not_confirming() -> Weight {
Weight::from_ref_time(30_047_000 as u64)
// Minimum execution time: 42_795 nanoseconds.
Weight::from_ref_time(43_123_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_continue_confirming() -> Weight {
Weight::from_ref_time(29_195_000 as u64)
// Minimum execution time: 41_928 nanoseconds.
Weight::from_ref_time(42_272_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Preimage StatusFor (r:1 w:1)
fn nudge_referendum_approved() -> Weight {
Weight::from_ref_time(50_119_000 as u64)
.saturating_add(T::DbWeight::get().reads(5 as u64))
.saturating_add(T::DbWeight::get().writes(5 as u64))
// Minimum execution time: 55_186 nanoseconds.
Weight::from_ref_time(55_714_000 as u64)
.saturating_add(T::DbWeight::get().reads(4 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_rejected() -> Weight {
Weight::from_ref_time(32_203_000 as u64)
// Minimum execution time: 44_892 nanoseconds.
Weight::from_ref_time(45_353_000 as u64)
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
@@ -288,14 +317,16 @@ impl WeightInfo for () {
// Storage: Scheduler Agenda (r:1 w:1)
// Storage: Referenda ReferendumInfoFor (r:0 w:1)
fn submit() -> Weight {
Weight::from_ref_time(34_640_000 as u64)
// Minimum execution time: 41_475 nanoseconds.
Weight::from_ref_time(42_153_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn place_decision_deposit_preparing() -> Weight {
Weight::from_ref_time(44_290_000 as u64)
// Minimum execution time: 52_291 nanoseconds.
Weight::from_ref_time(53_147_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -303,7 +334,8 @@ impl WeightInfo for () {
// Storage: Referenda DecidingCount (r:1 w:0)
// Storage: Referenda TrackQueue (r:1 w:1)
fn place_decision_deposit_queued() -> Weight {
Weight::from_ref_time(49_428_000 as u64)
// Minimum execution time: 57_322 nanoseconds.
Weight::from_ref_time(58_145_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
@@ -311,7 +343,8 @@ impl WeightInfo for () {
// Storage: Referenda DecidingCount (r:1 w:0)
// Storage: Referenda TrackQueue (r:1 w:1)
fn place_decision_deposit_not_queued() -> Weight {
Weight::from_ref_time(50_076_000 as u64)
// Minimum execution time: 57_170 nanoseconds.
Weight::from_ref_time(58_012_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
@@ -319,7 +352,8 @@ impl WeightInfo for () {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn place_decision_deposit_passing() -> Weight {
Weight::from_ref_time(55_935_000 as u64)
// Minimum execution time: 67_805 nanoseconds.
Weight::from_ref_time(68_844_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -327,34 +361,39 @@ impl WeightInfo for () {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn place_decision_deposit_failing() -> Weight {
Weight::from_ref_time(52_921_000 as u64)
// Minimum execution time: 63_408 nanoseconds.
Weight::from_ref_time(64_049_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
fn refund_decision_deposit() -> Weight {
Weight::from_ref_time(29_160_000 as u64)
// Minimum execution time: 36_639 nanoseconds.
Weight::from_ref_time(37_329_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn cancel() -> Weight {
Weight::from_ref_time(34_972_000 as u64)
// Minimum execution time: 42_442 nanoseconds.
Weight::from_ref_time(43_006_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn kill() -> Weight {
Weight::from_ref_time(60_620_000 as u64)
// Minimum execution time: 74_681 nanoseconds.
Weight::from_ref_time(75_567_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: Referenda TrackQueue (r:1 w:0)
// Storage: Referenda DecidingCount (r:1 w:1)
fn one_fewer_deciding_queue_empty() -> Weight {
Weight::from_ref_time(9_615_000 as u64)
// Minimum execution time: 14_262 nanoseconds.
Weight::from_ref_time(14_504_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -362,7 +401,8 @@ impl WeightInfo for () {
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn one_fewer_deciding_failing() -> Weight {
Weight::from_ref_time(113_077_000 as u64)
// Minimum execution time: 88_618 nanoseconds.
Weight::from_ref_time(89_443_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -370,7 +410,8 @@ impl WeightInfo for () {
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
fn one_fewer_deciding_passing() -> Weight {
Weight::from_ref_time(114_376_000 as u64)
// Minimum execution time: 89_784 nanoseconds.
Weight::from_ref_time(90_619_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
@@ -378,7 +419,8 @@ impl WeightInfo for () {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_requeued_insertion() -> Weight {
Weight::from_ref_time(43_901_000 as u64)
// Minimum execution time: 73_179 nanoseconds.
Weight::from_ref_time(74_025_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -386,7 +428,8 @@ impl WeightInfo for () {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_requeued_slide() -> Weight {
Weight::from_ref_time(43_279_000 as u64)
// Minimum execution time: 73_168 nanoseconds.
Weight::from_ref_time(73_769_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -395,7 +438,8 @@ impl WeightInfo for () {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_queued() -> Weight {
Weight::from_ref_time(45_564_000 as u64)
// Minimum execution time: 75_027 nanoseconds.
Weight::from_ref_time(76_220_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -404,27 +448,31 @@ impl WeightInfo for () {
// Storage: Referenda TrackQueue (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_not_queued() -> Weight {
Weight::from_ref_time(45_061_000 as u64)
// Minimum execution time: 74_815 nanoseconds.
Weight::from_ref_time(75_803_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_no_deposit() -> Weight {
Weight::from_ref_time(23_757_000 as u64)
// Minimum execution time: 31_877 nanoseconds.
Weight::from_ref_time(32_236_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_preparing() -> Weight {
Weight::from_ref_time(24_781_000 as u64)
// Minimum execution time: 33_322 nanoseconds.
Weight::from_ref_time(33_762_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
fn nudge_referendum_timed_out() -> Weight {
Weight::from_ref_time(18_344_000 as u64)
// Minimum execution time: 25_393 nanoseconds.
Weight::from_ref_time(25_913_000 as u64)
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(1 as u64))
}
@@ -432,7 +480,8 @@ impl WeightInfo for () {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_begin_deciding_failing() -> Weight {
Weight::from_ref_time(34_752_000 as u64)
// Minimum execution time: 47_114 nanoseconds.
Weight::from_ref_time(47_586_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -440,51 +489,57 @@ impl WeightInfo for () {
// Storage: Referenda DecidingCount (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_begin_deciding_passing() -> Weight {
Weight::from_ref_time(37_055_000 as u64)
// Minimum execution time: 48_443 nanoseconds.
Weight::from_ref_time(50_003_000 as u64)
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_begin_confirming() -> Weight {
Weight::from_ref_time(31_442_000 as u64)
// Minimum execution time: 44_556 nanoseconds.
Weight::from_ref_time(45_167_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_end_confirming() -> Weight {
Weight::from_ref_time(33_201_000 as u64)
// Minimum execution time: 45_474 nanoseconds.
Weight::from_ref_time(46_105_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_continue_not_confirming() -> Weight {
Weight::from_ref_time(30_047_000 as u64)
// Minimum execution time: 42_795 nanoseconds.
Weight::from_ref_time(43_123_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_continue_confirming() -> Weight {
Weight::from_ref_time(29_195_000 as u64)
// Minimum execution time: 41_928 nanoseconds.
Weight::from_ref_time(42_272_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:2 w:2)
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Preimage StatusFor (r:1 w:1)
fn nudge_referendum_approved() -> Weight {
Weight::from_ref_time(50_119_000 as u64)
.saturating_add(RocksDbWeight::get().reads(5 as u64))
.saturating_add(RocksDbWeight::get().writes(5 as u64))
// Minimum execution time: 55_186 nanoseconds.
Weight::from_ref_time(55_714_000 as u64)
.saturating_add(RocksDbWeight::get().reads(4 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// Storage: Referenda ReferendumInfoFor (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
fn nudge_referendum_rejected() -> Weight {
Weight::from_ref_time(32_203_000 as u64)
// Minimum execution time: 44_892 nanoseconds.
Weight::from_ref_time(45_353_000 as u64)
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}