mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
435d1b4e8d
* [benchmarks] pr with weights (#1945) Co-authored-by: paritytech-ci <paritytech-ci@parity.io> * Use master for some methods Co-authored-by: Egor_P <egor@parity.io> Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
129 lines
5.3 KiB
Rust
129 lines
5.3 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_multisig`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-12-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("collectives-polkadot-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./artifacts/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=collectives-polkadot-dev
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_multisig
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_multisig.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_multisig`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
|
/// The range of component `z` is `[0, 10000]`.
|
|
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
|
// Minimum execution time: 21_348 nanoseconds.
|
|
Weight::from_ref_time(22_020_918 as u64)
|
|
// Standard Error: 17
|
|
.saturating_add(Weight::from_ref_time(793 as u64).saturating_mul(z as u64))
|
|
}
|
|
// Storage: Multisig Multisigs (r:1 w:1)
|
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
|
/// The range of component `s` is `[2, 100]`.
|
|
/// The range of component `z` is `[0, 10000]`.
|
|
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
|
// Minimum execution time: 52_745 nanoseconds.
|
|
Weight::from_ref_time(39_633_213 as u64)
|
|
// Standard Error: 812
|
|
.saturating_add(Weight::from_ref_time(138_830 as u64).saturating_mul(s as u64))
|
|
// Standard Error: 7
|
|
.saturating_add(Weight::from_ref_time(1_774 as u64).saturating_mul(z as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Multisig Multisigs (r:1 w:1)
|
|
/// The range of component `s` is `[3, 100]`.
|
|
/// The range of component `z` is `[0, 10000]`.
|
|
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
|
// Minimum execution time: 42_062 nanoseconds.
|
|
Weight::from_ref_time(29_606_791 as u64)
|
|
// Standard Error: 624
|
|
.saturating_add(Weight::from_ref_time(133_807 as u64).saturating_mul(s as u64))
|
|
// Standard Error: 6
|
|
.saturating_add(Weight::from_ref_time(1_742 as u64).saturating_mul(z as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Multisig Multisigs (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
/// The range of component `s` is `[2, 100]`.
|
|
/// The range of component `z` is `[0, 10000]`.
|
|
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
|
// Minimum execution time: 56_590 nanoseconds.
|
|
Weight::from_ref_time(43_141_831 as u64)
|
|
// Standard Error: 942
|
|
.saturating_add(Weight::from_ref_time(156_014 as u64).saturating_mul(s as u64))
|
|
// Standard Error: 9
|
|
.saturating_add(Weight::from_ref_time(1_753 as u64).saturating_mul(z as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Multisig Multisigs (r:1 w:1)
|
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
|
/// The range of component `s` is `[2, 100]`.
|
|
fn approve_as_multi_create(s: u32, ) -> Weight {
|
|
// Minimum execution time: 35_945 nanoseconds.
|
|
Weight::from_ref_time(38_593_664 as u64)
|
|
// Standard Error: 1_135
|
|
.saturating_add(Weight::from_ref_time(137_421 as u64).saturating_mul(s as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Multisig Multisigs (r:1 w:1)
|
|
/// The range of component `s` is `[2, 100]`.
|
|
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
|
// Minimum execution time: 26_498 nanoseconds.
|
|
Weight::from_ref_time(28_101_368 as u64)
|
|
// Standard Error: 757
|
|
.saturating_add(Weight::from_ref_time(133_752 as u64).saturating_mul(s as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Multisig Multisigs (r:1 w:1)
|
|
/// The range of component `s` is `[2, 100]`.
|
|
fn cancel_as_multi(s: u32, ) -> Weight {
|
|
// Minimum execution time: 36_332 nanoseconds.
|
|
Weight::from_ref_time(38_627_585 as u64)
|
|
// Standard Error: 962
|
|
.saturating_add(Weight::from_ref_time(142_123 as u64).saturating_mul(s as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
}
|