update weights (#5097)

* westend: update weights

* kusama: update weights

* polkadot: update weights

* westend: update weights (production profile)

* kusama: update weights (production profile)

* polkadot: update weights (production profile)

* kusama: update weights (production profile pt 2)

* westend: update weights (production profile pt 2)

* fixup

* fixup

* cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/

* cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/

* cargo run --quiet --profile=production  --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/

Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
Mara Robin B
2022-03-16 16:47:22 +01:00
committed by GitHub
parent 1d695612c4
commit 8ba34ef1fe
87 changed files with 3156 additions and 2125 deletions
@@ -1,4 +1,4 @@
// Copyright 2017-2020 Parity Technologies (UK) Ltd.
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot is free software: you can redistribute it and/or modify
@@ -15,12 +15,12 @@
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated weights for `pallet_identity`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-03-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
// Executed Command:
// target/release/polkadot
// ./target/production/polkadot
// benchmark
// --chain=westend-dev
// --steps=50
@@ -31,8 +31,9 @@
// --wasm-execution=compiled
// --heap-pages=4096
// --header=./file_header.txt
// --output=./runtime/westend/src/weights/
// --output=./runtime/westend/src/weights/pallet_identity.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
@@ -42,134 +43,169 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_identity`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
fn add_registrar(r: u32) -> Weight {
(20_852_000 as Weight)
// Standard Error: 2_000
.saturating_add((249_000 as Weight).saturating_mul(r as Weight))
// Storage: Identity Registrars (r:1 w:1)
fn add_registrar(r: u32, ) -> Weight {
(11_376_000 as Weight)
// Standard Error: 4_000
.saturating_add((192_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_identity(r: u32, x: u32) -> Weight {
(50_867_000 as Weight)
// Standard Error: 14_000
.saturating_add((216_000 as Weight).saturating_mul(r as Weight))
// Storage: Identity IdentityOf (r:1 w:1)
fn set_identity(r: u32, x: u32, ) -> Weight {
(24_751_000 as Weight)
// Standard Error: 7_000
.saturating_add((167_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 1_000
.saturating_add((948_000 as Weight).saturating_mul(x as Weight))
.saturating_add((345_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_subs_new(s: u32) -> Weight {
(39_701_000 as Weight)
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity SuperOf (r:1 w:1)
fn set_subs_new(s: u32, ) -> Weight {
(22_179_000 as Weight)
// Standard Error: 1_000
.saturating_add((6_376_000 as Weight).saturating_mul(s as Weight))
.saturating_add((2_584_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
fn set_subs_old(p: u32) -> Weight {
(40_181_000 as Weight)
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:1)
fn set_subs_old(p: u32, ) -> Weight {
(21_456_000 as Weight)
// Standard Error: 0
.saturating_add((2_045_000 as Weight).saturating_mul(p as Weight))
.saturating_add((742_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
fn clear_identity(r: u32, s: u32, x: u32) -> Weight {
(48_884_000 as Weight)
// Standard Error: 6_000
.saturating_add((140_000 as Weight).saturating_mul(r as Weight))
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity IdentityOf (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:100)
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
(26_595_000 as Weight)
// Standard Error: 5_000
.saturating_add((86_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((2_052_000 as Weight).saturating_mul(s as Weight))
.saturating_add((735_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 0
.saturating_add((607_000 as Weight).saturating_mul(x as Weight))
.saturating_add((223_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
fn request_judgement(r: u32, x: u32) -> Weight {
(52_661_000 as Weight)
// Storage: Identity Registrars (r:1 w:0)
// Storage: Identity IdentityOf (r:1 w:1)
fn request_judgement(r: u32, x: u32, ) -> Weight {
(25_896_000 as Weight)
// Standard Error: 5_000
.saturating_add((250_000 as Weight).saturating_mul(r as Weight))
.saturating_add((183_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((1_172_000 as Weight).saturating_mul(x as Weight))
.saturating_add((405_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn cancel_request(r: u32, x: u32) -> Weight {
(48_072_000 as Weight)
// Standard Error: 7_000
.saturating_add((173_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((1_165_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_fee(r: u32) -> Weight {
(7_817_000 as Weight)
// Standard Error: 1_000
.saturating_add((220_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_account_id(r: u32) -> Weight {
(8_397_000 as Weight)
// Standard Error: 1_000
.saturating_add((223_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn set_fields(r: u32) -> Weight {
(7_854_000 as Weight)
// Standard Error: 1_000
.saturating_add((216_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn provide_judgement(r: u32, x: u32) -> Weight {
(33_563_000 as Weight)
// Storage: Identity IdentityOf (r:1 w:1)
fn cancel_request(r: u32, x: u32, ) -> Weight {
(23_613_000 as Weight)
// Standard Error: 5_000
.saturating_add((232_000 as Weight).saturating_mul(r as Weight))
.saturating_add((122_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((1_168_000 as Weight).saturating_mul(x as Weight))
.saturating_add((395_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_fee(r: u32, ) -> Weight {
(4_434_000 as Weight)
// Standard Error: 1_000
.saturating_add((150_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_account_id(r: u32, ) -> Weight {
(4_286_000 as Weight)
// Standard Error: 2_000
.saturating_add((145_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:1)
fn set_fields(r: u32, ) -> Weight {
(4_448_000 as Weight)
// Standard Error: 2_000
.saturating_add((147_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Identity Registrars (r:1 w:0)
// Storage: Identity IdentityOf (r:1 w:1)
fn provide_judgement(r: u32, x: u32, ) -> Weight {
(18_623_000 as Weight)
// Standard Error: 5_000
.saturating_add((103_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((399_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn kill_identity(r: u32, s: u32, _x: u32) -> Weight {
(49_152_000 as Weight)
// Standard Error: 3_000
.saturating_add((72_000 as Weight).saturating_mul(r as Weight))
// Storage: Identity SubsOf (r:1 w:1)
// Storage: Identity IdentityOf (r:1 w:1)
// Storage: System Account (r:1 w:1)
// Storage: Identity SuperOf (r:0 w:100)
fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {
(30_157_000 as Weight)
// Standard Error: 4_000
.saturating_add((87_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((2_043_000 as Weight).saturating_mul(s as Weight))
.saturating_add((740_000 as Weight).saturating_mul(s as Weight))
// Standard Error: 0
.saturating_add((5_000 as Weight).saturating_mul(x as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(s as Weight)))
}
fn add_sub(s: u32) -> Weight {
(53_373_000 as Weight)
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn add_sub(s: u32, ) -> Weight {
(28_276_000 as Weight)
// Standard Error: 0
.saturating_add((162_000 as Weight).saturating_mul(s as Weight))
.saturating_add((103_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn rename_sub(s: u32) -> Weight {
(16_191_000 as Weight)
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
fn rename_sub(s: u32, ) -> Weight {
(8_969_000 as Weight)
// Standard Error: 0
.saturating_add((19_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn remove_sub(s: u32) -> Weight {
(54_328_000 as Weight)
// Storage: Identity IdentityOf (r:1 w:0)
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn remove_sub(s: u32, ) -> Weight {
(29_032_000 as Weight)
// Standard Error: 0
.saturating_add((143_000 as Weight).saturating_mul(s as Weight))
.saturating_add((91_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn quit_sub(s: u32) -> Weight {
(32_901_000 as Weight)
// Storage: Identity SuperOf (r:1 w:1)
// Storage: Identity SubsOf (r:1 w:1)
fn quit_sub(s: u32, ) -> Weight {
(19_200_000 as Weight)
// Standard Error: 0
.saturating_add((145_000 as Weight).saturating_mul(s as Weight))
.saturating_add((88_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}