mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
91deee7a1d
* Adds base benchmark for do_tick * ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime=dev --target_dir=substrate --pallet=pallet_broker * Update substrate/frame/broker/src/benchmarking.rs Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update substrate/frame/broker/src/benchmarking.rs * ".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime=dev --target_dir=substrate --pallet=pallet_broker * Addresses review comment --------- Co-authored-by: command-bot <> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
856 lines
41 KiB
Rust
Generated
856 lines
41 KiB
Rust
Generated
// This file is part of Substrate.
|
|
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: Apache-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.
|
|
|
|
//! Autogenerated weights for `pallet_broker`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-pzhd7p6z-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
|
|
|
// Executed Command:
|
|
// target/production/substrate-node
|
|
// benchmark
|
|
// pallet
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
|
// --pallet=pallet_broker
|
|
// --chain=dev
|
|
// --header=./substrate/HEADER-APACHE2
|
|
// --output=./substrate/frame/broker/src/weights.rs
|
|
// --template=./substrate/.maintain/frame-weight-template.hbs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions needed for `pallet_broker`.
|
|
pub trait WeightInfo {
|
|
fn configure() -> Weight;
|
|
fn reserve() -> Weight;
|
|
fn unreserve() -> Weight;
|
|
fn set_lease() -> Weight;
|
|
fn start_sales(n: u32, ) -> Weight;
|
|
fn purchase() -> Weight;
|
|
fn renew() -> Weight;
|
|
fn transfer() -> Weight;
|
|
fn partition() -> Weight;
|
|
fn interlace() -> Weight;
|
|
fn assign() -> Weight;
|
|
fn pool() -> Weight;
|
|
fn claim_revenue(m: u32, ) -> Weight;
|
|
fn purchase_credit() -> Weight;
|
|
fn drop_region() -> Weight;
|
|
fn drop_contribution() -> Weight;
|
|
fn drop_history() -> Weight;
|
|
fn drop_renewal() -> Weight;
|
|
fn request_core_count(n: u32, ) -> Weight;
|
|
fn process_core_count(n: u32, ) -> Weight;
|
|
fn process_revenue() -> Weight;
|
|
fn rotate_sale(n: u32, ) -> Weight;
|
|
fn process_pool() -> Weight;
|
|
fn process_core_schedule() -> Weight;
|
|
fn request_revenue_info_at() -> Weight;
|
|
fn do_tick_base() -> Weight;
|
|
}
|
|
|
|
/// Weights for `pallet_broker` using the Substrate node and recommended hardware.
|
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|
/// Storage: `Broker::Configuration` (r:0 w:1)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
fn configure() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_040_000 picoseconds.
|
|
Weight::from_parts(3_344_000, 0)
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Reservations` (r:1 w:1)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
fn reserve() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `5016`
|
|
// Estimated: `7496`
|
|
// Minimum execution time: 21_259_000 picoseconds.
|
|
Weight::from_parts(22_110_000, 7496)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Reservations` (r:1 w:1)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
fn unreserve() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6218`
|
|
// Estimated: `7496`
|
|
// Minimum execution time: 20_330_000 picoseconds.
|
|
Weight::from_parts(20_826_000, 7496)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Leases` (r:1 w:1)
|
|
/// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
|
|
fn set_lease() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `239`
|
|
// Estimated: `1526`
|
|
// Minimum execution time: 13_411_000 picoseconds.
|
|
Weight::from_parts(13_960_000, 1526)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolIo` (r:3 w:3)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Reservations` (r:1 w:0)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Leases` (r:1 w:1)
|
|
/// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:0 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:0 w:1)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:0 w:10)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn start_sales(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6330`
|
|
// Estimated: `8499`
|
|
// Minimum execution time: 57_770_000 picoseconds.
|
|
Weight::from_parts(61_047_512, 8499)
|
|
// Standard Error: 165
|
|
.saturating_add(Weight::from_parts(3, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(6_u64))
|
|
.saturating_add(T::DbWeight::get().writes(16_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:1 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Authorship::Author` (r:1 w:0)
|
|
/// Proof: `Authorship::Author` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Digest` (r:1 w:0)
|
|
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Broker::Regions` (r:0 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn purchase() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `568`
|
|
// Estimated: `2053`
|
|
// Minimum execution time: 51_196_000 picoseconds.
|
|
Weight::from_parts(52_382_000, 2053)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:1 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::AllowedRenewals` (r:1 w:2)
|
|
/// Proof: `Broker::AllowedRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
|
|
/// Storage: `Authorship::Author` (r:1 w:0)
|
|
/// Proof: `Authorship::Author` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Digest` (r:1 w:0)
|
|
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Broker::Workplan` (r:0 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
fn renew() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `686`
|
|
// Estimated: `4698`
|
|
// Minimum execution time: 71_636_000 picoseconds.
|
|
Weight::from_parts(73_679_000, 4698)
|
|
.saturating_add(T::DbWeight::get().reads(6_u64))
|
|
.saturating_add(T::DbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `495`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 19_182_000 picoseconds.
|
|
Weight::from_parts(19_775_000, 3550)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Regions` (r:1 w:2)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn partition() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `495`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 20_688_000 picoseconds.
|
|
Weight::from_parts(21_557_000, 3550)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Regions` (r:1 w:2)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn interlace() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `495`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 21_190_000 picoseconds.
|
|
Weight::from_parts(22_215_000, 3550)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:1 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
fn assign() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `740`
|
|
// Estimated: `4681`
|
|
// Minimum execution time: 34_591_000 picoseconds.
|
|
Weight::from_parts(36_227_000, 4681)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:1 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolIo` (r:2 w:2)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
|
|
/// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn pool() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `775`
|
|
// Estimated: `5996`
|
|
// Minimum execution time: 40_346_000 picoseconds.
|
|
Weight::from_parts(41_951_000, 5996)
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:3 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:2 w:2)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// The range of component `m` is `[1, 3]`.
|
|
fn claim_revenue(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `859`
|
|
// Estimated: `6196 + m * (2520 ±0)`
|
|
// Minimum execution time: 75_734_000 picoseconds.
|
|
Weight::from_parts(78_168_395, 6196)
|
|
// Standard Error: 63_180
|
|
.saturating_add(Weight::from_parts(1_076_259, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
|
.saturating_add(T::DbWeight::get().writes(5_u64))
|
|
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn purchase_credit() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `103`
|
|
// Estimated: `3593`
|
|
// Minimum execution time: 46_383_000 picoseconds.
|
|
Weight::from_parts(47_405_000, 3593)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn drop_region() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `603`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 30_994_000 picoseconds.
|
|
Weight::from_parts(31_979_000, 3550)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn drop_contribution() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `601`
|
|
// Estimated: `3533`
|
|
// Minimum execution time: 37_584_000 picoseconds.
|
|
Weight::from_parts(44_010_000, 3533)
|
|
.saturating_add(T::DbWeight::get().reads(3_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:0)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn drop_history() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `830`
|
|
// Estimated: `3593`
|
|
// Minimum execution time: 45_266_000 picoseconds.
|
|
Weight::from_parts(48_000_000, 3593)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::AllowedRenewals` (r:1 w:1)
|
|
/// Proof: `Broker::AllowedRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
|
|
fn drop_renewal() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `525`
|
|
// Estimated: `4698`
|
|
// Minimum execution time: 25_365_000 picoseconds.
|
|
Weight::from_parts(26_920_000, 4698)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn request_core_count(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 6_519_000 picoseconds.
|
|
Weight::from_parts(7_098_698, 0)
|
|
// Standard Error: 20
|
|
.saturating_add(Weight::from_parts(8, 0).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn process_core_count(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `98`
|
|
// Estimated: `3563`
|
|
// Minimum execution time: 7_608_000 picoseconds.
|
|
Weight::from_parts(8_157_815, 3563)
|
|
// Standard Error: 26
|
|
.saturating_add(Weight::from_parts(48, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `Authorship::Author` (r:1 w:0)
|
|
/// Proof: `Authorship::Author` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Digest` (r:1 w:0)
|
|
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
fn process_revenue() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `905`
|
|
// Estimated: `4370`
|
|
// Minimum execution time: 59_993_000 picoseconds.
|
|
Weight::from_parts(61_752_000, 4370)
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `Broker::InstaPoolIo` (r:3 w:3)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Reservations` (r:1 w:0)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Leases` (r:1 w:1)
|
|
/// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:0 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:0 w:10)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn rotate_sale(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6281`
|
|
// Estimated: `8499`
|
|
// Minimum execution time: 41_863_000 picoseconds.
|
|
Weight::from_parts(44_033_031, 8499)
|
|
// Standard Error: 116
|
|
.saturating_add(Weight::from_parts(764, 0).saturating_mul(n.into()))
|
|
.saturating_add(T::DbWeight::get().reads(5_u64))
|
|
.saturating_add(T::DbWeight::get().writes(15_u64))
|
|
}
|
|
/// Storage: `Broker::InstaPoolIo` (r:1 w:0)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
fn process_pool() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `180`
|
|
// Estimated: `3493`
|
|
// Minimum execution time: 9_588_000 picoseconds.
|
|
Weight::from_parts(9_925_000, 3493)
|
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Workplan` (r:1 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workload` (r:1 w:1)
|
|
/// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
|
|
fn process_core_schedule() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1423`
|
|
// Estimated: `4681`
|
|
// Minimum execution time: 19_308_000 picoseconds.
|
|
Weight::from_parts(20_482_000, 4681)
|
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
|
}
|
|
fn request_revenue_info_at() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 147_000 picoseconds.
|
|
Weight::from_parts(184_000, 0)
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:1)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// Storage: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
fn do_tick_base() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `699`
|
|
// Estimated: `4164`
|
|
// Minimum execution time: 19_824_000 picoseconds.
|
|
Weight::from_parts(20_983_000, 4164)
|
|
.saturating_add(T::DbWeight::get().reads(4_u64))
|
|
.saturating_add(T::DbWeight::get().writes(3_u64))
|
|
}
|
|
}
|
|
|
|
// For backwards compatibility and tests.
|
|
impl WeightInfo for () {
|
|
/// Storage: `Broker::Configuration` (r:0 w:1)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
fn configure() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 3_040_000 picoseconds.
|
|
Weight::from_parts(3_344_000, 0)
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Reservations` (r:1 w:1)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
fn reserve() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `5016`
|
|
// Estimated: `7496`
|
|
// Minimum execution time: 21_259_000 picoseconds.
|
|
Weight::from_parts(22_110_000, 7496)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Reservations` (r:1 w:1)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
fn unreserve() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6218`
|
|
// Estimated: `7496`
|
|
// Minimum execution time: 20_330_000 picoseconds.
|
|
Weight::from_parts(20_826_000, 7496)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Leases` (r:1 w:1)
|
|
/// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
|
|
fn set_lease() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `239`
|
|
// Estimated: `1526`
|
|
// Minimum execution time: 13_411_000 picoseconds.
|
|
Weight::from_parts(13_960_000, 1526)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolIo` (r:3 w:3)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Reservations` (r:1 w:0)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Leases` (r:1 w:1)
|
|
/// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:0 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:0 w:1)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:0 w:10)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn start_sales(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6330`
|
|
// Estimated: `8499`
|
|
// Minimum execution time: 57_770_000 picoseconds.
|
|
Weight::from_parts(61_047_512, 8499)
|
|
// Standard Error: 165
|
|
.saturating_add(Weight::from_parts(3, 0).saturating_mul(n.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(16_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:1 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Authorship::Author` (r:1 w:0)
|
|
/// Proof: `Authorship::Author` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Digest` (r:1 w:0)
|
|
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Broker::Regions` (r:0 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn purchase() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `568`
|
|
// Estimated: `2053`
|
|
// Minimum execution time: 51_196_000 picoseconds.
|
|
Weight::from_parts(52_382_000, 2053)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:1 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::AllowedRenewals` (r:1 w:2)
|
|
/// Proof: `Broker::AllowedRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
|
|
/// Storage: `Authorship::Author` (r:1 w:0)
|
|
/// Proof: `Authorship::Author` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Digest` (r:1 w:0)
|
|
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
/// Storage: `Broker::Workplan` (r:0 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
fn renew() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `686`
|
|
// Estimated: `4698`
|
|
// Minimum execution time: 71_636_000 picoseconds.
|
|
Weight::from_parts(73_679_000, 4698)
|
|
.saturating_add(RocksDbWeight::get().reads(6_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(4_u64))
|
|
}
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn transfer() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `495`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 19_182_000 picoseconds.
|
|
Weight::from_parts(19_775_000, 3550)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Regions` (r:1 w:2)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn partition() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `495`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 20_688_000 picoseconds.
|
|
Weight::from_parts(21_557_000, 3550)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Regions` (r:1 w:2)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn interlace() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `495`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 21_190_000 picoseconds.
|
|
Weight::from_parts(22_215_000, 3550)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:1 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
fn assign() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `740`
|
|
// Estimated: `4681`
|
|
// Minimum execution time: 34_591_000 picoseconds.
|
|
Weight::from_parts(36_227_000, 4681)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:1 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolIo` (r:2 w:2)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
|
|
/// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn pool() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `775`
|
|
// Estimated: `5996`
|
|
// Minimum execution time: 40_346_000 picoseconds.
|
|
Weight::from_parts(41_951_000, 5996)
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
}
|
|
/// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:3 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:2 w:2)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// The range of component `m` is `[1, 3]`.
|
|
fn claim_revenue(m: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `859`
|
|
// Estimated: `6196 + m * (2520 ±0)`
|
|
// Minimum execution time: 75_734_000 picoseconds.
|
|
Weight::from_parts(78_168_395, 6196)
|
|
// Standard Error: 63_180
|
|
.saturating_add(Weight::from_parts(1_076_259, 0).saturating_mul(m.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
|
|
.saturating_add(RocksDbWeight::get().writes(5_u64))
|
|
.saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn purchase_credit() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `103`
|
|
// Estimated: `3593`
|
|
// Minimum execution time: 46_383_000 picoseconds.
|
|
Weight::from_parts(47_405_000, 3593)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Regions` (r:1 w:1)
|
|
/// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
|
|
fn drop_region() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `603`
|
|
// Estimated: `3550`
|
|
// Minimum execution time: 30_994_000 picoseconds.
|
|
Weight::from_parts(31_979_000, 3550)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
|
|
fn drop_contribution() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `601`
|
|
// Estimated: `3533`
|
|
// Minimum execution time: 37_584_000 picoseconds.
|
|
Weight::from_parts(44_010_000, 3533)
|
|
.saturating_add(RocksDbWeight::get().reads(3_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:0)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
fn drop_history() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `830`
|
|
// Estimated: `3593`
|
|
// Minimum execution time: 45_266_000 picoseconds.
|
|
Weight::from_parts(48_000_000, 3593)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:0)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::AllowedRenewals` (r:1 w:1)
|
|
/// Proof: `Broker::AllowedRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
|
|
fn drop_renewal() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `525`
|
|
// Estimated: `4698`
|
|
// Minimum execution time: 25_365_000 picoseconds.
|
|
Weight::from_parts(26_920_000, 4698)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn request_core_count(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 6_519_000 picoseconds.
|
|
Weight::from_parts(7_098_698, 0)
|
|
// Standard Error: 20
|
|
.saturating_add(Weight::from_parts(8, 0).saturating_mul(n.into()))
|
|
}
|
|
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn process_core_count(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `98`
|
|
// Estimated: `3563`
|
|
// Minimum execution time: 7_608_000 picoseconds.
|
|
Weight::from_parts(8_157_815, 3563)
|
|
// Standard Error: 26
|
|
.saturating_add(Weight::from_parts(48, 0).saturating_mul(n.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Account` (r:1 w:1)
|
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
|
/// Storage: `Authorship::Author` (r:1 w:0)
|
|
/// Proof: `Authorship::Author` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
|
|
/// Storage: `System::Digest` (r:1 w:0)
|
|
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
|
|
fn process_revenue() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `905`
|
|
// Estimated: `4370`
|
|
// Minimum execution time: 59_993_000 picoseconds.
|
|
Weight::from_parts(61_752_000, 4370)
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
/// Storage: `Broker::InstaPoolIo` (r:3 w:3)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Reservations` (r:1 w:0)
|
|
/// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Leases` (r:1 w:1)
|
|
/// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::SaleInfo` (r:0 w:1)
|
|
/// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workplan` (r:0 w:10)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// The range of component `n` is `[0, 1000]`.
|
|
fn rotate_sale(n: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `6281`
|
|
// Estimated: `8499`
|
|
// Minimum execution time: 41_863_000 picoseconds.
|
|
Weight::from_parts(44_033_031, 8499)
|
|
// Standard Error: 116
|
|
.saturating_add(Weight::from_parts(764, 0).saturating_mul(n.into()))
|
|
.saturating_add(RocksDbWeight::get().reads(5_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(15_u64))
|
|
}
|
|
/// Storage: `Broker::InstaPoolIo` (r:1 w:0)
|
|
/// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
|
|
/// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
|
|
fn process_pool() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `180`
|
|
// Estimated: `3493`
|
|
// Minimum execution time: 9_588_000 picoseconds.
|
|
Weight::from_parts(9_925_000, 3493)
|
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
|
}
|
|
/// Storage: `Broker::Workplan` (r:1 w:1)
|
|
/// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Workload` (r:1 w:1)
|
|
/// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
|
|
fn process_core_schedule() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `1423`
|
|
// Estimated: `4681`
|
|
// Minimum execution time: 19_308_000 picoseconds.
|
|
Weight::from_parts(20_482_000, 4681)
|
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
|
}
|
|
fn request_revenue_info_at() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 147_000 picoseconds.
|
|
Weight::from_parts(184_000, 0)
|
|
}
|
|
/// Storage: `Broker::Status` (r:1 w:1)
|
|
/// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
|
|
/// Storage: `Broker::Configuration` (r:1 w:0)
|
|
/// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
|
|
/// Storage: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0x18194fcb5c1fcace44d2d0a004272614` (r:1 w:1)
|
|
/// Storage: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
/// Proof: UNKNOWN KEY `0xf308d869daf021a7724e69c557dd8dbe` (r:1 w:1)
|
|
fn do_tick_base() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `699`
|
|
// Estimated: `4164`
|
|
// Minimum execution time: 19_824_000 picoseconds.
|
|
Weight::from_parts(20_983_000, 4164)
|
|
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
|
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
|
}
|
|
}
|