-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
685a1bb
commit 56e69fb
Showing
7 changed files
with
189 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// Copyright (C) 2023 Entropy Cryptography Inc. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program 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 Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
|
||
//! Autogenerated weights for pallet_propagation | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2023-11-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `hcastano`, CPU: `<UNKNOWN>` | ||
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// ./target/release/entropy | ||
// benchmark | ||
// pallet | ||
// --chain | ||
// dev | ||
// --wasm-execution=compiled | ||
// --pallet | ||
// pallet_propagation | ||
// --extrinsic | ||
// * | ||
// --steps | ||
// 5 | ||
// --repeat | ||
// 2 | ||
// --template | ||
// .maintain/frame-weight-template.hbs | ||
// --output | ||
// pallets/propagation/src/weights.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions needed for pallet_propagation. | ||
pub trait WeightInfo { | ||
fn on_initialize() -> Weight; | ||
} | ||
|
||
/// Weights for pallet_propagation using the Substrate node and recommended hardware. | ||
pub struct SubstrateWeight<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> { | ||
/// Storage: `StakingExtension::ProactiveRefresh` (r:1 w:1) | ||
/// Proof: `StakingExtension::ProactiveRefresh` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) | ||
/// Storage: `Registry::Dkg` (r:0 w:1) | ||
/// Proof: `Registry::Dkg` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
fn on_initialize() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `148` | ||
// Estimated: `1633` | ||
// Minimum execution time: 4_000_000 picoseconds. | ||
Weight::from_parts(5_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 1633)) | ||
.saturating_add(T::DbWeight::get().reads(1)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
} | ||
|
||
// For backwards compatibility and tests | ||
impl WeightInfo for () { | ||
/// Storage: `StakingExtension::ProactiveRefresh` (r:1 w:1) | ||
/// Proof: `StakingExtension::ProactiveRefresh` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) | ||
/// Storage: `Registry::Dkg` (r:0 w:1) | ||
/// Proof: `Registry::Dkg` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
fn on_initialize() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `148` | ||
// Estimated: `1633` | ||
// Minimum execution time: 4_000_000 picoseconds. | ||
Weight::from_parts(5_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 1633)) | ||
.saturating_add(RocksDbWeight::get().reads(1)) | ||
.saturating_add(RocksDbWeight::get().writes(2)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
// Copyright (C) 2023 Entropy Cryptography Inc. | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program 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 Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License | ||
// along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
//! Autogenerated weights for `pallet_propagation` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0 | ||
//! DATE: 2024-08-16, STEPS: `5`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `Jesses-MacBook-Pro.local`, CPU: `<UNKNOWN>` | ||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// ./target/release/entropy | ||
// benchmark | ||
// pallet | ||
// --chain | ||
// dev | ||
// --pallet=pallet_propagation | ||
// --extrinsic=* | ||
// --steps=5 | ||
// --repeat=2 | ||
// --header=.maintain/AGPL-3.0-header.txt | ||
// --output=./runtime/src/weights/ | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
#![allow(missing_docs)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use core::marker::PhantomData; | ||
|
||
/// Weight functions for `pallet_propagation`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_propagation::WeightInfo for WeightInfo<T> { | ||
/// Storage: `StakingExtension::ProactiveRefresh` (r:1 w:1) | ||
/// Proof: `StakingExtension::ProactiveRefresh` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) | ||
/// Storage: `Registry::Dkg` (r:0 w:1) | ||
/// Proof: `Registry::Dkg` (`max_values`: None, `max_size`: None, mode: `Measured`) | ||
fn on_initialize() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `148` | ||
// Estimated: `1633` | ||
// Minimum execution time: 4_000_000 picoseconds. | ||
Weight::from_parts(5_000_000, 0) | ||
.saturating_add(Weight::from_parts(0, 1633)) | ||
.saturating_add(T::DbWeight::get().reads(1)) | ||
.saturating_add(T::DbWeight::get().writes(2)) | ||
} | ||
} |