mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 04:01:02 +00:00
0119a6dae1
* [DO NOT MERGE] test new vm runner for weights 2 * add image * fix merge conflict * apply weights * new weights Co-authored-by: parity-processbot <>
127 lines
5.1 KiB
Rust
127 lines
5.1 KiB
Rust
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot 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.
|
|
|
|
// Polkadot 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 Polkadot. 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: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=kusama-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_multisig
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/kusama/src/weights/
|
|
|
|
#![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: 16_159 nanoseconds.
|
|
Weight::from_ref_time(17_175_479)
|
|
// Standard Error: 7
|
|
.saturating_add(Weight::from_ref_time(651).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: 49_360 nanoseconds.
|
|
Weight::from_ref_time(37_020_587)
|
|
// Standard Error: 1_311
|
|
.saturating_add(Weight::from_ref_time(153_070).saturating_mul(s.into()))
|
|
// Standard Error: 12
|
|
.saturating_add(Weight::from_ref_time(1_922).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: 38_658 nanoseconds.
|
|
Weight::from_ref_time(25_186_518)
|
|
// Standard Error: 897
|
|
.saturating_add(Weight::from_ref_time(144_299).saturating_mul(s.into()))
|
|
// Standard Error: 8
|
|
.saturating_add(Weight::from_ref_time(1_935).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: 56_575 nanoseconds.
|
|
Weight::from_ref_time(38_391_618)
|
|
// Standard Error: 1_236
|
|
.saturating_add(Weight::from_ref_time(192_850).saturating_mul(s.into()))
|
|
// Standard Error: 12
|
|
.saturating_add(Weight::from_ref_time(2_002).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: 33_603 nanoseconds.
|
|
Weight::from_ref_time(35_215_690)
|
|
// Standard Error: 1_234
|
|
.saturating_add(Weight::from_ref_time(157_046).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_333 nanoseconds.
|
|
Weight::from_ref_time(24_230_639)
|
|
// Standard Error: 1_011
|
|
.saturating_add(Weight::from_ref_time(139_771).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: 34_207 nanoseconds.
|
|
Weight::from_ref_time(35_768_409)
|
|
// Standard Error: 1_147
|
|
.saturating_add(Weight::from_ref_time(149_225).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|