mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
[FRAME] Introduce force_adjust_total_issuance (#3001)
Add `Balances::force_adjust_total_issuance` as preparation for fixing https://github.com/polkadot-fellows/runtimes/issues/147. Important changes in `substrate/frame/balances/src/lib.rs`. TODO: - [x] Update weights --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <> Co-authored-by: Bastian Köcher <git@kchr.de>
This commit is contained in:
committed by
GitHub
parent
4220503d28
commit
5a6f6d33d3
Generated
+1
@@ -9230,6 +9230,7 @@ dependencies = [
|
|||||||
name = "pallet-balances"
|
name = "pallet-balances"
|
||||||
version = "28.0.0"
|
version = "28.0.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"docify",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
"frame-support",
|
"frame-support",
|
||||||
"frame-system",
|
"frame-system",
|
||||||
|
|||||||
+41
-32
@@ -17,27 +17,25 @@
|
|||||||
//! Autogenerated weights for `pallet_balances`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-rococo-dev")`, DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-rococo-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=asset-hub-rococo-dev
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
// --header=./file_header.txt
|
// --wasm-execution=compiled
|
||||||
// --output=./parachains/runtimes/assets/asset-hub-rococo/src/weights/
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=asset-hub-rococo-dev
|
||||||
|
// --header=./cumulus/file_header.txt
|
||||||
|
// --output=./cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -56,8 +54,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 55_040_000 picoseconds.
|
// Minimum execution time: 45_402_000 picoseconds.
|
||||||
Weight::from_parts(56_106_000, 0)
|
Weight::from_parts(46_086_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -68,8 +66,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 41_342_000 picoseconds.
|
// Minimum execution time: 35_707_000 picoseconds.
|
||||||
Weight::from_parts(41_890_000, 0)
|
Weight::from_parts(36_107_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -80,8 +78,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 14_723_000 picoseconds.
|
// Minimum execution time: 13_538_000 picoseconds.
|
||||||
Weight::from_parts(15_182_000, 0)
|
Weight::from_parts(13_771_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -92,8 +90,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 22_073_000 picoseconds.
|
// Minimum execution time: 18_488_000 picoseconds.
|
||||||
Weight::from_parts(22_638_000, 0)
|
Weight::from_parts(19_136_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -104,8 +102,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 57_265_000 picoseconds.
|
// Minimum execution time: 48_168_000 picoseconds.
|
||||||
Weight::from_parts(58_222_000, 0)
|
Weight::from_parts(48_874_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
@@ -116,8 +114,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 51_485_000 picoseconds.
|
// Minimum execution time: 44_463_000 picoseconds.
|
||||||
Weight::from_parts(52_003_000, 0)
|
Weight::from_parts(45_320_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -128,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 17_460_000 picoseconds.
|
// Minimum execution time: 16_227_000 picoseconds.
|
||||||
Weight::from_parts(17_849_000, 0)
|
Weight::from_parts(16_549_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -141,13 +139,24 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 17_259_000 picoseconds.
|
// Minimum execution time: 15_992_000 picoseconds.
|
||||||
Weight::from_parts(17_478_000, 0)
|
Weight::from_parts(16_243_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 16_756
|
// Standard Error: 12_426
|
||||||
.saturating_add(Weight::from_parts(15_291_954, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_617_673, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_713_000 picoseconds.
|
||||||
|
Weight::from_parts(6_054_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+54
-44
@@ -1,42 +1,41 @@
|
|||||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
// you may not use this file except in compliance with the License.
|
// it under the terms of the GNU General Public License as published by
|
||||||
// You may obtain a copy of the License at
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
//
|
// (at your option) any later version.
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// GNU General Public License for more details.
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
// 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`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-westend-dev")`, DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-westend-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=asset-hub-westend-dev
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
// --header=./file_header.txt
|
// --wasm-execution=compiled
|
||||||
// --output=./parachains/runtimes/assets/asset-hub-westend/src/weights/
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=asset-hub-westend-dev
|
||||||
|
// --header=./cumulus/file_header.txt
|
||||||
|
// --output=./cumulus/parachains/runtimes/assets/asset-hub-westend/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -55,8 +54,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 54_422_000 picoseconds.
|
// Minimum execution time: 42_658_000 picoseconds.
|
||||||
Weight::from_parts(55_477_000, 0)
|
Weight::from_parts(43_649_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -67,8 +66,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 39_850_000 picoseconds.
|
// Minimum execution time: 33_810_000 picoseconds.
|
||||||
Weight::from_parts(41_026_000, 0)
|
Weight::from_parts(34_322_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -79,8 +78,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 14_554_000 picoseconds.
|
// Minimum execution time: 11_825_000 picoseconds.
|
||||||
Weight::from_parts(14_800_000, 0)
|
Weight::from_parts(12_258_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -91,8 +90,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 21_586_000 picoseconds.
|
// Minimum execution time: 16_540_000 picoseconds.
|
||||||
Weight::from_parts(22_297_000, 0)
|
Weight::from_parts(17_058_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -103,8 +102,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 57_042_000 picoseconds.
|
// Minimum execution time: 45_138_000 picoseconds.
|
||||||
Weight::from_parts(58_251_000, 0)
|
Weight::from_parts(45_481_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
@@ -115,8 +114,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 51_587_000 picoseconds.
|
// Minimum execution time: 42_147_000 picoseconds.
|
||||||
Weight::from_parts(52_275_000, 0)
|
Weight::from_parts(43_120_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -127,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 17_201_000 picoseconds.
|
// Minimum execution time: 14_730_000 picoseconds.
|
||||||
Weight::from_parts(17_613_000, 0)
|
Weight::from_parts(14_867_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -140,13 +139,24 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 16_608_000 picoseconds.
|
// Minimum execution time: 14_425_000 picoseconds.
|
||||||
Weight::from_parts(16_808_000, 0)
|
Weight::from_parts(14_590_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 15_291
|
// Standard Error: 12_643
|
||||||
.saturating_add(Weight::from_parts(15_154_407, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_203_227, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_397_000 picoseconds.
|
||||||
|
Weight::from_parts(5_689_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+54
-44
@@ -1,42 +1,41 @@
|
|||||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
// you may not use this file except in compliance with the License.
|
// it under the terms of the GNU General Public License as published by
|
||||||
// You may obtain a copy of the License at
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
//
|
// (at your option) any later version.
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// GNU General Public License for more details.
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
// 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`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-rococo-dev")`, DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-rococo-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=bridge-hub-rococo-dev
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
// --header=./file_header.txt
|
// --wasm-execution=compiled
|
||||||
// --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=bridge-hub-rococo-dev
|
||||||
|
// --header=./cumulus/file_header.txt
|
||||||
|
// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -55,8 +54,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 56_219_000 picoseconds.
|
// Minimum execution time: 43_019_000 picoseconds.
|
||||||
Weight::from_parts(56_763_000, 0)
|
Weight::from_parts(43_897_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -67,8 +66,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 41_515_000 picoseconds.
|
// Minimum execution time: 33_615_000 picoseconds.
|
||||||
Weight::from_parts(42_186_000, 0)
|
Weight::from_parts(34_331_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -79,8 +78,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 16_274_000 picoseconds.
|
// Minimum execution time: 12_917_000 picoseconds.
|
||||||
Weight::from_parts(16_898_000, 0)
|
Weight::from_parts(13_310_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -91,8 +90,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 23_847_000 picoseconds.
|
// Minimum execution time: 17_617_000 picoseconds.
|
||||||
Weight::from_parts(24_343_000, 0)
|
Weight::from_parts(18_057_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -103,8 +102,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 57_564_000 picoseconds.
|
// Minimum execution time: 44_458_000 picoseconds.
|
||||||
Weight::from_parts(58_172_000, 0)
|
Weight::from_parts(45_097_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
@@ -115,8 +114,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 52_131_000 picoseconds.
|
// Minimum execution time: 42_431_000 picoseconds.
|
||||||
Weight::from_parts(52_662_000, 0)
|
Weight::from_parts(42_910_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -127,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 19_005_000 picoseconds.
|
// Minimum execution time: 15_726_000 picoseconds.
|
||||||
Weight::from_parts(19_594_000, 0)
|
Weight::from_parts(16_245_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -140,13 +139,24 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 17_275_000 picoseconds.
|
// Minimum execution time: 13_929_000 picoseconds.
|
||||||
Weight::from_parts(17_901_000, 0)
|
Weight::from_parts(14_306_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 15_775
|
// Standard Error: 10_984
|
||||||
.saturating_add(Weight::from_parts(15_448_147, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(12_919_627, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_132_000 picoseconds.
|
||||||
|
Weight::from_parts(5_467_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+41
-32
@@ -17,27 +17,25 @@
|
|||||||
//! Autogenerated weights for `pallet_balances`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-rococo-dev")`, DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("bridge-hub-westend-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=bridge-hub-rococo-dev
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
// --header=./file_header.txt
|
// --wasm-execution=compiled
|
||||||
// --output=./parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=bridge-hub-westend-dev
|
||||||
|
// --header=./cumulus/file_header.txt
|
||||||
|
// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -56,8 +54,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 56_219_000 picoseconds.
|
// Minimum execution time: 43_103_000 picoseconds.
|
||||||
Weight::from_parts(56_763_000, 0)
|
Weight::from_parts(43_576_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -68,8 +66,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 41_515_000 picoseconds.
|
// Minimum execution time: 33_412_000 picoseconds.
|
||||||
Weight::from_parts(42_186_000, 0)
|
Weight::from_parts(33_984_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -80,8 +78,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 16_274_000 picoseconds.
|
// Minimum execution time: 13_412_000 picoseconds.
|
||||||
Weight::from_parts(16_898_000, 0)
|
Weight::from_parts(13_907_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -92,8 +90,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 23_847_000 picoseconds.
|
// Minimum execution time: 18_143_000 picoseconds.
|
||||||
Weight::from_parts(24_343_000, 0)
|
Weight::from_parts(18_756_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -104,8 +102,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 57_564_000 picoseconds.
|
// Minimum execution time: 43_676_000 picoseconds.
|
||||||
Weight::from_parts(58_172_000, 0)
|
Weight::from_parts(44_575_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
@@ -116,8 +114,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 52_131_000 picoseconds.
|
// Minimum execution time: 41_403_000 picoseconds.
|
||||||
Weight::from_parts(52_662_000, 0)
|
Weight::from_parts(42_162_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -128,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 19_005_000 picoseconds.
|
// Minimum execution time: 15_791_000 picoseconds.
|
||||||
Weight::from_parts(19_594_000, 0)
|
Weight::from_parts(16_298_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -141,13 +139,24 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 17_275_000 picoseconds.
|
// Minimum execution time: 14_390_000 picoseconds.
|
||||||
Weight::from_parts(17_901_000, 0)
|
Weight::from_parts(14_611_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 15_775
|
// Standard Error: 11_611
|
||||||
.saturating_add(Weight::from_parts(15_448_147, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(12_871_155, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_314_000 picoseconds.
|
||||||
|
Weight::from_parts(5_638_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+54
-44
@@ -1,42 +1,41 @@
|
|||||||
// Copyright (C) Parity Technologies (UK) Ltd.
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||||
// SPDX-License-Identifier: Apache-2.0
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
// you may not use this file except in compliance with the License.
|
// it under the terms of the GNU General Public License as published by
|
||||||
// You may obtain a copy of the License at
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
//
|
// (at your option) any later version.
|
||||||
// http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
//
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
// Unless required by applicable law or agreed to in writing, software
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// GNU General Public License for more details.
|
||||||
// See the License for the specific language governing permissions and
|
|
||||||
// limitations under the License.
|
// 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`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("collectives-polkadot-dev")`, DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("collectives-westend-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=collectives-polkadot-dev
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
// --header=./file_header.txt
|
// --wasm-execution=compiled
|
||||||
// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=collectives-westend-dev
|
||||||
|
// --header=./cumulus/file_header.txt
|
||||||
|
// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -55,8 +54,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 55_696_000 picoseconds.
|
// Minimum execution time: 44_910_000 picoseconds.
|
||||||
Weight::from_parts(56_582_000, 0)
|
Weight::from_parts(45_866_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -67,8 +66,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 40_885_000 picoseconds.
|
// Minimum execution time: 35_331_000 picoseconds.
|
||||||
Weight::from_parts(41_993_000, 0)
|
Weight::from_parts(36_168_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -79,8 +78,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 14_565_000 picoseconds.
|
// Minimum execution time: 12_540_000 picoseconds.
|
||||||
Weight::from_parts(15_080_000, 0)
|
Weight::from_parts(12_942_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -91,8 +90,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 22_158_000 picoseconds.
|
// Minimum execution time: 17_385_000 picoseconds.
|
||||||
Weight::from_parts(22_715_000, 0)
|
Weight::from_parts(17_926_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -103,8 +102,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 57_957_000 picoseconds.
|
// Minimum execution time: 47_232_000 picoseconds.
|
||||||
Weight::from_parts(58_618_000, 0)
|
Weight::from_parts(47_740_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
@@ -115,8 +114,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 52_018_000 picoseconds.
|
// Minimum execution time: 44_311_000 picoseconds.
|
||||||
Weight::from_parts(52_795_000, 0)
|
Weight::from_parts(45_264_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -127,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 17_469_000 picoseconds.
|
// Minimum execution time: 15_430_000 picoseconds.
|
||||||
Weight::from_parts(18_030_000, 0)
|
Weight::from_parts(15_654_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -140,13 +139,24 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 17_223_000 picoseconds.
|
// Minimum execution time: 14_919_000 picoseconds.
|
||||||
Weight::from_parts(17_587_000, 0)
|
Weight::from_parts(15_212_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 16_201
|
// Standard Error: 17_333
|
||||||
.saturating_add(Weight::from_parts(15_360_967, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_966_554, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_438_000 picoseconds.
|
||||||
|
Weight::from_parts(5_736_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+37
-28
@@ -17,25 +17,23 @@
|
|||||||
//! Autogenerated weights for `pallet_balances`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2024-01-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("coretime-rococo-dev")`, DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("coretime-rococo-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=coretime-rococo-dev
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
|
// --wasm-execution=compiled
|
||||||
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=coretime-rococo-dev
|
||||||
// --header=./cumulus/file_header.txt
|
// --header=./cumulus/file_header.txt
|
||||||
// --output=./cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/
|
// --output=./cumulus/parachains/runtimes/coretime/coretime-rococo/src/weights/
|
||||||
|
|
||||||
@@ -56,8 +54,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 45_258_000 picoseconds.
|
// Minimum execution time: 42_729_000 picoseconds.
|
||||||
Weight::from_parts(46_265_000, 0)
|
Weight::from_parts(43_214_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -68,8 +66,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 35_639_000 picoseconds.
|
// Minimum execution time: 33_717_000 picoseconds.
|
||||||
Weight::from_parts(36_170_000, 0)
|
Weight::from_parts(34_160_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -80,8 +78,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 12_342_000 picoseconds.
|
// Minimum execution time: 11_581_000 picoseconds.
|
||||||
Weight::from_parts(12_736_000, 0)
|
Weight::from_parts(11_822_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -92,8 +90,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 17_150_000 picoseconds.
|
// Minimum execution time: 16_235_000 picoseconds.
|
||||||
Weight::from_parts(17_764_000, 0)
|
Weight::from_parts(16_797_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -104,8 +102,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 46_745_000 picoseconds.
|
// Minimum execution time: 43_581_000 picoseconds.
|
||||||
Weight::from_parts(47_693_000, 0)
|
Weight::from_parts(44_465_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
@@ -116,8 +114,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 44_553_000 picoseconds.
|
// Minimum execution time: 42_289_000 picoseconds.
|
||||||
Weight::from_parts(45_113_000, 0)
|
Weight::from_parts(42_861_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -128,8 +126,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 15_439_000 picoseconds.
|
// Minimum execution time: 14_583_000 picoseconds.
|
||||||
Weight::from_parts(15_832_000, 0)
|
Weight::from_parts(15_088_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
@@ -141,13 +139,24 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 15_017_000 picoseconds.
|
// Minimum execution time: 14_263_000 picoseconds.
|
||||||
Weight::from_parts(15_286_000, 0)
|
Weight::from_parts(14_431_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 11_887
|
// Standard Error: 11_589
|
||||||
.saturating_add(Weight::from_parts(13_536_178, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_005_092, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_091_000 picoseconds.
|
||||||
|
Weight::from_parts(5_272_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+61
-50
@@ -1,4 +1,4 @@
|
|||||||
// Copyright Parity Technologies (UK) Ltd.
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
||||||
// This file is part of Cumulus.
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
// Cumulus is free software: you can redistribute it and/or modify
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
@@ -17,25 +17,25 @@
|
|||||||
//! Autogenerated weights for `pallet_balances`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("coretime-westend-dev"), DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("coretime-westend-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./artifacts/westend-parachain
|
// target/production/polkadot-parachain
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=coretime-westend-dev
|
|
||||||
// --execution=wasm
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --extrinsic=*
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --json
|
// --extrinsic=*
|
||||||
// --header=./file_header.txt
|
// --wasm-execution=compiled
|
||||||
// --output=./cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/pallet_balances.rs
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=coretime-westend-dev
|
||||||
|
// --header=./cumulus/file_header.txt
|
||||||
|
// --output=./cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -48,104 +48,115 @@ use core::marker::PhantomData;
|
|||||||
/// Weight functions for `pallet_balances`.
|
/// Weight functions for `pallet_balances`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn transfer_allow_death() -> Weight {
|
fn transfer_allow_death() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 59_580_000 picoseconds.
|
// Minimum execution time: 42_533_000 picoseconds.
|
||||||
Weight::from_parts(60_317_000, 0)
|
Weight::from_parts(43_470_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 45_490_000 picoseconds.
|
// Minimum execution time: 33_442_000 picoseconds.
|
||||||
Weight::from_parts(45_910_000, 0)
|
Weight::from_parts(34_851_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_set_balance_creating() -> Weight {
|
fn force_set_balance_creating() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 17_353_000 picoseconds.
|
// Minimum execution time: 11_890_000 picoseconds.
|
||||||
Weight::from_parts(17_676_000, 0)
|
Weight::from_parts(12_324_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_set_balance_killing() -> Weight {
|
fn force_set_balance_killing() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 25_017_000 picoseconds.
|
// Minimum execution time: 16_583_000 picoseconds.
|
||||||
Weight::from_parts(25_542_000, 0)
|
Weight::from_parts(17_116_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:2 w:2)
|
/// Storage: `System::Account` (r:2 w:2)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 61_161_000 picoseconds.
|
// Minimum execution time: 43_979_000 picoseconds.
|
||||||
Weight::from_parts(61_665_000, 0)
|
Weight::from_parts(44_662_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn transfer_all() -> Weight {
|
fn transfer_all() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 55_422_000 picoseconds.
|
// Minimum execution time: 43_140_000 picoseconds.
|
||||||
Weight::from_parts(55_880_000, 0)
|
Weight::from_parts(43_575_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_unreserve() -> Weight {
|
fn force_unreserve() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `103`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 20_477_000 picoseconds.
|
// Minimum execution time: 14_748_000 picoseconds.
|
||||||
Weight::from_parts(20_871_000, 0)
|
Weight::from_parts(15_097_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:999 w:999)
|
/// Storage: `System::Account` (r:999 w:999)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
/// The range of component `u` is `[1, 1000]`.
|
/// The range of component `u` is `[1, 1000]`.
|
||||||
fn upgrade_accounts(u: u32, ) -> Weight {
|
fn upgrade_accounts(u: u32, ) -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 19_501_000 picoseconds.
|
// Minimum execution time: 14_502_000 picoseconds.
|
||||||
Weight::from_parts(19_726_000, 0)
|
Weight::from_parts(14_803_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 9_495
|
// Standard Error: 11_903
|
||||||
.saturating_add(Weight::from_parts(15_658_957, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_484_935, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_035_000 picoseconds.
|
||||||
|
Weight::from_parts(5_255_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -131,9 +131,17 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:999 w:999)
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
/// The range of component `u` is `[1, 1000]`.
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_132_000 picoseconds.
|
||||||
|
Weight::from_parts(5_467_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
fn upgrade_accounts(u: u32, ) -> Weight {
|
fn upgrade_accounts(u: u32, ) -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
|
|||||||
@@ -131,9 +131,17 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
|||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:999 w:999)
|
/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
|
||||||
/// The range of component `u` is `[1, 1000]`.
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `1501`
|
||||||
|
// Minimum execution time: 5_132_000 picoseconds.
|
||||||
|
Weight::from_parts(5_467_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 1501))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
}
|
||||||
fn upgrade_accounts(u: u32, ) -> Weight {
|
fn upgrade_accounts(u: u32, ) -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (136 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
|
|||||||
@@ -309,7 +309,7 @@ impl pallet_balances::Config for Runtime {
|
|||||||
type MaxLocks = MaxLocks;
|
type MaxLocks = MaxLocks;
|
||||||
type MaxReserves = MaxReserves;
|
type MaxReserves = MaxReserves;
|
||||||
type ReserveIdentifier = [u8; 8];
|
type ReserveIdentifier = [u8; 8];
|
||||||
type WeightInfo = weights::pallet_balances::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_balances_balances::WeightInfo<Runtime>;
|
||||||
type FreezeIdentifier = ();
|
type FreezeIdentifier = ();
|
||||||
type MaxFreezes = ConstU32<1>;
|
type MaxFreezes = ConstU32<1>;
|
||||||
type RuntimeHoldReason = RuntimeHoldReason;
|
type RuntimeHoldReason = RuntimeHoldReason;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
pub mod frame_system;
|
pub mod frame_system;
|
||||||
pub mod pallet_asset_rate;
|
pub mod pallet_asset_rate;
|
||||||
pub mod pallet_balances;
|
pub mod pallet_balances_balances;
|
||||||
pub mod pallet_balances_nis_counterpart_balances;
|
pub mod pallet_balances_nis_counterpart_balances;
|
||||||
pub mod pallet_bounties;
|
pub mod pallet_bounties;
|
||||||
pub mod pallet_child_bounties;
|
pub mod pallet_child_bounties;
|
||||||
|
|||||||
@@ -1,99 +0,0 @@
|
|||||||
// Copyright (C) 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_balances`
|
|
||||||
//!
|
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
||||||
//! DATE: 2022-11-16, 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("rococo-dev"), DB CACHE: 1024
|
|
||||||
|
|
||||||
// Executed Command:
|
|
||||||
// ./target/production/polkadot
|
|
||||||
// benchmark
|
|
||||||
// pallet
|
|
||||||
// --chain=rococo-dev
|
|
||||||
// --steps=50
|
|
||||||
// --repeat=20
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --extrinsic=*
|
|
||||||
// --execution=wasm
|
|
||||||
// --wasm-execution=compiled
|
|
||||||
// --header=./file_header.txt
|
|
||||||
// --output=./runtime/rococo/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_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_allow_death() -> Weight {
|
|
||||||
// Minimum execution time: 40_106 nanoseconds.
|
|
||||||
Weight::from_parts(40_750_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
||||||
}
|
|
||||||
// Storage: System Account (r:1 w:1)
|
|
||||||
fn transfer_keep_alive() -> Weight {
|
|
||||||
// Minimum execution time: 30_737 nanoseconds.
|
|
||||||
Weight::from_parts(31_295_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
||||||
}
|
|
||||||
// Storage: System Account (r:1 w:1)
|
|
||||||
fn force_set_balance_creating() -> Weight {
|
|
||||||
// Minimum execution time: 23_902 nanoseconds.
|
|
||||||
Weight::from_parts(24_338_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
||||||
}
|
|
||||||
// Storage: System Account (r:1 w:1)
|
|
||||||
fn force_set_balance_killing() -> Weight {
|
|
||||||
// Minimum execution time: 26_492 nanoseconds.
|
|
||||||
Weight::from_parts(26_866_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
||||||
}
|
|
||||||
// Storage: System Account (r:2 w:2)
|
|
||||||
fn force_transfer() -> Weight {
|
|
||||||
// Minimum execution time: 40_384 nanoseconds.
|
|
||||||
Weight::from_parts(41_000_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
||||||
}
|
|
||||||
// Storage: System Account (r:1 w:1)
|
|
||||||
fn transfer_all() -> Weight {
|
|
||||||
// Minimum execution time: 35_115 nanoseconds.
|
|
||||||
Weight::from_parts(35_696_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
||||||
}
|
|
||||||
// Storage: System Account (r:1 w:1)
|
|
||||||
fn force_unreserve() -> Weight {
|
|
||||||
// Minimum execution time: 20_274 nanoseconds.
|
|
||||||
Weight::from_parts(20_885_000 as u64, 0)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
||||||
}
|
|
||||||
fn upgrade_accounts(_: u32) -> Weight {
|
|
||||||
Weight::from_parts(0, 0)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,160 @@
|
|||||||
|
// Copyright (C) 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_balances`
|
||||||
|
//!
|
||||||
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
|
// Executed Command:
|
||||||
|
// target/production/polkadot
|
||||||
|
// benchmark
|
||||||
|
// pallet
|
||||||
|
// --steps=50
|
||||||
|
// --repeat=20
|
||||||
|
// --extrinsic=*
|
||||||
|
// --wasm-execution=compiled
|
||||||
|
// --heap-pages=4096
|
||||||
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=rococo-dev
|
||||||
|
// --header=./polkadot/file_header.txt
|
||||||
|
// --output=./polkadot/runtime/rococo/src/weights/
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
|
#![allow(unused_parens)]
|
||||||
|
#![allow(unused_imports)]
|
||||||
|
#![allow(missing_docs)]
|
||||||
|
|
||||||
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
|
use core::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)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn transfer_allow_death() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 44_127_000 picoseconds.
|
||||||
|
Weight::from_parts(45_099_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn transfer_keep_alive() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 34_265_000 picoseconds.
|
||||||
|
Weight::from_parts(35_083_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn force_set_balance_creating() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `174`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 12_189_000 picoseconds.
|
||||||
|
Weight::from_parts(12_655_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn force_set_balance_killing() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `174`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 16_910_000 picoseconds.
|
||||||
|
Weight::from_parts(17_474_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:2 w:2)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn force_transfer() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `103`
|
||||||
|
// Estimated: `6196`
|
||||||
|
// Minimum execution time: 45_212_000 picoseconds.
|
||||||
|
Weight::from_parts(46_320_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn transfer_all() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 42_500_000 picoseconds.
|
||||||
|
Weight::from_parts(43_991_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn force_unreserve() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `174`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 15_197_000 picoseconds.
|
||||||
|
Weight::from_parts(15_749_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
|
}
|
||||||
|
/// Storage: `System::Account` (r:999 w:999)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
/// The range of component `u` is `[1, 1000]`.
|
||||||
|
/// The range of component `u` is `[1, 1000]`.
|
||||||
|
fn upgrade_accounts(u: u32, ) -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0 + u * (135 ±0)`
|
||||||
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
|
// Minimum execution time: 14_414_000 picoseconds.
|
||||||
|
Weight::from_parts(14_685_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
|
// Standard Error: 7_918
|
||||||
|
.saturating_add(Weight::from_parts(13_095_420, 0).saturating_mul(u.into()))
|
||||||
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
|
}
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `0`
|
||||||
|
// Minimum execution time: 5_239_000 picoseconds.
|
||||||
|
Weight::from_parts(5_617_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 0))
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -17,24 +17,25 @@
|
|||||||
//! Autogenerated weights for `pallet_balances`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-05-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("rococo-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot
|
// target/production/polkadot
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=rococo-dev
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --extrinsic=*
|
// --extrinsic=*
|
||||||
// --execution=wasm
|
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --header=./file_header.txt
|
// --heap-pages=4096
|
||||||
// --output=./runtime/rococo/src/weights/
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=rococo-dev
|
||||||
|
// --header=./polkadot/file_header.txt
|
||||||
|
// --output=./polkadot/runtime/rococo/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -47,129 +48,127 @@ use core::marker::PhantomData;
|
|||||||
/// Weight functions for `pallet_balances`.
|
/// Weight functions for `pallet_balances`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
||||||
/// Storage: NisCounterpartBalances TotalIssuance (r:1 w:1)
|
/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
|
||||||
/// Proof: NisCounterpartBalances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
/// Storage: NisCounterpartBalances Account (r:2 w:2)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
/// Storage: System Account (r:1 w:1)
|
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
||||||
fn transfer_allow_death() -> Weight {
|
fn transfer_allow_death() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `219`
|
// Measured: `103`
|
||||||
// Estimated: `6164`
|
// Estimated: `6164`
|
||||||
// Minimum execution time: 54_122_000 picoseconds.
|
// Minimum execution time: 41_978_000 picoseconds.
|
||||||
Weight::from_parts(54_834_000, 0)
|
Weight::from_parts(42_989_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6164))
|
.saturating_add(Weight::from_parts(0, 6164))
|
||||||
.saturating_add(T::DbWeight::get().reads(4))
|
.saturating_add(T::DbWeight::get().reads(3))
|
||||||
.saturating_add(T::DbWeight::get().writes(4))
|
|
||||||
}
|
|
||||||
/// Storage: NisCounterpartBalances TotalIssuance (r:1 w:0)
|
|
||||||
/// Proof: NisCounterpartBalances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
||||||
/// Storage: NisCounterpartBalances Account (r:2 w:2)
|
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
|
||||||
/// Storage: System Account (r:1 w:1)
|
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
||||||
fn transfer_keep_alive() -> Weight {
|
|
||||||
// Proof Size summary in bytes:
|
|
||||||
// Measured: `219`
|
|
||||||
// Estimated: `6164`
|
|
||||||
// Minimum execution time: 41_749_000 picoseconds.
|
|
||||||
Weight::from_parts(42_193_000, 0)
|
|
||||||
.saturating_add(Weight::from_parts(0, 6164))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(4))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(3))
|
.saturating_add(T::DbWeight::get().writes(3))
|
||||||
}
|
}
|
||||||
/// Storage: NisCounterpartBalances Account (r:1 w:1)
|
/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn transfer_keep_alive() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `103`
|
||||||
|
// Estimated: `6164`
|
||||||
|
// Minimum execution time: 32_250_000 picoseconds.
|
||||||
|
Weight::from_parts(33_074_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 6164))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(3))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(3))
|
||||||
|
}
|
||||||
|
/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
|
||||||
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
fn force_set_balance_creating() -> Weight {
|
fn force_set_balance_creating() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `217`
|
// Measured: `103`
|
||||||
// Estimated: `3577`
|
// Estimated: `3577`
|
||||||
// Minimum execution time: 16_008_000 picoseconds.
|
// Minimum execution time: 9_906_000 picoseconds.
|
||||||
Weight::from_parts(16_328_000, 0)
|
Weight::from_parts(10_397_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3577))
|
.saturating_add(Weight::from_parts(0, 3577))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: NisCounterpartBalances Account (r:1 w:1)
|
/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
/// Storage: NisCounterpartBalances TotalIssuance (r:1 w:1)
|
|
||||||
/// Proof: NisCounterpartBalances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
||||||
fn force_set_balance_killing() -> Weight {
|
fn force_set_balance_killing() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `393`
|
// Measured: `277`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 26_277_000 picoseconds.
|
// Minimum execution time: 16_298_000 picoseconds.
|
||||||
Weight::from_parts(26_932_000, 0)
|
Weight::from_parts(17_115_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(3))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(3))
|
|
||||||
}
|
|
||||||
/// Storage: NisCounterpartBalances TotalIssuance (r:1 w:1)
|
|
||||||
/// Proof: NisCounterpartBalances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
||||||
/// Storage: NisCounterpartBalances Account (r:2 w:2)
|
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
|
||||||
/// Storage: System Account (r:2 w:2)
|
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
||||||
fn force_transfer() -> Weight {
|
|
||||||
// Proof Size summary in bytes:
|
|
||||||
// Measured: `322`
|
|
||||||
// Estimated: `6196`
|
|
||||||
// Minimum execution time: 57_020_000 picoseconds.
|
|
||||||
Weight::from_parts(57_661_000, 0)
|
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(5))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(5))
|
|
||||||
}
|
|
||||||
/// Storage: NisCounterpartBalances Account (r:2 w:2)
|
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
|
||||||
/// Storage: NisCounterpartBalances TotalIssuance (r:1 w:0)
|
|
||||||
/// Proof: NisCounterpartBalances TotalIssuance (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
|
|
||||||
/// Storage: System Account (r:1 w:1)
|
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
||||||
fn transfer_all() -> Weight {
|
|
||||||
// Proof Size summary in bytes:
|
|
||||||
// Measured: `219`
|
|
||||||
// Estimated: `6164`
|
|
||||||
// Minimum execution time: 50_630_000 picoseconds.
|
|
||||||
Weight::from_parts(51_191_000, 0)
|
|
||||||
.saturating_add(Weight::from_parts(0, 6164))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(4))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(3))
|
|
||||||
}
|
|
||||||
/// Storage: NisCounterpartBalances Account (r:1 w:1)
|
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
|
||||||
/// Storage: System Account (r:1 w:1)
|
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
||||||
fn force_unreserve() -> Weight {
|
|
||||||
// Proof Size summary in bytes:
|
|
||||||
// Measured: `391`
|
|
||||||
// Estimated: `3593`
|
|
||||||
// Minimum execution time: 21_915_000 picoseconds.
|
|
||||||
Weight::from_parts(22_295_000, 0)
|
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
}
|
}
|
||||||
/// Storage: NisCounterpartBalances Account (r:999 w:999)
|
/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
|
||||||
/// Proof: NisCounterpartBalances Account (max_values: None, max_size: Some(112), added: 2587, mode: MaxEncodedLen)
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
/// Storage: System Account (r:999 w:999)
|
/// Storage: `System::Account` (r:2 w:2)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn force_transfer() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `206`
|
||||||
|
// Estimated: `6196`
|
||||||
|
// Minimum execution time: 43_283_000 picoseconds.
|
||||||
|
Weight::from_parts(44_033_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(4))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(4))
|
||||||
|
}
|
||||||
|
/// Storage: `NisCounterpartBalances::Account` (r:2 w:2)
|
||||||
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn transfer_all() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `103`
|
||||||
|
// Estimated: `6164`
|
||||||
|
// Minimum execution time: 40_564_000 picoseconds.
|
||||||
|
Weight::from_parts(41_597_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 6164))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(3))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(3))
|
||||||
|
}
|
||||||
|
/// Storage: `NisCounterpartBalances::Account` (r:1 w:1)
|
||||||
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
|
fn force_unreserve() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `277`
|
||||||
|
// Estimated: `3593`
|
||||||
|
// Minimum execution time: 15_018_000 picoseconds.
|
||||||
|
Weight::from_parts(15_532_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
|
}
|
||||||
|
/// Storage: `NisCounterpartBalances::Account` (r:999 w:999)
|
||||||
|
/// Proof: `NisCounterpartBalances::Account` (`max_values`: None, `max_size`: Some(112), added: 2587, mode: `MaxEncodedLen`)
|
||||||
|
/// Storage: `System::Account` (r:999 w:999)
|
||||||
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
/// The range of component `u` is `[1, 1000]`.
|
/// The range of component `u` is `[1, 1000]`.
|
||||||
/// The range of component `u` is `[1, 1000]`.
|
/// The range of component `u` is `[1, 1000]`.
|
||||||
fn upgrade_accounts(u: u32, ) -> Weight {
|
fn upgrade_accounts(u: u32, ) -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (256 ±0)`
|
// Measured: `0 + u * (256 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 21_290_000 picoseconds.
|
// Minimum execution time: 14_470_000 picoseconds.
|
||||||
Weight::from_parts(21_622_000, 0)
|
Weight::from_parts(14_828_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 13_372
|
// Standard Error: 15_515
|
||||||
.saturating_add(Weight::from_parts(15_527_611, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(14_505_553, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `0`
|
||||||
|
// Minimum execution time: 5_277_000 picoseconds.
|
||||||
|
Weight::from_parts(5_628_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 0))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,27 +17,25 @@
|
|||||||
//! Autogenerated weights for `pallet_balances`
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-06-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner--ss9ysm1-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("westend-dev")`, DB CACHE: 1024
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/production/polkadot
|
// target/production/polkadot
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --chain=westend-dev
|
|
||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --no-storage-info
|
|
||||||
// --no-median-slopes
|
|
||||||
// --no-min-squares
|
|
||||||
// --pallet=pallet_balances
|
|
||||||
// --extrinsic=*
|
// --extrinsic=*
|
||||||
// --execution=wasm
|
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --header=./file_header.txt
|
// --heap-pages=4096
|
||||||
// --output=./runtime/westend/src/weights/
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
|
// --pallet=pallet_balances
|
||||||
|
// --chain=westend-dev
|
||||||
|
// --header=./polkadot/file_header.txt
|
||||||
|
// --output=./polkadot/runtime/westend/src/weights/
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -50,104 +48,112 @@ use core::marker::PhantomData;
|
|||||||
/// Weight functions for `pallet_balances`.
|
/// Weight functions for `pallet_balances`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn transfer_allow_death() -> Weight {
|
fn transfer_allow_death() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 57_163_000 picoseconds.
|
// Minimum execution time: 43_680_000 picoseconds.
|
||||||
Weight::from_parts(58_105_000, 0)
|
Weight::from_parts(45_012_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 43_085_000 picoseconds.
|
// Minimum execution time: 34_038_000 picoseconds.
|
||||||
Weight::from_parts(43_779_000, 0)
|
Weight::from_parts(35_771_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_set_balance_creating() -> Weight {
|
fn force_set_balance_creating() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 16_153_000 picoseconds.
|
// Minimum execution time: 12_609_000 picoseconds.
|
||||||
Weight::from_parts(16_725_000, 0)
|
Weight::from_parts(13_142_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_set_balance_killing() -> Weight {
|
fn force_set_balance_killing() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 23_335_000 picoseconds.
|
// Minimum execution time: 17_533_000 picoseconds.
|
||||||
Weight::from_parts(23_715_000, 0)
|
Weight::from_parts(18_061_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:2 w:2)
|
/// Storage: `System::Account` (r:2 w:2)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 58_776_000 picoseconds.
|
// Minimum execution time: 45_278_000 picoseconds.
|
||||||
Weight::from_parts(59_353_000, 0)
|
Weight::from_parts(46_670_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 6196))
|
.saturating_add(Weight::from_parts(0, 6196))
|
||||||
.saturating_add(T::DbWeight::get().reads(2))
|
.saturating_add(T::DbWeight::get().reads(2))
|
||||||
.saturating_add(T::DbWeight::get().writes(2))
|
.saturating_add(T::DbWeight::get().writes(2))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn transfer_all() -> Weight {
|
fn transfer_all() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 52_826_000 picoseconds.
|
// Minimum execution time: 43_125_000 picoseconds.
|
||||||
Weight::from_parts(53_816_000, 0)
|
Weight::from_parts(43_925_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
fn force_unreserve() -> Weight {
|
fn force_unreserve() -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 19_400_000 picoseconds.
|
// Minimum execution time: 15_580_000 picoseconds.
|
||||||
Weight::from_parts(19_746_000, 0)
|
Weight::from_parts(16_023_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 3593))
|
.saturating_add(Weight::from_parts(0, 3593))
|
||||||
.saturating_add(T::DbWeight::get().reads(1))
|
.saturating_add(T::DbWeight::get().reads(1))
|
||||||
.saturating_add(T::DbWeight::get().writes(1))
|
.saturating_add(T::DbWeight::get().writes(1))
|
||||||
}
|
}
|
||||||
/// Storage: System Account (r:999 w:999)
|
/// Storage: `System::Account` (r:999 w:999)
|
||||||
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
|
||||||
/// The range of component `u` is `[1, 1000]`.
|
/// The range of component `u` is `[1, 1000]`.
|
||||||
fn upgrade_accounts(u: u32, ) -> Weight {
|
fn upgrade_accounts(u: u32, ) -> Weight {
|
||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (135 ±0)`
|
// Measured: `0 + u * (136 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 18_465_000 picoseconds.
|
// Minimum execution time: 14_868_000 picoseconds.
|
||||||
Weight::from_parts(18_670_000, 0)
|
Weight::from_parts(15_130_000, 0)
|
||||||
.saturating_add(Weight::from_parts(0, 990))
|
.saturating_add(Weight::from_parts(0, 990))
|
||||||
// Standard Error: 22_827
|
// Standard Error: 10_719
|
||||||
.saturating_add(Weight::from_parts(17_357_501, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_394_926, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `0`
|
||||||
|
// Minimum execution time: 5_174_000 picoseconds.
|
||||||
|
Weight::from_parts(5_457_000, 0)
|
||||||
|
.saturating_add(Weight::from_parts(0, 0))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
title: "Introduce `Balances::force_adjust_total_issuance`"
|
||||||
|
|
||||||
|
doc:
|
||||||
|
- audience: Runtime Dev
|
||||||
|
description: |
|
||||||
|
Introduce a root extrinsic to forcefully adjust the Total Issuance. Should only be used to fix historic errors.
|
||||||
|
|
||||||
|
crates:
|
||||||
|
- name: "pallet-balances"
|
||||||
@@ -24,6 +24,7 @@ frame-support = { path = "../support", default-features = false }
|
|||||||
frame-system = { path = "../system", default-features = false }
|
frame-system = { path = "../system", default-features = false }
|
||||||
sp-runtime = { path = "../../primitives/runtime", default-features = false }
|
sp-runtime = { path = "../../primitives/runtime", default-features = false }
|
||||||
sp-std = { path = "../../primitives/std", default-features = false }
|
sp-std = { path = "../../primitives/std", default-features = false }
|
||||||
|
docify = "0.2.6"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
pallet-transaction-payment = { path = "../transaction-payment" }
|
pallet-transaction-payment = { path = "../transaction-payment" }
|
||||||
|
|||||||
@@ -286,6 +286,17 @@ mod benchmarks {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[benchmark]
|
||||||
|
fn force_adjust_total_issuance() {
|
||||||
|
let ti = Balances::<T, I>::total_issuance();
|
||||||
|
let delta = 123u32.into();
|
||||||
|
|
||||||
|
#[extrinsic_call]
|
||||||
|
_(RawOrigin::Root, AdjustmentDirection::Increase, delta);
|
||||||
|
|
||||||
|
assert_eq!(Balances::<T, I>::total_issuance(), ti + delta);
|
||||||
|
}
|
||||||
|
|
||||||
impl_benchmark_test_suite! {
|
impl_benchmark_test_suite! {
|
||||||
Balances,
|
Balances,
|
||||||
crate::tests::ExtBuilder::default().build(),
|
crate::tests::ExtBuilder::default().build(),
|
||||||
|
|||||||
@@ -190,7 +190,8 @@ use sp_runtime::{
|
|||||||
};
|
};
|
||||||
use sp_std::{cmp, fmt::Debug, mem, prelude::*, result};
|
use sp_std::{cmp, fmt::Debug, mem, prelude::*, result};
|
||||||
pub use types::{
|
pub use types::{
|
||||||
AccountData, BalanceLock, DustCleaner, ExtraFlags, IdAmount, Reasons, ReserveData,
|
AccountData, AdjustmentDirection, BalanceLock, DustCleaner, ExtraFlags, IdAmount, Reasons,
|
||||||
|
ReserveData,
|
||||||
};
|
};
|
||||||
pub use weights::WeightInfo;
|
pub use weights::WeightInfo;
|
||||||
|
|
||||||
@@ -384,6 +385,8 @@ pub mod pallet {
|
|||||||
Frozen { who: T::AccountId, amount: T::Balance },
|
Frozen { who: T::AccountId, amount: T::Balance },
|
||||||
/// Some balance was thawed.
|
/// Some balance was thawed.
|
||||||
Thawed { who: T::AccountId, amount: T::Balance },
|
Thawed { who: T::AccountId, amount: T::Balance },
|
||||||
|
/// The `TotalIssuance` was forcefully changed.
|
||||||
|
TotalIssuanceForced { old: T::Balance, new: T::Balance },
|
||||||
}
|
}
|
||||||
|
|
||||||
#[pallet::error]
|
#[pallet::error]
|
||||||
@@ -408,6 +411,10 @@ pub mod pallet {
|
|||||||
TooManyHolds,
|
TooManyHolds,
|
||||||
/// Number of freezes exceed `MaxFreezes`.
|
/// Number of freezes exceed `MaxFreezes`.
|
||||||
TooManyFreezes,
|
TooManyFreezes,
|
||||||
|
/// The issuance cannot be modified since it is already deactivated.
|
||||||
|
IssuanceDeactivated,
|
||||||
|
/// The delta cannot be zero.
|
||||||
|
DeltaZero,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The total units issued in the system.
|
/// The total units issued in the system.
|
||||||
@@ -743,6 +750,37 @@ pub mod pallet {
|
|||||||
Self::deposit_event(Event::BalanceSet { who, free: new_free });
|
Self::deposit_event(Event::BalanceSet { who, free: new_free });
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Adjust the total issuance in a saturating way.
|
||||||
|
///
|
||||||
|
/// Can only be called by root and always needs a positive `delta`.
|
||||||
|
///
|
||||||
|
/// # Example
|
||||||
|
#[doc = docify::embed!("./src/tests/dispatchable_tests.rs", force_adjust_total_issuance_example)]
|
||||||
|
#[pallet::call_index(9)]
|
||||||
|
#[pallet::weight(T::WeightInfo::force_adjust_total_issuance())]
|
||||||
|
pub fn force_adjust_total_issuance(
|
||||||
|
origin: OriginFor<T>,
|
||||||
|
direction: AdjustmentDirection,
|
||||||
|
#[pallet::compact] delta: T::Balance,
|
||||||
|
) -> DispatchResult {
|
||||||
|
ensure_root(origin)?;
|
||||||
|
|
||||||
|
ensure!(delta > Zero::zero(), Error::<T, I>::DeltaZero);
|
||||||
|
|
||||||
|
let old = TotalIssuance::<T, I>::get();
|
||||||
|
let new = match direction {
|
||||||
|
AdjustmentDirection::Increase => old.saturating_add(delta),
|
||||||
|
AdjustmentDirection::Decrease => old.saturating_sub(delta),
|
||||||
|
};
|
||||||
|
|
||||||
|
ensure!(InactiveIssuance::<T, I>::get() <= new, Error::<T, I>::IssuanceDeactivated);
|
||||||
|
TotalIssuance::<T, I>::set(new);
|
||||||
|
|
||||||
|
Self::deposit_event(Event::<T, I>::TotalIssuanceForced { old, new });
|
||||||
|
|
||||||
|
Ok(())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
impl<T: Config<I>, I: 'static> Pallet<T, I> {
|
||||||
|
|||||||
@@ -18,9 +18,16 @@
|
|||||||
//! Tests regarding the functionality of the dispatchables/extrinsics.
|
//! Tests regarding the functionality of the dispatchables/extrinsics.
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use frame_support::traits::tokens::Preservation::Expendable;
|
use crate::{
|
||||||
|
AdjustmentDirection::{Decrease as Dec, Increase as Inc},
|
||||||
|
Event,
|
||||||
|
};
|
||||||
|
use frame_support::traits::{fungible::Unbalanced, tokens::Preservation::Expendable};
|
||||||
use fungible::{hold::Mutate as HoldMutate, Inspect, Mutate};
|
use fungible::{hold::Mutate as HoldMutate, Inspect, Mutate};
|
||||||
|
|
||||||
|
/// Alice account ID for more readable tests.
|
||||||
|
const ALICE: u64 = 1;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn default_indexing_on_new_accounts_should_not_work2() {
|
fn default_indexing_on_new_accounts_should_not_work2() {
|
||||||
ExtBuilder::default()
|
ExtBuilder::default()
|
||||||
@@ -222,3 +229,109 @@ fn upgrade_accounts_should_work() {
|
|||||||
assert_eq!(System::consumers(&7), 0);
|
assert_eq!(System::consumers(&7), 0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[docify::export]
|
||||||
|
fn force_adjust_total_issuance_example() {
|
||||||
|
ExtBuilder::default().build_and_execute_with(|| {
|
||||||
|
// First we set the TotalIssuance to 64 by giving Alice a balance of 64.
|
||||||
|
assert_ok!(Balances::force_set_balance(RuntimeOrigin::root(), ALICE, 64));
|
||||||
|
let old_ti = Balances::total_issuance();
|
||||||
|
assert_eq!(old_ti, 64, "TI should be 64");
|
||||||
|
|
||||||
|
// Now test the increase:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Inc, 32));
|
||||||
|
let new_ti = Balances::total_issuance();
|
||||||
|
assert_eq!(old_ti + 32, new_ti, "Should increase by 32");
|
||||||
|
|
||||||
|
// If Alice tries to call it, it errors:
|
||||||
|
assert_noop!(
|
||||||
|
Balances::force_adjust_total_issuance(RawOrigin::Signed(ALICE).into(), Inc, 32),
|
||||||
|
BadOrigin,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn force_adjust_total_issuance_works() {
|
||||||
|
ExtBuilder::default().build_and_execute_with(|| {
|
||||||
|
assert_ok!(Balances::force_set_balance(RuntimeOrigin::root(), 1337, 64));
|
||||||
|
let ti = Balances::total_issuance();
|
||||||
|
|
||||||
|
// Increase works:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Inc, 32));
|
||||||
|
assert_eq!(Balances::total_issuance(), ti + 32);
|
||||||
|
System::assert_last_event(RuntimeEvent::Balances(Event::TotalIssuanceForced {
|
||||||
|
old: 64,
|
||||||
|
new: 96,
|
||||||
|
}));
|
||||||
|
|
||||||
|
// Decrease works:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, 64));
|
||||||
|
assert_eq!(Balances::total_issuance(), ti - 32);
|
||||||
|
System::assert_last_event(RuntimeEvent::Balances(Event::TotalIssuanceForced {
|
||||||
|
old: 96,
|
||||||
|
new: 32,
|
||||||
|
}));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn force_adjust_total_issuance_saturates() {
|
||||||
|
ExtBuilder::default().build_and_execute_with(|| {
|
||||||
|
assert_ok!(Balances::force_set_balance(RuntimeOrigin::root(), 1337, 64));
|
||||||
|
let ti = Balances::total_issuance();
|
||||||
|
let max = Balance::max_value();
|
||||||
|
assert_eq!(ti, 64);
|
||||||
|
|
||||||
|
// Increment saturates:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Inc, max));
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Inc, 123));
|
||||||
|
assert_eq!(Balances::total_issuance(), max);
|
||||||
|
|
||||||
|
// Decrement saturates:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, max));
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, 123));
|
||||||
|
assert_eq!(Balances::total_issuance(), 0);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn force_adjust_total_issuance_rejects_zero_delta() {
|
||||||
|
ExtBuilder::default().build_and_execute_with(|| {
|
||||||
|
assert_noop!(
|
||||||
|
Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Inc, 0),
|
||||||
|
Error::<Test>::DeltaZero,
|
||||||
|
);
|
||||||
|
assert_noop!(
|
||||||
|
Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, 0),
|
||||||
|
Error::<Test>::DeltaZero,
|
||||||
|
);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn force_adjust_total_issuance_rejects_more_than_inactive() {
|
||||||
|
ExtBuilder::default().build_and_execute_with(|| {
|
||||||
|
assert_ok!(Balances::force_set_balance(RuntimeOrigin::root(), 1337, 64));
|
||||||
|
Balances::deactivate(16u32.into());
|
||||||
|
|
||||||
|
assert_eq!(Balances::total_issuance(), 64);
|
||||||
|
assert_eq!(Balances::active_issuance(), 48);
|
||||||
|
|
||||||
|
// Works with up to 48:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, 40),);
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, 8),);
|
||||||
|
assert_eq!(Balances::total_issuance(), 16);
|
||||||
|
assert_eq!(Balances::active_issuance(), 0);
|
||||||
|
// Errors with more than 48:
|
||||||
|
assert_noop!(
|
||||||
|
Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Dec, 1),
|
||||||
|
Error::<Test>::IssuanceDeactivated,
|
||||||
|
);
|
||||||
|
// Increasing again increases the inactive issuance:
|
||||||
|
assert_ok!(Balances::force_adjust_total_issuance(RawOrigin::Root.into(), Inc, 10),);
|
||||||
|
assert_eq!(Balances::total_issuance(), 26);
|
||||||
|
assert_eq!(Balances::active_issuance(), 10);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -126,8 +126,10 @@ impl pallet_transaction_payment::Config for Test {
|
|||||||
type FeeMultiplierUpdate = ();
|
type FeeMultiplierUpdate = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub(crate) type Balance = u64;
|
||||||
|
|
||||||
impl Config for Test {
|
impl Config for Test {
|
||||||
type Balance = u64;
|
type Balance = Balance;
|
||||||
type DustRemoval = DustTrap;
|
type DustRemoval = DustTrap;
|
||||||
type RuntimeEvent = RuntimeEvent;
|
type RuntimeEvent = RuntimeEvent;
|
||||||
type ExistentialDeposit = ExistentialDeposit;
|
type ExistentialDeposit = ExistentialDeposit;
|
||||||
|
|||||||
@@ -152,3 +152,12 @@ impl<T: Config<I>, I: 'static> Drop for DustCleaner<T, I> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Whether something should be interpreted as an increase or a decrease.
|
||||||
|
#[derive(Encode, Decode, Clone, PartialEq, Eq, RuntimeDebug, MaxEncodedLen, TypeInfo)]
|
||||||
|
pub enum AdjustmentDirection {
|
||||||
|
/// Increase the amount.
|
||||||
|
Increase,
|
||||||
|
/// Decrease the amount.
|
||||||
|
Decrease,
|
||||||
|
}
|
||||||
|
|||||||
Generated
+62
-47
@@ -15,16 +15,16 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//! Autogenerated weights for pallet_balances
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2023-07-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2024-01-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! WORST CASE MAP SIZE: `1000000`
|
//! WORST CASE MAP SIZE: `1000000`
|
||||||
//! HOSTNAME: `runner-o7yfgx5n-project-145-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
//! HOSTNAME: `runner-j8vvqcjr-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
||||||
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// target/production/substrate
|
// target/production/substrate-node
|
||||||
// benchmark
|
// benchmark
|
||||||
// pallet
|
// pallet
|
||||||
// --steps=50
|
// --steps=50
|
||||||
@@ -32,12 +32,12 @@
|
|||||||
// --extrinsic=*
|
// --extrinsic=*
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --heap-pages=4096
|
// --heap-pages=4096
|
||||||
// --json-file=/builds/parity/mirrors/substrate/.git/.artifacts/bench.json
|
// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
|
||||||
// --pallet=pallet_balances
|
// --pallet=pallet_balances
|
||||||
// --chain=dev
|
// --chain=dev
|
||||||
// --header=./HEADER-APACHE2
|
// --header=./substrate/HEADER-APACHE2
|
||||||
// --output=./frame/balances/src/weights.rs
|
// --output=./substrate/frame/balances/src/weights.rs
|
||||||
// --template=./.maintain/frame-weight-template.hbs
|
// --template=./substrate/.maintain/frame-weight-template.hbs
|
||||||
|
|
||||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions needed for pallet_balances.
|
/// Weight functions needed for `pallet_balances`.
|
||||||
pub trait WeightInfo {
|
pub trait WeightInfo {
|
||||||
fn transfer_allow_death() -> Weight;
|
fn transfer_allow_death() -> Weight;
|
||||||
fn transfer_keep_alive() -> Weight;
|
fn transfer_keep_alive() -> Weight;
|
||||||
@@ -57,9 +57,10 @@ pub trait WeightInfo {
|
|||||||
fn transfer_all() -> Weight;
|
fn transfer_all() -> Weight;
|
||||||
fn force_unreserve() -> Weight;
|
fn force_unreserve() -> Weight;
|
||||||
fn upgrade_accounts(u: u32, ) -> Weight;
|
fn upgrade_accounts(u: u32, ) -> Weight;
|
||||||
|
fn force_adjust_total_issuance() -> Weight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Weights for pallet_balances using the Substrate node and recommended hardware.
|
/// Weights for `pallet_balances` using the Substrate node and recommended hardware.
|
||||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||||
/// Storage: `System::Account` (r:1 w:1)
|
/// Storage: `System::Account` (r:1 w:1)
|
||||||
@@ -68,8 +69,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 58_474_000 picoseconds.
|
// Minimum execution time: 46_329_000 picoseconds.
|
||||||
Weight::from_parts(59_117_000, 3593)
|
Weight::from_parts(47_297_000, 3593)
|
||||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -79,8 +80,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 44_629_000 picoseconds.
|
// Minimum execution time: 36_187_000 picoseconds.
|
||||||
Weight::from_parts(45_798_000, 3593)
|
Weight::from_parts(36_900_000, 3593)
|
||||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -90,8 +91,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 16_483_000 picoseconds.
|
// Minimum execution time: 13_498_000 picoseconds.
|
||||||
Weight::from_parts(16_939_000, 3593)
|
Weight::from_parts(14_143_000, 3593)
|
||||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -101,8 +102,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 24_638_000 picoseconds.
|
// Minimum execution time: 18_756_000 picoseconds.
|
||||||
Weight::from_parts(25_487_000, 3593)
|
Weight::from_parts(19_553_000, 3593)
|
||||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -112,8 +113,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 60_041_000 picoseconds.
|
// Minimum execution time: 47_826_000 picoseconds.
|
||||||
Weight::from_parts(63_365_000, 6196)
|
Weight::from_parts(48_834_000, 6196)
|
||||||
.saturating_add(T::DbWeight::get().reads(2_u64))
|
.saturating_add(T::DbWeight::get().reads(2_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(2_u64))
|
.saturating_add(T::DbWeight::get().writes(2_u64))
|
||||||
}
|
}
|
||||||
@@ -123,8 +124,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 54_445_000 picoseconds.
|
// Minimum execution time: 44_621_000 picoseconds.
|
||||||
Weight::from_parts(55_623_000, 3593)
|
Weight::from_parts(45_151_000, 3593)
|
||||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -134,8 +135,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 19_309_000 picoseconds.
|
// Minimum execution time: 16_194_000 picoseconds.
|
||||||
Weight::from_parts(19_953_000, 3593)
|
Weight::from_parts(16_945_000, 3593)
|
||||||
.saturating_add(T::DbWeight::get().reads(1_u64))
|
.saturating_add(T::DbWeight::get().reads(1_u64))
|
||||||
.saturating_add(T::DbWeight::get().writes(1_u64))
|
.saturating_add(T::DbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -146,14 +147,21 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (135 ±0)`
|
// Measured: `0 + u * (135 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 19_362_000 picoseconds.
|
// Minimum execution time: 15_782_000 picoseconds.
|
||||||
Weight::from_parts(19_612_000, 990)
|
Weight::from_parts(16_118_000, 990)
|
||||||
// Standard Error: 13_108
|
// Standard Error: 10_499
|
||||||
.saturating_add(Weight::from_parts(16_444_591, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_327_660, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `0`
|
||||||
|
// Minimum execution time: 6_157_000 picoseconds.
|
||||||
|
Weight::from_parts(6_507_000, 0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For backwards compatibility and tests.
|
// For backwards compatibility and tests.
|
||||||
@@ -164,8 +172,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 58_474_000 picoseconds.
|
// Minimum execution time: 46_329_000 picoseconds.
|
||||||
Weight::from_parts(59_117_000, 3593)
|
Weight::from_parts(47_297_000, 3593)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -175,8 +183,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 44_629_000 picoseconds.
|
// Minimum execution time: 36_187_000 picoseconds.
|
||||||
Weight::from_parts(45_798_000, 3593)
|
Weight::from_parts(36_900_000, 3593)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -186,8 +194,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 16_483_000 picoseconds.
|
// Minimum execution time: 13_498_000 picoseconds.
|
||||||
Weight::from_parts(16_939_000, 3593)
|
Weight::from_parts(14_143_000, 3593)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -197,8 +205,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 24_638_000 picoseconds.
|
// Minimum execution time: 18_756_000 picoseconds.
|
||||||
Weight::from_parts(25_487_000, 3593)
|
Weight::from_parts(19_553_000, 3593)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -208,8 +216,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `103`
|
// Measured: `103`
|
||||||
// Estimated: `6196`
|
// Estimated: `6196`
|
||||||
// Minimum execution time: 60_041_000 picoseconds.
|
// Minimum execution time: 47_826_000 picoseconds.
|
||||||
Weight::from_parts(63_365_000, 6196)
|
Weight::from_parts(48_834_000, 6196)
|
||||||
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
.saturating_add(RocksDbWeight::get().reads(2_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
.saturating_add(RocksDbWeight::get().writes(2_u64))
|
||||||
}
|
}
|
||||||
@@ -219,8 +227,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0`
|
// Measured: `0`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 54_445_000 picoseconds.
|
// Minimum execution time: 44_621_000 picoseconds.
|
||||||
Weight::from_parts(55_623_000, 3593)
|
Weight::from_parts(45_151_000, 3593)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -230,8 +238,8 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `174`
|
// Measured: `174`
|
||||||
// Estimated: `3593`
|
// Estimated: `3593`
|
||||||
// Minimum execution time: 19_309_000 picoseconds.
|
// Minimum execution time: 16_194_000 picoseconds.
|
||||||
Weight::from_parts(19_953_000, 3593)
|
Weight::from_parts(16_945_000, 3593)
|
||||||
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
.saturating_add(RocksDbWeight::get().reads(1_u64))
|
||||||
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
.saturating_add(RocksDbWeight::get().writes(1_u64))
|
||||||
}
|
}
|
||||||
@@ -242,12 +250,19 @@ impl WeightInfo for () {
|
|||||||
// Proof Size summary in bytes:
|
// Proof Size summary in bytes:
|
||||||
// Measured: `0 + u * (135 ±0)`
|
// Measured: `0 + u * (135 ±0)`
|
||||||
// Estimated: `990 + u * (2603 ±0)`
|
// Estimated: `990 + u * (2603 ±0)`
|
||||||
// Minimum execution time: 19_362_000 picoseconds.
|
// Minimum execution time: 15_782_000 picoseconds.
|
||||||
Weight::from_parts(19_612_000, 990)
|
Weight::from_parts(16_118_000, 990)
|
||||||
// Standard Error: 13_108
|
// Standard Error: 10_499
|
||||||
.saturating_add(Weight::from_parts(16_444_591, 0).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(13_327_660, 0).saturating_mul(u.into()))
|
||||||
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(u.into())))
|
||||||
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
.saturating_add(Weight::from_parts(0, 2603).saturating_mul(u.into()))
|
||||||
}
|
}
|
||||||
|
fn force_adjust_total_issuance() -> Weight {
|
||||||
|
// Proof Size summary in bytes:
|
||||||
|
// Measured: `0`
|
||||||
|
// Estimated: `0`
|
||||||
|
// Minimum execution time: 6_157_000 picoseconds.
|
||||||
|
Weight::from_parts(6_507_000, 0)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user