Skip to content

Commit

Permalink
Auto-update pallet weights
Browse files Browse the repository at this point in the history
  • Loading branch information
gluwa-bot authored and atodorov committed Jan 8, 2024
1 parent 140ce44 commit a241cbc
Showing 1 changed file with 69 additions and 6 deletions.
75 changes: 69 additions & 6 deletions pallets/bridge/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,22 +1,85 @@

//! Autogenerated weights for `crate`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-01-04, STEPS: `50`, REPEAT: `30`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `github-runner-7414683329-attempt-1`, CPU: `AMD EPYC 7452 32-Core Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
// Executed Command:
// ./target/release/creditcoin3-node
// benchmark
// pallet
// --chain
// dev
// --steps=50
// --repeat=30
// --pallet
// crate
// --extrinsic=*
// --wasm-execution=compiled
// --heap-pages=10000
// --output
// ./pallets/bridge/src/weights.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `crate`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> crate::WeightInfo for WeightInfo<T> {
/// Storage: `Bridge::Authorities` (r:1 w:1)
/// Proof: `Bridge::Authorities` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn add_authority() -> Weight {
Weight::from_parts(1, 1)
// Proof Size summary in bytes:
// Measured: `6`
// Estimated: `3513`
// Minimum execution time: 11_000_000 picoseconds.
Weight::from_parts(11_400_000, 0)
.saturating_add(Weight::from_parts(0, 3513))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}

/// Storage: `Bridge::Authorities` (r:1 w:0)
/// Proof: `Bridge::Authorities` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
/// Storage: `Bridge::Collections` (r:1 w:1)
/// Proof: `Bridge::Collections` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
/// Storage: `Balances::TotalIssuance` (r:1 w:1)
/// Proof: `Balances::TotalIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
/// Storage: `System::Number` (r:1 w:0)
/// Proof: `System::Number` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::ExecutionPhase` (r:1 w:0)
/// Proof: `System::ExecutionPhase` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
/// Storage: `System::EventCount` (r:1 w:1)
/// Proof: `System::EventCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `System::Events` (r:1 w:1)
/// Proof: `System::Events` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn approve_collection() -> Weight {
Weight::from_parts(1, 1)
// Proof Size summary in bytes:
// Measured: `320`
// Estimated: `3533`
// Minimum execution time: 77_605_000 picoseconds.
Weight::from_parts(78_905_000, 0)
.saturating_add(Weight::from_parts(0, 3533))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(4))
}

/// Storage: `Bridge::Authorities` (r:1 w:1)
/// Proof: `Bridge::Authorities` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn remove_authority() -> Weight {
Weight::from_parts(1, 1)
// Proof Size summary in bytes:
// Measured: `79`
// Estimated: `3513`
// Minimum execution time: 13_500_000 picoseconds.
Weight::from_parts(13_801_000, 0)
.saturating_add(Weight::from_parts(0, 3513))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}

0 comments on commit a241cbc

Please sign in to comment.