mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
fc83800e5e
* paritytech/ci-cd#697: Update weights with VM runners - Update weights using VM instances - Change runner tag for weights ci job to weights-vm * ".git/.scripts/commands/bench/bench.sh" all * ".git/.scripts/commands/bench-all/bench-all.sh" --target_dir=cumulus --------- Co-authored-by: parity-processbot <> Co-authored-by: Branislav Kontur <bkontur@gmail.com>
208 lines
8.6 KiB
Rust
208 lines
8.6 KiB
Rust
// Copyright Parity Technologies (UK) Ltd.
|
|
// This file is part of Cumulus.
|
|
|
|
// Cumulus 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.
|
|
|
|
// Cumulus 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 Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_scheduler`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("collectives-polkadot-dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=collectives-polkadot-dev
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_scheduler
|
|
// --no-storage-info
|
|
// --no-median-slopes
|
|
// --no-min-squares
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_scheduler`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> {
|
|
/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
|
|
/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
fn service_agendas_base() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `31`
|
|
// Estimated: `1489`
|
|
// Minimum execution time: 3_441_000 picoseconds.
|
|
Weight::from_parts(3_604_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1489))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 200]`.
|
|
fn service_agenda_base(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `77 + s * (177 ±0)`
|
|
// Estimated: `159279`
|
|
// Minimum execution time: 2_879_000 picoseconds.
|
|
Weight::from_parts(2_963_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 159279))
|
|
// Standard Error: 3_764
|
|
.saturating_add(Weight::from_parts(909_557, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
fn service_task_base() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 5_172_000 picoseconds.
|
|
Weight::from_parts(5_294_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
/// Storage: `Preimage::PreimageFor` (r:1 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[128, 4194304]`.
|
|
fn service_task_fetched(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `213 + s * (1 ±0)`
|
|
// Estimated: `3678 + s * (1 ±0)`
|
|
// Minimum execution time: 19_704_000 picoseconds.
|
|
Weight::from_parts(19_903_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3678))
|
|
// Standard Error: 5
|
|
.saturating_add(Weight::from_parts(1_394, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:0 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
fn service_task_named() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 6_359_000 picoseconds.
|
|
Weight::from_parts(6_599_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
fn service_task_periodic() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 5_217_000 picoseconds.
|
|
Weight::from_parts(5_333_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
fn execute_dispatch_signed() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_406_000 picoseconds.
|
|
Weight::from_parts(2_541_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
fn execute_dispatch_unsigned() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 2_370_000 picoseconds.
|
|
Weight::from_parts(2_561_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 199]`.
|
|
fn schedule(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `77 + s * (177 ±0)`
|
|
// Estimated: `159279`
|
|
// Minimum execution time: 11_784_000 picoseconds.
|
|
Weight::from_parts(5_574_404, 0)
|
|
.saturating_add(Weight::from_parts(0, 159279))
|
|
// Standard Error: 7_217
|
|
.saturating_add(Weight::from_parts(1_035_248, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Lookup` (r:0 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[1, 200]`.
|
|
fn cancel(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `77 + s * (177 ±0)`
|
|
// Estimated: `159279`
|
|
// Minimum execution time: 16_373_000 picoseconds.
|
|
Weight::from_parts(3_088_135, 0)
|
|
.saturating_add(Weight::from_parts(0, 159279))
|
|
// Standard Error: 7_095
|
|
.saturating_add(Weight::from_parts(1_745_270, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:1 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 199]`.
|
|
fn schedule_named(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `468 + s * (179 ±0)`
|
|
// Estimated: `159279`
|
|
// Minimum execution time: 14_822_000 picoseconds.
|
|
Weight::from_parts(9_591_402, 0)
|
|
.saturating_add(Weight::from_parts(0, 159279))
|
|
// Standard Error: 7_151
|
|
.saturating_add(Weight::from_parts(1_058_408, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:1 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(155814), added: 158289, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[1, 200]`.
|
|
fn cancel_named(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `509 + s * (179 ±0)`
|
|
// Estimated: `159279`
|
|
// Minimum execution time: 18_541_000 picoseconds.
|
|
Weight::from_parts(6_522_239, 0)
|
|
.saturating_add(Weight::from_parts(0, 159279))
|
|
// Standard Error: 8_349
|
|
.saturating_add(Weight::from_parts(1_760_431, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
}
|