mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-18 22:15:40 +00:00
8ba34ef1fe
* westend: update weights * kusama: update weights * polkadot: update weights * westend: update weights (production profile) * kusama: update weights (production profile) * polkadot: update weights (production profile) * kusama: update weights (production profile pt 2) * westend: update weights (production profile pt 2) * fixup * fixup * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/ * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ * cargo run --quiet --profile=production --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ Co-authored-by: Parity Bot <admin@parity.io>
141 lines
5.5 KiB
Rust
141 lines
5.5 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_vesting`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-03-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// --chain=kusama-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_vesting
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/kusama/src/weights/pallet_vesting.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_vesting`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_vesting::WeightInfo for WeightInfo<T> {
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
fn vest_locked(l: u32, s: u32, ) -> Weight {
|
|
(23_856_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((80_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((164_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
fn vest_unlocked(l: u32, s: u32, ) -> Weight {
|
|
(23_654_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((79_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((131_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn vest_other_locked(l: u32, s: u32, ) -> Weight {
|
|
(23_372_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((86_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((166_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn vest_other_unlocked(l: u32, s: u32, ) -> Weight {
|
|
(23_385_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((77_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((139_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
fn vested_transfer(l: u32, s: u32, ) -> Weight {
|
|
(37_726_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((79_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 3_000
|
|
.saturating_add((145_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: System Account (r:2 w:2)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
fn force_vested_transfer(l: u32, s: u32, ) -> Weight {
|
|
(37_282_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((86_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 3_000
|
|
.saturating_add((145_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn not_unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
|
(25_477_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((88_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 2_000
|
|
.saturating_add((138_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: Vesting Vesting (r:1 w:1)
|
|
// Storage: Balances Locks (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
fn unlocking_merge_schedules(l: u32, s: u32, ) -> Weight {
|
|
(24_656_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((84_000 as Weight).saturating_mul(l as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((159_000 as Weight).saturating_mul(s as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
}
|