mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 21:01:02 +00:00
f3fd88fae0
* [benchmarks] pr with weights (#2026) Co-authored-by: paritytech-ci <paritytech-ci@parity.io> * [benchmarks] pr with weights Collectives (#2025) * [benchmarks] pr with weights * provide veto method for trait Co-authored-by: paritytech-ci <paritytech-ci@parity.io> Co-authored-by: muharem <ismailov.m.h@gmail.com> * [benchmarks] pr with weights (#2027) Co-authored-by: paritytech-ci <paritytech-ci@parity.io> Co-authored-by: paritytech-ci <paritytech-ci@parity.io> Co-authored-by: muharem <ismailov.m.h@gmail.com>
129 lines
5.1 KiB
Rust
129 lines
5.1 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-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! 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_multisig
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/statemine/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: 15_740 nanoseconds.
|
|
Weight::from_ref_time(16_192_901)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_ref_time(592).saturating_mul(z.into()))
|
|
}
|
|
// 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: 43_792 nanoseconds.
|
|
Weight::from_ref_time(36_530_624)
|
|
// Standard Error: 859
|
|
.saturating_add(Weight::from_ref_time(86_126).saturating_mul(s.into()))
|
|
// Standard Error: 8
|
|
.saturating_add(Weight::from_ref_time(1_599).saturating_mul(z.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// 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: 34_402 nanoseconds.
|
|
Weight::from_ref_time(27_199_438)
|
|
// Standard Error: 533
|
|
.saturating_add(Weight::from_ref_time(80_893).saturating_mul(s.into()))
|
|
// Standard Error: 5
|
|
.saturating_add(Weight::from_ref_time(1_609).saturating_mul(z.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// 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: 48_203 nanoseconds.
|
|
Weight::from_ref_time(39_327_294)
|
|
// Standard Error: 972
|
|
.saturating_add(Weight::from_ref_time(102_451).saturating_mul(s.into()))
|
|
// Standard Error: 9
|
|
.saturating_add(Weight::from_ref_time(1_620).saturating_mul(z.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// 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: 32_000 nanoseconds.
|
|
Weight::from_ref_time(35_051_831)
|
|
// Standard Error: 997
|
|
.saturating_add(Weight::from_ref_time(90_076).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// 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: 23_262 nanoseconds.
|
|
Weight::from_ref_time(25_347_876)
|
|
// Standard Error: 839
|
|
.saturating_add(Weight::from_ref_time(88_662).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// 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: 32_913 nanoseconds.
|
|
Weight::from_ref_time(35_087_663)
|
|
// Standard Error: 871
|
|
.saturating_add(Weight::from_ref_time(91_420).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|