From b2ce622a5c85e7a475a2f5321426fc78dd2eda53 Mon Sep 17 00:00:00 2001 From: Stephen Shelton Date: Mon, 1 Nov 2021 17:42:21 +0000 Subject: [PATCH] Update weights for Moonbeam runtime 90X --- src/weights.rs | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/src/weights.rs b/src/weights.rs index 8d074cd..99ba2d1 100644 --- a/src/weights.rs +++ b/src/weights.rs @@ -16,8 +16,8 @@ //! Autogenerated weights for pallet_crowdloan_rewards //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-08-01, STEPS: `[32, ]`, REPEAT: 64, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-11-01, STEPS: `32`, REPEAT: 64, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128 // Executed Command: @@ -28,7 +28,7 @@ // --execution=wasm // --wasm-execution=compiled // --pallet -// pallet_crowdloan_rewards +// * // --extrinsic // * // --steps @@ -39,14 +39,13 @@ // --template=./benchmarking/frame-weight-template.hbs // --output // /tmp/ +// --record-proof + #![allow(unused_parens)] #![allow(unused_imports)] -use frame_support::{ - traits::Get, - weights::{constants::RocksDbWeight, Weight}, -}; +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use sp_std::marker::PhantomData; /// Weight functions needed for pallet_crowdloan_rewards. @@ -63,38 +62,38 @@ pub trait WeightInfo { pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { fn initialize_reward_vec(x: u32) -> Weight { - (143_109_000 as Weight) - // Standard Error: 21_000 - .saturating_add((72_298_000 as Weight).saturating_mul(x as Weight)) + (158_711_000 as Weight) + // Standard Error: 11_000 + .saturating_add((67_750_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(8 as Weight)) .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(x as Weight))) .saturating_add(T::DbWeight::get().writes(5 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(x as Weight))) } fn complete_initialization() -> Weight { - (51_047_000 as Weight) + (31_283_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(3 as Weight)) } fn claim() -> Weight { - (101_484_000 as Weight) + (77_287_000 as Weight) .saturating_add(T::DbWeight::get().reads(11 as Weight)) .saturating_add(T::DbWeight::get().writes(5 as Weight)) } fn update_reward_address() -> Weight { - (59_051_000 as Weight) + (36_636_000 as Weight) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } fn associate_native_identity() -> Weight { - (152_997_000 as Weight) + (133_731_000 as Weight) .saturating_add(T::DbWeight::get().reads(9 as Weight)) .saturating_add(T::DbWeight::get().writes(7 as Weight)) } fn change_association_with_relay_keys(x: u32) -> Weight { (0 as Weight) // Standard Error: 7_000 - .saturating_add((47_373_000 as Weight).saturating_mul(x as Weight)) + .saturating_add((47_604_000 as Weight).saturating_mul(x as Weight)) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } @@ -103,38 +102,38 @@ impl WeightInfo for SubstrateWeight { // For backwards compatibility and tests impl WeightInfo for () { fn initialize_reward_vec(x: u32) -> Weight { - (143_109_000 as Weight) - // Standard Error: 21_000 - .saturating_add((72_298_000 as Weight).saturating_mul(x as Weight)) + (158_711_000 as Weight) + // Standard Error: 11_000 + .saturating_add((67_750_000 as Weight).saturating_mul(x as Weight)) .saturating_add(RocksDbWeight::get().reads(8 as Weight)) .saturating_add(RocksDbWeight::get().reads((4 as Weight).saturating_mul(x as Weight))) .saturating_add(RocksDbWeight::get().writes(5 as Weight)) .saturating_add(RocksDbWeight::get().writes((3 as Weight).saturating_mul(x as Weight))) } fn complete_initialization() -> Weight { - (51_047_000 as Weight) + (31_283_000 as Weight) .saturating_add(RocksDbWeight::get().reads(6 as Weight)) .saturating_add(RocksDbWeight::get().writes(3 as Weight)) } fn claim() -> Weight { - (101_484_000 as Weight) + (77_287_000 as Weight) .saturating_add(RocksDbWeight::get().reads(11 as Weight)) .saturating_add(RocksDbWeight::get().writes(5 as Weight)) } fn update_reward_address() -> Weight { - (59_051_000 as Weight) + (36_636_000 as Weight) .saturating_add(RocksDbWeight::get().reads(6 as Weight)) .saturating_add(RocksDbWeight::get().writes(4 as Weight)) } fn associate_native_identity() -> Weight { - (152_997_000 as Weight) + (133_731_000 as Weight) .saturating_add(RocksDbWeight::get().reads(9 as Weight)) .saturating_add(RocksDbWeight::get().writes(7 as Weight)) } fn change_association_with_relay_keys(x: u32) -> Weight { (0 as Weight) // Standard Error: 7_000 - .saturating_add((47_373_000 as Weight).saturating_mul(x as Weight)) + .saturating_add((47_604_000 as Weight).saturating_mul(x as Weight)) .saturating_add(RocksDbWeight::get().reads(6 as Weight)) .saturating_add(RocksDbWeight::get().writes(4 as Weight)) }