mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-15 13:45:44 +00:00
9938513e71
* bump version and substrate * bump old forgotten versions * update weights * bump substrate * Revert "bump substrate" This reverts commit 8b5004b6fe9ce9ccdf143d3fe878802931ea4f2f. Co-authored-by: André Silva <andrerfosilva@gmail.com>
180 lines
7.2 KiB
Rust
180 lines
7.2 KiB
Rust
// Copyright 2017-2020 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_identity
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
|
//! DATE: 2021-03-25, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128
|
|
|
|
// Executed Command:
|
|
// target/release/polkadot
|
|
// benchmark
|
|
// --chain=westend-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_identity
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/westend/src/weights/
|
|
|
|
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
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 {
|
|
(21_688_000 as Weight)
|
|
// Standard Error: 2_000
|
|
.saturating_add((329_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 {
|
|
(55_563_000 as Weight)
|
|
// Standard Error: 16_000
|
|
.saturating_add((236_000 as Weight).saturating_mul(r as Weight))
|
|
// Standard Error: 2_000
|
|
.saturating_add((1_156_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 {
|
|
(42_153_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((6_848_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 {
|
|
(42_388_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((2_299_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 {
|
|
(52_593_000 as Weight)
|
|
// Standard Error: 7_000
|
|
.saturating_add((132_000 as Weight).saturating_mul(r as Weight))
|
|
// Standard Error: 0
|
|
.saturating_add((2_295_000 as Weight).saturating_mul(s as Weight))
|
|
// Standard Error: 0
|
|
.saturating_add((760_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 {
|
|
(56_685_000 as Weight)
|
|
// Standard Error: 8_000
|
|
.saturating_add((293_000 as Weight).saturating_mul(r as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((1_488_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 {
|
|
(51_594_000 as Weight)
|
|
// Standard Error: 10_000
|
|
.saturating_add((195_000 as Weight).saturating_mul(r as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((1_467_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_842_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((314_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_718_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((324_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_865_000 as Weight)
|
|
// Standard Error: 1_000
|
|
.saturating_add((314_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 {
|
|
(36_431_000 as Weight)
|
|
// Standard Error: 8_000
|
|
.saturating_add((275_000 as Weight).saturating_mul(r as Weight))
|
|
// Standard Error: 1_000
|
|
.saturating_add((1_482_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 {
|
|
(53_118_000 as Weight)
|
|
// Standard Error: 5_000
|
|
.saturating_add((107_000 as Weight).saturating_mul(r as Weight))
|
|
// Standard Error: 0
|
|
.saturating_add((2_275_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 {
|
|
(55_967_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((215_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 {
|
|
(17_448_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((24_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 {
|
|
(57_541_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((186_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 {
|
|
(34_739_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((184_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))
|
|
}
|
|
}
|