Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update weights for Moonbeam runtime 90X #48

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 22 additions & 23 deletions src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -28,7 +28,7 @@
// --execution=wasm
// --wasm-execution=compiled
// --pallet
// pallet_crowdloan_rewards
// *
// --extrinsic
// *
// --steps
Expand All @@ -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.
Expand All @@ -63,38 +62,38 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
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))
}
Expand All @@ -103,38 +102,38 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// 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))
}
Expand Down