mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
cef3ebca56
* [ci] Update runners for benchmarks * run benchmarks in this pr to get weights * run benches only * comment .post jobs * add docker env to benches * add git diff to artifacts * divide assets * update weights * return ci * fix refs for benchmarks
79 lines
2.8 KiB
Rust
79 lines
2.8 KiB
Rust
// Copyright 2021 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_utility`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-01-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `runner-b3zmxxc-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./artifacts/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=statemine-dev
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_utility
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/statemine/src/weights/pallet_utility.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_utility`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
|
/// The range of component `c` is `[0, 1000]`.
|
|
fn batch(c: u32, ) -> Weight {
|
|
// Minimum execution time: 13_109 nanoseconds.
|
|
Weight::from_ref_time(23_963_302)
|
|
// Standard Error: 1_571
|
|
.saturating_add(Weight::from_ref_time(4_637_532).saturating_mul(c.into()))
|
|
}
|
|
fn as_derivative() -> Weight {
|
|
// Minimum execution time: 6_614 nanoseconds.
|
|
Weight::from_ref_time(6_803_000)
|
|
}
|
|
/// The range of component `c` is `[0, 1000]`.
|
|
fn batch_all(c: u32, ) -> Weight {
|
|
// Minimum execution time: 13_221 nanoseconds.
|
|
Weight::from_ref_time(24_784_806)
|
|
// Standard Error: 1_596
|
|
.saturating_add(Weight::from_ref_time(4_866_077).saturating_mul(c.into()))
|
|
}
|
|
fn dispatch_as() -> Weight {
|
|
// Minimum execution time: 15_207 nanoseconds.
|
|
Weight::from_ref_time(15_581_000)
|
|
}
|
|
/// The range of component `c` is `[0, 1000]`.
|
|
fn force_batch(c: u32, ) -> Weight {
|
|
// Minimum execution time: 13_561 nanoseconds.
|
|
Weight::from_ref_time(23_235_284)
|
|
// Standard Error: 1_417
|
|
.saturating_add(Weight::from_ref_time(4_647_468).saturating_mul(c.into()))
|
|
}
|
|
}
|