From 8dadfbada3f2df998f1420860d620a3aaf1e932b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 14:03:09 +0800 Subject: [PATCH] Update pallet weights (#470) * [create-pull-request] automated change * noop, to trigger ci --------- Co-authored-by: imstar15 Co-authored-by: imstar15 --- pallets/automation-price/src/weights.rs | 282 ++++-- pallets/automation-time/src/weights.rs | 1186 +++++++++++++---------- pallets/valve/src/weights.rs | 417 ++++---- pallets/vesting/src/weights.rs | 109 ++- 4 files changed, 1178 insertions(+), 816 deletions(-) diff --git a/pallets/automation-price/src/weights.rs b/pallets/automation-price/src/weights.rs index ca63e9e7..73783d77 100644 --- a/pallets/automation-price/src/weights.rs +++ b/pallets/automation-price/src/weights.rs @@ -1,31 +1,35 @@ -// This file is part of Substrate. +// This file is part of OAK-blockchain. -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) OAK Network Ltd. +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 -// Licensed under the Apache License, Version 2.0 (the "License"); -// 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 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . //! Autogenerated weights for pallet_automation_price //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-09-28, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `copvan.local`, CPU: `` +//! DATE: 2023-11-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `actions-runner-1`, CPU: `Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("turing-dev"), DB CACHE: 1024 // Executed Command: -// target/release/oak-collator +// ./oak-collator // benchmark // pallet +// --header +// ./.maintain/HEADER-GPL3 // --chain // turing-dev // --execution @@ -41,24 +45,26 @@ // --steps // 50 // --output -// ./pallets/automation-price/src/raw-weights.rs +// ./automation_price-raw-weights.rs // --template // ./.maintain/frame-weight-template.hbs // Summary: -//:initialize_asset_extrinsic 14_098_714 -//:asset_price_update_extrinsic 9_980_215 -//:schedule_xcmp_task_extrinsic 12_000_000 -//:cancel_task_extrinsic 20_000_000 -//:run_xcmp_task 30_000_000 -//:emit_event 4_000_000 +//:initialize_asset_extrinsic 20_135_952,3541 +//:asset_price_update_extrinsic 7_743_581,1493 +//:schedule_xcmp_task_extrinsic 12_226_000,1493 +//:cancel_task_extrinsic 9_131_000,3579 +//:run_xcmp_task 38_582_000,3946 +//:remove_task 21_659_000,3579 +//:emit_event 5_287_000,0 #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions needed for pallet_automation_price. pub trait WeightInfo { @@ -67,117 +73,189 @@ pub trait WeightInfo { fn schedule_xcmp_task_extrinsic() -> Weight; fn cancel_task_extrinsic() -> Weight; fn run_xcmp_task() -> Weight; + fn remove_task() -> Weight; fn emit_event() -> Weight; - fn remove_task() -> Weight; } /// Weights for pallet_automation_price using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - // Storage: AutomationPrice AssetRegistry (r:1 w:1) - // Proof Skipped: AutomationPrice AssetRegistry (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice AssetRegistry (r:1 w:1) + /// Proof Skipped: AutomationPrice AssetRegistry (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[1, 5]`. - fn initialize_asset_extrinsic(_v: u32, ) -> Weight { - Weight::from_ref_time(14_098_714 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + fn initialize_asset_extrinsic(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `3541` + // Minimum execution time: 19_700_000 picoseconds. + Weight::from_parts(20_135_952, 3541) + // Standard Error: 3_223 + .saturating_add(Weight::from_parts(14_093, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } - // Storage: AutomationPrice AssetRegistry (r:1 w:0) - // Proof Skipped: AutomationPrice AssetRegistry (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) /// The range of component `v` is `[1, 100]`. fn asset_price_update_extrinsic(v: u32, ) -> Weight { - Weight::from_ref_time(9_980_215 as u64) - // Standard Error: 617 - .saturating_add(Weight::from_ref_time(141_778 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 7_548_000 picoseconds. + Weight::from_parts(7_743_581, 1493) + // Standard Error: 160 + .saturating_add(Weight::from_parts(159_207, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) fn schedule_xcmp_task_extrinsic() -> Weight { - Weight::from_ref_time(12_000_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 11_992_000 picoseconds. + Weight::from_parts(12_226_000, 1493) + .saturating_add(T::DbWeight::get().reads(1_u64)) } - // Storage: AutomationPrice Tasks (r:1 w:1) - // Proof Skipped: AutomationPrice Tasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationPrice AccountTasks (r:0 w:1) - // Proof Skipped: AutomationPrice AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationPrice SortedTasksIndex (r:0 w:1) - // Proof Skipped: AutomationPrice SortedTasksIndex (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice Tasks (r:1 w:0) + /// Proof Skipped: AutomationPrice Tasks (max_values: None, max_size: None, mode: Measured) fn cancel_task_extrinsic() -> Weight { - Weight::from_ref_time(20_000_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `114` + // Estimated: `3579` + // Minimum execution time: 8_917_000 picoseconds. + Weight::from_parts(9_131_000, 3579) + .saturating_add(T::DbWeight::get().reads(1_u64)) } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) - // Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) + /// Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn run_xcmp_task() -> Weight { - Weight::from_ref_time(30_000_000 as u64) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - } - fn emit_event() -> Weight { - Weight::from_ref_time(4_000_000 as u64) + // Proof Size summary in bytes: + // Measured: `481` + // Estimated: `3946` + // Minimum execution time: 38_126_000 picoseconds. + Weight::from_parts(38_582_000, 3946) + .saturating_add(T::DbWeight::get().reads(3_u64)) } - + /// Storage: AutomationPrice SortedTasksIndex (r:1 w:0) + /// Proof Skipped: AutomationPrice SortedTasksIndex (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice SortedTasksByExpiration (r:1 w:1) + /// Proof Skipped: AutomationPrice SortedTasksByExpiration (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationPrice TaskStats (r:1 w:0) + /// Proof Skipped: AutomationPrice TaskStats (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice AccountStats (r:1 w:0) + /// Proof Skipped: AutomationPrice AccountStats (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice Tasks (r:0 w:1) + /// Proof Skipped: AutomationPrice Tasks (max_values: None, max_size: None, mode: Measured) fn remove_task() -> Weight { - Weight::from_ref_time(4_000_000 as u64) + // Proof Size summary in bytes: + // Measured: `114` + // Estimated: `3579` + // Minimum execution time: 21_206_000 picoseconds. + Weight::from_parts(21_659_000, 3579) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + fn emit_event() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_027_000 picoseconds. + Weight::from_parts(5_287_000, 0) } } // For backwards compatibility and tests impl WeightInfo for () { - // Storage: AutomationPrice AssetRegistry (r:1 w:1) - // Proof Skipped: AutomationPrice AssetRegistry (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice AssetRegistry (r:1 w:1) + /// Proof Skipped: AutomationPrice AssetRegistry (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[1, 5]`. - fn initialize_asset_extrinsic(_v: u32, ) -> Weight { - Weight::from_ref_time(14_098_714 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + fn initialize_asset_extrinsic(v: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `3541` + // Minimum execution time: 19_700_000 picoseconds. + Weight::from_parts(20_135_952, 3541) + // Standard Error: 3_223 + .saturating_add(Weight::from_parts(14_093, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } - // Storage: AutomationPrice AssetRegistry (r:1 w:0) - // Proof Skipped: AutomationPrice AssetRegistry (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) /// The range of component `v` is `[1, 100]`. fn asset_price_update_extrinsic(v: u32, ) -> Weight { - Weight::from_ref_time(9_980_215 as u64) - // Standard Error: 617 - .saturating_add(Weight::from_ref_time(141_778 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 7_548_000 picoseconds. + Weight::from_parts(7_743_581, 1493) + // Standard Error: 160 + .saturating_add(Weight::from_parts(159_207, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) fn schedule_xcmp_task_extrinsic() -> Weight { - Weight::from_ref_time(12_000_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 11_992_000 picoseconds. + Weight::from_parts(12_226_000, 1493) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } - // Storage: AutomationPrice Tasks (r:1 w:1) - // Proof Skipped: AutomationPrice Tasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationPrice AccountTasks (r:0 w:1) - // Proof Skipped: AutomationPrice AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationPrice SortedTasksIndex (r:0 w:1) - // Proof Skipped: AutomationPrice SortedTasksIndex (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice Tasks (r:1 w:0) + /// Proof Skipped: AutomationPrice Tasks (max_values: None, max_size: None, mode: Measured) fn cancel_task_extrinsic() -> Weight { - Weight::from_ref_time(20_000_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) + // Proof Size summary in bytes: + // Measured: `114` + // Estimated: `3579` + // Minimum execution time: 8_917_000 picoseconds. + Weight::from_parts(9_131_000, 3579) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) - // Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) + /// Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn run_xcmp_task() -> Weight { - Weight::from_ref_time(30_000_000 as u64) - .saturating_add(RocksDbWeight::get().reads(3 as u64)) - } - fn emit_event() -> Weight { - Weight::from_ref_time(4_000_000 as u64) + // Proof Size summary in bytes: + // Measured: `481` + // Estimated: `3946` + // Minimum execution time: 38_126_000 picoseconds. + Weight::from_parts(38_582_000, 3946) + .saturating_add(RocksDbWeight::get().reads(3_u64)) } - + /// Storage: AutomationPrice SortedTasksIndex (r:1 w:0) + /// Proof Skipped: AutomationPrice SortedTasksIndex (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice SortedTasksByExpiration (r:1 w:1) + /// Proof Skipped: AutomationPrice SortedTasksByExpiration (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationPrice TaskStats (r:1 w:0) + /// Proof Skipped: AutomationPrice TaskStats (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice AccountStats (r:1 w:0) + /// Proof Skipped: AutomationPrice AccountStats (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationPrice Tasks (r:0 w:1) + /// Proof Skipped: AutomationPrice Tasks (max_values: None, max_size: None, mode: Measured) fn remove_task() -> Weight { - Weight::from_ref_time(4_000_000 as u64) + // Proof Size summary in bytes: + // Measured: `114` + // Estimated: `3579` + // Minimum execution time: 21_206_000 picoseconds. + Weight::from_parts(21_659_000, 3579) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + fn emit_event() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_027_000 picoseconds. + Weight::from_parts(5_287_000, 0) } } diff --git a/pallets/automation-time/src/weights.rs b/pallets/automation-time/src/weights.rs index 226e77a8..192efa68 100644 --- a/pallets/automation-time/src/weights.rs +++ b/pallets/automation-time/src/weights.rs @@ -1,31 +1,35 @@ -// This file is part of Substrate. +// This file is part of OAK-blockchain. -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) OAK Network Ltd. +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 -// Licensed under the Apache License, Version 2.0 (the "License"); -// 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 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . //! Autogenerated weights for pallet_automation_time //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `dashing-dolphin`, CPU: `Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz` +//! DATE: 2023-11-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `actions-runner-1`, CPU: `Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("turing-dev"), DB CACHE: 1024 // Executed Command: // ./oak-collator // benchmark // pallet +// --header +// ./.maintain/HEADER-GPL3 // --chain // turing-dev // --execution @@ -46,32 +50,34 @@ // ./.maintain/frame-weight-template.hbs // Summary: -//:schedule_xcmp_task_full 130_899_385 -//:schedule_auto_compound_delegated_stake_task_full 95_776_000 -//:schedule_dynamic_dispatch_task 72_653_946 -//:schedule_dynamic_dispatch_task_full 82_034_398 -//:cancel_scheduled_task_full 979_075_000 -//:force_cancel_scheduled_task 27_445_000 -//:force_cancel_scheduled_task_full 982_347_000 -//:run_xcmp_task 41_572_000 -//:run_auto_compound_delegated_stake_task 63_602_000 -//:run_dynamic_dispatch_action 8_164_000 -//:run_dynamic_dispatch_action_fail_decode 785_000 -//:run_missed_tasks_many_found 311_838 -//:run_missed_tasks_many_missing 294_793 -//:run_tasks_many_found 3_768_036 -//:run_tasks_many_missing 2_862_924 -//:update_task_queue_overhead 2_761_000 -//:append_to_missed_tasks 3_209_620 -//:update_scheduled_task_queue 35_844_000 -//:shift_missed_tasks 32_373_000 +//:schedule_xcmp_task_full 168_939_277,8799 +//:schedule_auto_compound_delegated_stake_task_full 114_137_000,10212 +//:schedule_dynamic_dispatch_task 79_194_527,6196 +//:schedule_dynamic_dispatch_task_full 93_858_785,6196 +//:cancel_scheduled_task_full 1_312_541_000,406458 +//:force_cancel_scheduled_task 29_494_000,3927 +//:force_cancel_scheduled_task_full 1_296_008_000,406458 +//:cancel_task_with_schedule_as_full 166_113_000,93492 +//:run_xcmp_task 38_613_000,3946 +//:run_auto_compound_delegated_stake_task 78_196_000,4929 +//:run_dynamic_dispatch_action 8_619_000,3598 +//:run_dynamic_dispatch_action_fail_decode 894_000,0 +//:run_missed_tasks_many_found 318_310,1871 +//:run_missed_tasks_many_missing 295_518,1787 +//:run_tasks_many_found 3_585_979,2001 +//:run_tasks_many_missing 2_856_575,1493 +//:update_task_queue_overhead 2_803_000,1493 +//:append_to_missed_tasks 3_258_550,13581 +//:update_scheduled_task_queue 44_495_000,12375 +//:shift_missed_tasks 6_267_000,3681 #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions needed for pallet_automation_time. pub trait WeightInfo { @@ -100,524 +106,718 @@ pub trait WeightInfo { /// Weights for pallet_automation_time using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry Metadata (r:1 w:0) - // Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) - // Storage: System Account (r:3 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:2 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + /// Storage: System Account (r:3 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) /// The range of component `v` is `[1, 36]`. fn schedule_xcmp_task_full(v: u32, ) -> Weight { - Weight::from_ref_time(130_899_385 as u64) - // Standard Error: 13_282 - .saturating_add(Weight::from_ref_time(21_013_588 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(11 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(T::DbWeight::get().writes(5 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `2072 + v * (8712 ±0)` + // Estimated: `8799 + v * (11187 ±0)` + // Minimum execution time: 202_874_000 picoseconds. + Weight::from_parts(168_939_277, 8799) + // Standard Error: 14_837 + .saturating_add(Weight::from_parts(36_051_408, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes(5_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 11187).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn schedule_auto_compound_delegated_stake_task_full() -> Weight { - Weight::from_ref_time(95_776_000 as u64) - .saturating_add(T::DbWeight::get().reads(7 as u64)) - .saturating_add(T::DbWeight::get().writes(4 as u64)) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `6747` + // Estimated: `10212` + // Minimum execution time: 112_546_000 picoseconds. + Weight::from_parts(114_137_000, 10212) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[1, 36]`. fn schedule_dynamic_dispatch_task(v: u32, ) -> Weight { - Weight::from_ref_time(72_653_946 as u64) - // Standard Error: 45_934 - .saturating_add(Weight::from_ref_time(3_179_104 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(6 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `790` + // Estimated: `6196 + v * (2475 ±0)` + // Minimum execution time: 81_192_000 picoseconds. + Weight::from_parts(79_194_527, 6196) + // Standard Error: 4_172 + .saturating_add(Weight::from_parts(3_843_339, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 2475).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[1, 36]`. fn schedule_dynamic_dispatch_task_full(v: u32, ) -> Weight { - Weight::from_ref_time(82_034_398 as u64) - // Standard Error: 16_577 - .saturating_add(Weight::from_ref_time(26_754_074 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(6 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime LastTimeSlot (r:1 w:0) - // Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `1673 + v * (8712 ±0)` + // Estimated: `6196 + v * (11187 ±0)` + // Minimum execution time: 128_200_000 picoseconds. + Weight::from_parts(93_858_785, 6196) + // Standard Error: 14_149 + .saturating_add(Weight::from_parts(36_079_803, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 11187).saturating_mul(v.into())) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn cancel_scheduled_task_full() -> Weight { - Weight::from_ref_time(979_075_000 as u64) - .saturating_add(T::DbWeight::get().reads(39 as u64)) - .saturating_add(T::DbWeight::get().writes(37 as u64)) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime LastTimeSlot (r:1 w:0) - // Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `316368` + // Estimated: `406458` + // Minimum execution time: 1_302_351_000 picoseconds. + Weight::from_parts(1_312_541_000, 406458) + .saturating_add(T::DbWeight::get().reads(39_u64)) + .saturating_add(T::DbWeight::get().writes(37_u64)) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn force_cancel_scheduled_task() -> Weight { - Weight::from_ref_time(27_445_000 as u64) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime LastTimeSlot (r:1 w:0) - // Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3927` + // Minimum execution time: 28_444_000 picoseconds. + Weight::from_parts(29_494_000, 3927) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn force_cancel_scheduled_task_full() -> Weight { - Weight::from_ref_time(982_347_000 as u64) - .saturating_add(T::DbWeight::get().reads(39 as u64)) - .saturating_add(T::DbWeight::get().writes(37 as u64)) - } - + // Proof Size summary in bytes: + // Measured: `316368` + // Estimated: `406458` + // Minimum execution time: 1_285_826_000 picoseconds. + Weight::from_parts(1_296_008_000, 406458) + .saturating_add(T::DbWeight::get().reads(39_u64)) + .saturating_add(T::DbWeight::get().writes(37_u64)) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn cancel_task_with_schedule_as_full() -> Weight { - Weight::zero() - } - - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) - // Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `3402` + // Estimated: `93492` + // Minimum execution time: 163_501_000 picoseconds. + Weight::from_parts(166_113_000, 93492) + .saturating_add(T::DbWeight::get().reads(39_u64)) + .saturating_add(T::DbWeight::get().writes(37_u64)) + } + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) + /// Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn run_xcmp_task() -> Weight { - Weight::from_ref_time(41_572_000 as u64) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: ParachainStaking DelegatorState (r:1 w:1) - // Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainStaking DelegationScheduledRequests (r:1 w:0) - // Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - // Storage: ParachainStaking CandidateInfo (r:1 w:1) - // Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainStaking TopDelegations (r:1 w:1) - // Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainStaking CandidatePool (r:1 w:1) - // Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainStaking Total (r:1 w:1) - // Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `481` + // Estimated: `3946` + // Minimum execution time: 37_718_000 picoseconds. + Weight::from_parts(38_613_000, 3946) + .saturating_add(T::DbWeight::get().reads(3_u64)) + } + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:0) + /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidateInfo (r:1 w:1) + /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainStaking TopDelegations (r:1 w:1) + /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking Total (r:1 w:1) + /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured) fn run_auto_compound_delegated_stake_task() -> Weight { - Weight::from_ref_time(63_602_000 as u64) - .saturating_add(T::DbWeight::get().reads(9 as u64)) - .saturating_add(T::DbWeight::get().writes(7 as u64)) - } - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:0) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `1464` + // Estimated: `4929` + // Minimum execution time: 76_950_000 picoseconds. + Weight::from_parts(78_196_000, 4929) + .saturating_add(T::DbWeight::get().reads(10_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:0) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) fn run_dynamic_dispatch_action() -> Weight { - Weight::from_ref_time(8_164_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) + // Proof Size summary in bytes: + // Measured: `133` + // Estimated: `3598` + // Minimum execution time: 8_377_000 picoseconds. + Weight::from_parts(8_619_000, 3598) + .saturating_add(T::DbWeight::get().reads(2_u64)) } fn run_dynamic_dispatch_action_fail_decode() -> Weight { - Weight::from_ref_time(785_000 as u64) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 824_000 picoseconds. + Weight::from_parts(894_000, 0) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[0, 1]`. fn run_missed_tasks_many_found(v: u32, ) -> Weight { - Weight::from_ref_time(311_838 as u64) - // Standard Error: 13_844 - .saturating_add(Weight::from_ref_time(18_771_761 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: AutomationTime AccountTasks (r:1 w:0) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0 + v * (278 ±0)` + // Estimated: `1871 + v * (1872 ±0)` + // Minimum execution time: 260_000 picoseconds. + Weight::from_parts(318_310, 1871) + // Standard Error: 5_641 + .saturating_add(Weight::from_parts(19_760_789, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 1872).saturating_mul(v.into())) + } + /// Storage: AutomationTime AccountTasks (r:1 w:0) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[0, 1]`. fn run_missed_tasks_many_missing(v: u32, ) -> Weight { - Weight::from_ref_time(294_793 as u64) - // Standard Error: 4_008 - .saturating_add(Weight::from_ref_time(8_120_906 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:0) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0 + v * (109 ±0)` + // Estimated: `1787 + v * (1787 ±0)` + // Minimum execution time: 250_000 picoseconds. + Weight::from_parts(295_518, 1787) + // Standard Error: 3_247 + .saturating_add(Weight::from_parts(8_902_181, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 1787).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:0) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[0, 1]`. fn run_tasks_many_found(v: u32, ) -> Weight { - Weight::from_ref_time(3_768_036 as u64) - // Standard Error: 18_719 - .saturating_add(Weight::from_ref_time(37_278_163 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().reads((3 as u64).saturating_mul(v as u64))) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `128 + v * (410 ±0)` + // Estimated: `2001 + v * (2002 ±0)` + // Minimum execution time: 3_418_000 picoseconds. + Weight::from_parts(3_585_979, 2001) + // Standard Error: 14_052 + .saturating_add(Weight::from_parts(40_352_720, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 2002).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) /// The range of component `v` is `[0, 1]`. fn run_tasks_many_missing(v: u32, ) -> Weight { - Weight::from_ref_time(2_862_924 as u64) - // Standard Error: 14_386 - .saturating_add(Weight::from_ref_time(33_975 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 2_673_000 picoseconds. + Weight::from_parts(2_856_575, 1493) + // Standard Error: 9_623 + .saturating_add(Weight::from_parts(110_124, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) fn update_task_queue_overhead() -> Weight { - Weight::from_ref_time(2_761_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - } - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime MissedQueueV2 (r:1 w:1) - // Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 2_682_000 picoseconds. + Weight::from_parts(2_803_000, 1493) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: AutomationTime ScheduledTasksV3 (r:11 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime MissedQueueV2 (r:1 w:1) + /// Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `v` is `[0, 2]`. fn append_to_missed_tasks(v: u32, ) -> Weight { - Weight::from_ref_time(3_209_620 as u64) - // Standard Error: 57_546 - .saturating_add(Weight::from_ref_time(1_069_751 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: AutomationTime TaskQueueV2 (r:1 w:1) - // Proof Skipped: AutomationTime TaskQueueV2 (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime MissedQueueV2 (r:1 w:1) - // Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `109 + v * (107 ±0)` + // Estimated: `13581 + v * (1065 ±165)` + // Minimum execution time: 3_162_000 picoseconds. + Weight::from_parts(3_258_550, 13581) + // Standard Error: 30_957 + .saturating_add(Weight::from_parts(9_105_656, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().reads((5_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes(1_u64)) + .saturating_add(Weight::from_parts(0, 1065).saturating_mul(v.into())) + } + /// Storage: AutomationTime TaskQueueV2 (r:1 w:1) + /// Proof Skipped: AutomationTime TaskQueueV2 (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime MissedQueueV2 (r:1 w:1) + /// Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn update_scheduled_task_queue() -> Weight { - Weight::from_ref_time(35_844_000 as u64) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(3 as u64)) - } - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `8910` + // Estimated: `12375` + // Minimum execution time: 44_091_000 picoseconds. + Weight::from_parts(44_495_000, 12375) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:0) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn shift_missed_tasks() -> Weight { - Weight::from_ref_time(32_373_000 as u64) - .saturating_add(T::DbWeight::get().reads(1 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `216` + // Estimated: `3681` + // Minimum execution time: 6_072_000 picoseconds. + Weight::from_parts(6_267_000, 3681) + .saturating_add(T::DbWeight::get().reads(1_u64)) } } // For backwards compatibility and tests impl WeightInfo for () { - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry Metadata (r:1 w:0) - // Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens Accounts (r:2 w:2) - // Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) - // Storage: Tokens TotalIssuance (r:1 w:1) - // Proof: Tokens TotalIssuance (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) - // Storage: System Account (r:3 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:2 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(108), added: 2583, mode: MaxEncodedLen) + /// Storage: System Account (r:3 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen) /// The range of component `v` is `[1, 36]`. fn schedule_xcmp_task_full(v: u32, ) -> Weight { - Weight::from_ref_time(130_899_385 as u64) - // Standard Error: 13_282 - .saturating_add(Weight::from_ref_time(21_013_588 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(11 as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(RocksDbWeight::get().writes(5 as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `2072 + v * (8712 ±0)` + // Estimated: `8799 + v * (11187 ±0)` + // Minimum execution time: 202_874_000 picoseconds. + Weight::from_parts(168_939_277, 8799) + // Standard Error: 14_837 + .saturating_add(Weight::from_parts(36_051_408, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(12_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes(5_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 11187).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn schedule_auto_compound_delegated_stake_task_full() -> Weight { - Weight::from_ref_time(95_776_000 as u64) - .saturating_add(RocksDbWeight::get().reads(7 as u64)) - .saturating_add(RocksDbWeight::get().writes(4 as u64)) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `6747` + // Estimated: `10212` + // Minimum execution time: 112_546_000 picoseconds. + Weight::from_parts(114_137_000, 10212) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[1, 36]`. fn schedule_dynamic_dispatch_task(v: u32, ) -> Weight { - Weight::from_ref_time(72_653_946 as u64) - // Standard Error: 45_934 - .saturating_add(Weight::from_ref_time(3_179_104 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(6 as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:2 w:2) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `790` + // Estimated: `6196 + v * (2475 ±0)` + // Minimum execution time: 81_192_000 picoseconds. + Weight::from_parts(79_194_527, 6196) + // Standard Error: 4_172 + .saturating_add(Weight::from_parts(3_843_339, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 2475).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[1, 36]`. fn schedule_dynamic_dispatch_task_full(v: u32, ) -> Weight { - Weight::from_ref_time(82_034_398 as u64) - // Standard Error: 16_577 - .saturating_add(Weight::from_ref_time(26_754_074 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(6 as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime LastTimeSlot (r:1 w:0) - // Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `1673 + v * (8712 ±0)` + // Estimated: `6196 + v * (11187 ±0)` + // Minimum execution time: 128_200_000 picoseconds. + Weight::from_parts(93_858_785, 6196) + // Standard Error: 14_149 + .saturating_add(Weight::from_parts(36_079_803, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(6_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 11187).saturating_mul(v.into())) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn cancel_scheduled_task_full() -> Weight { - Weight::from_ref_time(979_075_000 as u64) - .saturating_add(RocksDbWeight::get().reads(39 as u64)) - .saturating_add(RocksDbWeight::get().writes(37 as u64)) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime LastTimeSlot (r:1 w:0) - // Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `316368` + // Estimated: `406458` + // Minimum execution time: 1_302_351_000 picoseconds. + Weight::from_parts(1_312_541_000, 406458) + .saturating_add(RocksDbWeight::get().reads(39_u64)) + .saturating_add(RocksDbWeight::get().writes(37_u64)) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn force_cancel_scheduled_task() -> Weight { - Weight::from_ref_time(27_445_000 as u64) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime LastTimeSlot (r:1 w:0) - // Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `462` + // Estimated: `3927` + // Minimum execution time: 28_444_000 picoseconds. + Weight::from_parts(29_494_000, 3927) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn force_cancel_scheduled_task_full() -> Weight { - Weight::from_ref_time(982_347_000 as u64) - .saturating_add(RocksDbWeight::get().reads(39 as u64)) - .saturating_add(RocksDbWeight::get().writes(37 as u64)) - } - + // Proof Size summary in bytes: + // Measured: `316368` + // Estimated: `406458` + // Minimum execution time: 1_285_826_000 picoseconds. + Weight::from_parts(1_296_008_000, 406458) + .saturating_add(RocksDbWeight::get().reads(39_u64)) + .saturating_add(RocksDbWeight::get().writes(37_u64)) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime LastTimeSlot (r:1 w:0) + /// Proof Skipped: AutomationTime LastTimeSlot (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:36 w:36) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn cancel_task_with_schedule_as_full() -> Weight { - Weight::zero() - } - - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) - // Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) - // Storage: AssetRegistry LocationToAssetId (r:1 w:0) - // Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `3402` + // Estimated: `93492` + // Minimum execution time: 163_501_000 picoseconds. + Weight::from_parts(166_113_000, 93492) + .saturating_add(RocksDbWeight::get().reads(39_u64)) + .saturating_add(RocksDbWeight::get().writes(37_u64)) + } + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: UnknownTokens ConcreteFungibleBalances (r:1 w:0) + /// Proof Skipped: UnknownTokens ConcreteFungibleBalances (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry LocationToAssetId (r:1 w:0) + /// Proof Skipped: AssetRegistry LocationToAssetId (max_values: None, max_size: None, mode: Measured) fn run_xcmp_task() -> Weight { - Weight::from_ref_time(41_572_000 as u64) - .saturating_add(RocksDbWeight::get().reads(3 as u64)) - } - // Storage: ParachainInfo ParachainId (r:1 w:0) - // Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) - // Storage: System Account (r:1 w:1) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: ParachainStaking DelegatorState (r:1 w:1) - // Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainStaking DelegationScheduledRequests (r:1 w:0) - // Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured) - // Storage: Balances Locks (r:1 w:1) - // Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) - // Storage: ParachainStaking CandidateInfo (r:1 w:1) - // Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainStaking TopDelegations (r:1 w:1) - // Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured) - // Storage: ParachainStaking CandidatePool (r:1 w:1) - // Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured) - // Storage: ParachainStaking Total (r:1 w:1) - // Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `481` + // Estimated: `3946` + // Minimum execution time: 37_718_000 picoseconds. + Weight::from_parts(38_613_000, 3946) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + } + /// Storage: ParachainInfo ParachainId (r:1 w:0) + /// Proof: ParachainInfo ParachainId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof Skipped: ParachainStaking DelegatorState (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainStaking DelegationScheduledRequests (r:1 w:0) + /// Proof Skipped: ParachainStaking DelegationScheduledRequests (max_values: None, max_size: None, mode: Measured) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidateInfo (r:1 w:1) + /// Proof Skipped: ParachainStaking CandidateInfo (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainStaking TopDelegations (r:1 w:1) + /// Proof Skipped: ParachainStaking TopDelegations (max_values: None, max_size: None, mode: Measured) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof Skipped: ParachainStaking CandidatePool (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking Total (r:1 w:1) + /// Proof Skipped: ParachainStaking Total (max_values: Some(1), max_size: None, mode: Measured) fn run_auto_compound_delegated_stake_task() -> Weight { - Weight::from_ref_time(63_602_000 as u64) - .saturating_add(RocksDbWeight::get().reads(9 as u64)) - .saturating_add(RocksDbWeight::get().writes(7 as u64)) - } - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:0) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `1464` + // Estimated: `4929` + // Minimum execution time: 76_950_000 picoseconds. + Weight::from_parts(78_196_000, 4929) + .saturating_add(RocksDbWeight::get().reads(10_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:0) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) fn run_dynamic_dispatch_action() -> Weight { - Weight::from_ref_time(8_164_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) + // Proof Size summary in bytes: + // Measured: `133` + // Estimated: `3598` + // Minimum execution time: 8_377_000 picoseconds. + Weight::from_parts(8_619_000, 3598) + .saturating_add(RocksDbWeight::get().reads(2_u64)) } fn run_dynamic_dispatch_action_fail_decode() -> Weight { - Weight::from_ref_time(785_000 as u64) - } - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 824_000 picoseconds. + Weight::from_parts(894_000, 0) + } + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[0, 1]`. fn run_missed_tasks_many_found(v: u32, ) -> Weight { - Weight::from_ref_time(311_838 as u64) - // Standard Error: 13_844 - .saturating_add(Weight::from_ref_time(18_771_761 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: AutomationTime AccountTasks (r:1 w:0) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0 + v * (278 ±0)` + // Estimated: `1871 + v * (1872 ±0)` + // Minimum execution time: 260_000 picoseconds. + Weight::from_parts(318_310, 1871) + // Standard Error: 5_641 + .saturating_add(Weight::from_parts(19_760_789, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 1872).saturating_mul(v.into())) + } + /// Storage: AutomationTime AccountTasks (r:1 w:0) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[0, 1]`. fn run_missed_tasks_many_missing(v: u32, ) -> Weight { - Weight::from_ref_time(294_793 as u64) - // Standard Error: 4_008 - .saturating_add(Weight::from_ref_time(8_120_906 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: AutomationTime AccountTasks (r:1 w:1) - // Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:0) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `0 + v * (109 ±0)` + // Estimated: `1787 + v * (1787 ±0)` + // Minimum execution time: 250_000 picoseconds. + Weight::from_parts(295_518, 1787) + // Standard Error: 3_247 + .saturating_add(Weight::from_parts(8_902_181, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 1787).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: AutomationTime AccountTasks (r:1 w:1) + /// Proof Skipped: AutomationTime AccountTasks (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:0) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) /// The range of component `v` is `[0, 1]`. fn run_tasks_many_found(v: u32, ) -> Weight { - Weight::from_ref_time(3_768_036 as u64) - // Standard Error: 18_719 - .saturating_add(Weight::from_ref_time(37_278_163 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().reads((3 as u64).saturating_mul(v as u64))) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(v as u64))) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `128 + v * (410 ±0)` + // Estimated: `2001 + v * (2002 ±0)` + // Minimum execution time: 3_418_000 picoseconds. + Weight::from_parts(3_585_979, 2001) + // Standard Error: 14_052 + .saturating_add(Weight::from_parts(40_352_720, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().reads((3_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 2002).saturating_mul(v.into())) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) /// The range of component `v` is `[0, 1]`. fn run_tasks_many_missing(v: u32, ) -> Weight { - Weight::from_ref_time(2_862_924 as u64) - // Standard Error: 14_386 - .saturating_add(Weight::from_ref_time(33_975 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - } - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 2_673_000 picoseconds. + Weight::from_parts(2_856_575, 1493) + // Standard Error: 9_623 + .saturating_add(Weight::from_parts(110_124, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) fn update_task_queue_overhead() -> Weight { - Weight::from_ref_time(2_761_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - } - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) - // Storage: AutomationTime MissedQueueV2 (r:1 w:1) - // Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `76` + // Estimated: `1493` + // Minimum execution time: 2_682_000 picoseconds. + Weight::from_parts(2_803_000, 1493) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + } + /// Storage: AutomationTime ScheduledTasksV3 (r:11 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + /// Storage: AutomationTime MissedQueueV2 (r:1 w:1) + /// Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `v` is `[0, 2]`. fn append_to_missed_tasks(v: u32, ) -> Weight { - Weight::from_ref_time(3_209_620 as u64) - // Standard Error: 57_546 - .saturating_add(Weight::from_ref_time(1_069_751 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: AutomationTime TaskQueueV2 (r:1 w:1) - // Proof Skipped: AutomationTime TaskQueueV2 (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime MissedQueueV2 (r:1 w:1) - // Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `109 + v * (107 ±0)` + // Estimated: `13581 + v * (1065 ±165)` + // Minimum execution time: 3_162_000 picoseconds. + Weight::from_parts(3_258_550, 13581) + // Standard Error: 30_957 + .saturating_add(Weight::from_parts(9_105_656, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(1_u64)) + .saturating_add(RocksDbWeight::get().reads((5_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + .saturating_add(Weight::from_parts(0, 1065).saturating_mul(v.into())) + } + /// Storage: AutomationTime TaskQueueV2 (r:1 w:1) + /// Proof Skipped: AutomationTime TaskQueueV2 (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime MissedQueueV2 (r:1 w:1) + /// Proof Skipped: AutomationTime MissedQueueV2 (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn update_scheduled_task_queue() -> Weight { - Weight::from_ref_time(35_844_000 as u64) - .saturating_add(RocksDbWeight::get().reads(3 as u64)) - .saturating_add(RocksDbWeight::get().writes(3 as u64)) - } - // Storage: AutomationTime ScheduledTasksV3 (r:1 w:1) - // Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `8910` + // Estimated: `12375` + // Minimum execution time: 44_091_000 picoseconds. + Weight::from_parts(44_495_000, 12375) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: AutomationTime ScheduledTasksV3 (r:1 w:0) + /// Proof Skipped: AutomationTime ScheduledTasksV3 (max_values: None, max_size: None, mode: Measured) fn shift_missed_tasks() -> Weight { - Weight::from_ref_time(32_373_000 as u64) - .saturating_add(RocksDbWeight::get().reads(1 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `216` + // Estimated: `3681` + // Minimum execution time: 6_072_000 picoseconds. + Weight::from_parts(6_267_000, 3681) + .saturating_add(RocksDbWeight::get().reads(1_u64)) } -} \ No newline at end of file +} diff --git a/pallets/valve/src/weights.rs b/pallets/valve/src/weights.rs index 981ab530..d9acf88c 100644 --- a/pallets/valve/src/weights.rs +++ b/pallets/valve/src/weights.rs @@ -1,24 +1,26 @@ -// This file is part of Substrate. +// This file is part of OAK-blockchain. -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) OAK Network Ltd. +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 -// Licensed under the Apache License, Version 2.0 (the "License"); -// 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 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . //! Autogenerated weights for pallet_valve //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-11-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `actions-runner-1`, CPU: `Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("turing-dev"), DB CACHE: 1024 @@ -26,6 +28,8 @@ // ./oak-collator // benchmark // pallet +// --header +// ./.maintain/HEADER-GPL3 // --chain // turing-dev // --execution @@ -46,21 +50,22 @@ // ./.maintain/frame-weight-template.hbs // Summary: -//:close_valve 14_956_000 -//:open_valve 15_697_000 -//:close_pallet_gate_new 19_636_000 -//:close_pallet_gate_existing 16_000_000 -//:open_pallet_gate 20_609_000 -//:open_pallet_gates 56_131_000 -//:stop_scheduled_tasks 14_320_000 -//:start_scheduled_tasks 26_379_000 +//:close_valve 16_312_000,4687 +//:open_valve 16_991_000,4687 +//:close_pallet_gate_new 20_340_000,4687 +//:close_pallet_gate_existing 13_943_000,4687 +//:open_pallet_gate 21_157_000,4687 +//:open_pallet_gates 23_458_000,13723 +//:stop_scheduled_tasks 15_875_000,4687 +//:start_scheduled_tasks 16_713_000,4687 #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions needed for pallet_valve. pub trait WeightInfo { @@ -77,176 +82,240 @@ pub trait WeightInfo { /// Weights for pallet_valve using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:1) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:1) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) fn close_valve() -> Weight { - Weight::from_ref_time(14_956_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:1) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `229` + // Estimated: `4687` + // Minimum execution time: 15_784_000 picoseconds. + Weight::from_parts(16_312_000, 4687) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:1) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) fn open_valve() -> Weight { - Weight::from_ref_time(15_697_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:1) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) - // Storage: Valve ClosedPalletCount (r:1 w:1) - // Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `250` + // Estimated: `4687` + // Minimum execution time: 16_708_000 picoseconds. + Weight::from_parts(16_991_000, 4687) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:1) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ClosedPalletCount (r:1 w:1) + /// Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) fn close_pallet_gate_new() -> Weight { - Weight::from_ref_time(19_636_000 as u64) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:1) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `229` + // Estimated: `4687` + // Minimum execution time: 20_014_000 picoseconds. + Weight::from_parts(20_340_000, 4687) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:1) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) fn close_pallet_gate_existing() -> Weight { - Weight::from_ref_time(16_000_000 as u64) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:1) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) - // Storage: Valve ClosedPalletCount (r:1 w:1) - // Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `264` + // Estimated: `4687` + // Minimum execution time: 13_703_000 picoseconds. + Weight::from_parts(13_943_000, 4687) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:1) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ClosedPalletCount (r:1 w:1) + /// Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) fn open_pallet_gate() -> Weight { - Weight::from_ref_time(20_609_000 as u64) - .saturating_add(T::DbWeight::get().reads(4 as u64)) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ClosedPalletCount (r:1 w:1) - // Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:0 w:5) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `264` + // Estimated: `4687` + // Minimum execution time: 20_861_000 picoseconds. + Weight::from_parts(21_157_000, 4687) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ClosedPallets (r:5 w:5) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ClosedPalletCount (r:1 w:1) + /// Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) fn open_pallet_gates() -> Weight { - Weight::from_ref_time(56_131_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(6 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: AutomationTime Shutdown (r:1 w:1) - // Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `13723` + // Minimum execution time: 23_130_000 picoseconds. + Weight::from_parts(23_458_000, 13723) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(6_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: AutomationTime Shutdown (r:1 w:1) + /// Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) fn stop_scheduled_tasks() -> Weight { - Weight::from_ref_time(14_320_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: AutomationTime Shutdown (r:1 w:1) - // Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `205` + // Estimated: `4687` + // Minimum execution time: 15_458_000 picoseconds. + Weight::from_parts(15_875_000, 4687) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: AutomationTime Shutdown (r:1 w:1) + /// Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) fn start_scheduled_tasks() -> Weight { - Weight::from_ref_time(26_379_000 as u64) - .saturating_add(T::DbWeight::get().reads(2 as u64)) - .saturating_add(T::DbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `229` + // Estimated: `4687` + // Minimum execution time: 16_108_000 picoseconds. + Weight::from_parts(16_713_000, 4687) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) } } // For backwards compatibility and tests impl WeightInfo for () { - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:1) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:1) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) fn close_valve() -> Weight { - Weight::from_ref_time(14_956_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:1) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `229` + // Estimated: `4687` + // Minimum execution time: 15_784_000 picoseconds. + Weight::from_parts(16_312_000, 4687) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:1) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) fn open_valve() -> Weight { - Weight::from_ref_time(15_697_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:1) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) - // Storage: Valve ClosedPalletCount (r:1 w:1) - // Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `250` + // Estimated: `4687` + // Minimum execution time: 16_708_000 picoseconds. + Weight::from_parts(16_991_000, 4687) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:1) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ClosedPalletCount (r:1 w:1) + /// Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) fn close_pallet_gate_new() -> Weight { - Weight::from_ref_time(19_636_000 as u64) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:1) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `229` + // Estimated: `4687` + // Minimum execution time: 20_014_000 picoseconds. + Weight::from_parts(20_340_000, 4687) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:1) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) fn close_pallet_gate_existing() -> Weight { - Weight::from_ref_time(16_000_000 as u64) - .saturating_add(RocksDbWeight::get().reads(3 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ValveClosed (r:1 w:0) - // Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:1 w:1) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) - // Storage: Valve ClosedPalletCount (r:1 w:1) - // Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `264` + // Estimated: `4687` + // Minimum execution time: 13_703_000 picoseconds. + Weight::from_parts(13_943_000, 4687) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ValveClosed (r:1 w:0) + /// Proof Skipped: Valve ValveClosed (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Valve ClosedPallets (r:1 w:1) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ClosedPalletCount (r:1 w:1) + /// Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) fn open_pallet_gate() -> Weight { - Weight::from_ref_time(20_609_000 as u64) - .saturating_add(RocksDbWeight::get().reads(4 as u64)) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: Valve ClosedPalletCount (r:1 w:1) - // Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) - // Storage: Valve ClosedPallets (r:0 w:5) - // Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `264` + // Estimated: `4687` + // Minimum execution time: 20_861_000 picoseconds. + Weight::from_parts(21_157_000, 4687) + .saturating_add(RocksDbWeight::get().reads(4_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: Valve ClosedPallets (r:5 w:5) + /// Proof Skipped: Valve ClosedPallets (max_values: None, max_size: None, mode: Measured) + /// Storage: Valve ClosedPalletCount (r:1 w:1) + /// Proof Skipped: Valve ClosedPalletCount (max_values: Some(1), max_size: None, mode: Measured) fn open_pallet_gates() -> Weight { - Weight::from_ref_time(56_131_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(6 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: AutomationTime Shutdown (r:1 w:1) - // Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `358` + // Estimated: `13723` + // Minimum execution time: 23_130_000 picoseconds. + Weight::from_parts(23_458_000, 13723) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().writes(6_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: AutomationTime Shutdown (r:1 w:1) + /// Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) fn stop_scheduled_tasks() -> Weight { - Weight::from_ref_time(14_320_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) - } - // Storage: TechnicalMembership Members (r:1 w:0) - // Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) - // Storage: AutomationTime Shutdown (r:1 w:1) - // Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) + // Proof Size summary in bytes: + // Measured: `205` + // Estimated: `4687` + // Minimum execution time: 15_458_000 picoseconds. + Weight::from_parts(15_875_000, 4687) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: TechnicalMembership Members (r:1 w:0) + /// Proof: TechnicalMembership Members (max_values: Some(1), max_size: Some(3202), added: 3697, mode: MaxEncodedLen) + /// Storage: AutomationTime Shutdown (r:1 w:1) + /// Proof Skipped: AutomationTime Shutdown (max_values: Some(1), max_size: None, mode: Measured) fn start_scheduled_tasks() -> Weight { - Weight::from_ref_time(26_379_000 as u64) - .saturating_add(RocksDbWeight::get().reads(2 as u64)) - .saturating_add(RocksDbWeight::get().writes(1 as u64)) + // Proof Size summary in bytes: + // Measured: `229` + // Estimated: `4687` + // Minimum execution time: 16_108_000 picoseconds. + Weight::from_parts(16_713_000, 4687) + .saturating_add(RocksDbWeight::get().reads(2_u64)) + .saturating_add(RocksDbWeight::get().writes(1_u64)) } } diff --git a/pallets/vesting/src/weights.rs b/pallets/vesting/src/weights.rs index 0bb11845..0da5cdb3 100644 --- a/pallets/vesting/src/weights.rs +++ b/pallets/vesting/src/weights.rs @@ -1,24 +1,26 @@ -// This file is part of Substrate. +// This file is part of OAK-blockchain. -// Copyright (C) 2022 Parity Technologies (UK) Ltd. -// SPDX-License-Identifier: Apache-2.0 +// Copyright (C) OAK Network Ltd. +// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 -// Licensed under the Apache License, Version 2.0 (the "License"); -// 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 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . //! Autogenerated weights for pallet_vesting //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2023-08-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2023-11-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `actions-runner-1`, CPU: `Intel(R) Xeon(R) E-2388G CPU @ 3.20GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("turing-dev"), DB CACHE: 1024 @@ -26,6 +28,8 @@ // ./oak-collator // benchmark // pallet +// --header +// ./.maintain/HEADER-GPL3 // --chain // turing-dev // --execution @@ -46,14 +50,15 @@ // ./.maintain/frame-weight-template.hbs // Summary: -//:vest 23_043_860 +//:vest 14_516_142,3735 #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] +#![allow(missing_docs)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; -use sp_std::marker::PhantomData; +use core::marker::PhantomData; /// Weight functions needed for pallet_vesting. pub trait WeightInfo { @@ -63,44 +68,54 @@ pub trait WeightInfo { /// Weights for pallet_vesting using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: Vesting VestingSchedule (r:1 w:1) - // Proof Skipped: Vesting VestingSchedule (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:20 w:20) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Vesting TotalUnvestedAllocation (r:1 w:1) - // Proof Skipped: Vesting TotalUnvestedAllocation (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: Vesting VestingSchedule (r:1 w:1) + /// Proof Skipped: Vesting VestingSchedule (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:20 w:20) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Vesting TotalUnvestedAllocation (r:1 w:1) + /// Proof Skipped: Vesting TotalUnvestedAllocation (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `v` is `[0, 20]`. fn vest(v: u32, ) -> Weight { - Weight::from_ref_time(23_043_860 as u64) - // Standard Error: 92_370 - .saturating_add(Weight::from_ref_time(17_490_177 as u64).saturating_mul(v as u64)) - .saturating_add(T::DbWeight::get().reads(3 as u64)) - .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(T::DbWeight::get().writes(2 as u64)) - .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(v as u64))) + // Proof Size summary in bytes: + // Measured: `286 + v * (55 ±0)` + // Estimated: `3735 + v * (2603 ±0)` + // Minimum execution time: 8_070_000 picoseconds. + Weight::from_parts(14_516_142, 3735) + // Standard Error: 14_066 + .saturating_add(Weight::from_parts(24_069_000, 0).saturating_mul(v.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(v.into())) } } // For backwards compatibility and tests impl WeightInfo for () { - // Storage: Timestamp Now (r:1 w:0) - // Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) - // Storage: Vesting VestingSchedule (r:1 w:1) - // Proof Skipped: Vesting VestingSchedule (max_values: None, max_size: None, mode: Measured) - // Storage: System Account (r:20 w:20) - // Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) - // Storage: Vesting TotalUnvestedAllocation (r:1 w:1) - // Proof Skipped: Vesting TotalUnvestedAllocation (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Timestamp Now (r:1 w:0) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: Vesting VestingSchedule (r:1 w:1) + /// Proof Skipped: Vesting VestingSchedule (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:20 w:20) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Vesting TotalUnvestedAllocation (r:1 w:1) + /// Proof Skipped: Vesting TotalUnvestedAllocation (max_values: Some(1), max_size: None, mode: Measured) /// The range of component `v` is `[0, 20]`. fn vest(v: u32, ) -> Weight { - Weight::from_ref_time(23_043_860 as u64) - // Standard Error: 92_370 - .saturating_add(Weight::from_ref_time(17_490_177 as u64).saturating_mul(v as u64)) - .saturating_add(RocksDbWeight::get().reads(3 as u64)) - .saturating_add(RocksDbWeight::get().reads((1 as u64).saturating_mul(v as u64))) - .saturating_add(RocksDbWeight::get().writes(2 as u64)) - .saturating_add(RocksDbWeight::get().writes((1 as u64).saturating_mul(v as u64))) + // Proof Size summary in bytes: + // Measured: `286 + v * (55 ±0)` + // Estimated: `3735 + v * (2603 ±0)` + // Minimum execution time: 8_070_000 picoseconds. + Weight::from_parts(14_516_142, 3735) + // Standard Error: 14_066 + .saturating_add(Weight::from_parts(24_069_000, 0).saturating_mul(v.into())) + .saturating_add(RocksDbWeight::get().reads(3_u64)) + .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(v.into()))) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(v.into()))) + .saturating_add(Weight::from_parts(0, 2603).saturating_mul(v.into())) } }