mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
5a621926a4
* [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
99 lines
3.5 KiB
Rust
99 lines
3.5 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_balances`
|
|
//!
|
|
//! 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("statemint-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./artifacts/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=statemint-dev
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_balances
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/statemint/src/weights/pallet_balances.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_balances`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer() -> Weight {
|
|
// Minimum execution time: 44_953 nanoseconds.
|
|
Weight::from_ref_time(46_145_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer_keep_alive() -> Weight {
|
|
// Minimum execution time: 33_676 nanoseconds.
|
|
Weight::from_ref_time(34_796_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn set_balance_creating() -> Weight {
|
|
// Minimum execution time: 23_716 nanoseconds.
|
|
Weight::from_ref_time(24_225_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn set_balance_killing() -> Weight {
|
|
// Minimum execution time: 26_946 nanoseconds.
|
|
Weight::from_ref_time(27_944_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: System Account (r:2 w:2)
|
|
fn force_transfer() -> Weight {
|
|
// Minimum execution time: 44_753 nanoseconds.
|
|
Weight::from_ref_time(47_037_000)
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn transfer_all() -> Weight {
|
|
// Minimum execution time: 40_722 nanoseconds.
|
|
Weight::from_ref_time(49_255_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: System Account (r:1 w:1)
|
|
fn force_unreserve() -> Weight {
|
|
// Minimum execution time: 20_803 nanoseconds.
|
|
Weight::from_ref_time(21_258_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|