-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
6 changed files
with
206 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,87 @@ | ||
// Polimec Blockchain – https://www.polimec.org/ | ||
// Copyright (C) Polimec 2022. All rights reserved. | ||
|
||
// The Polimec Blockchain 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. | ||
|
||
// The Polimec Blockchain 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 this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
// If you feel like getting in touch with us, you can do so at info@polimec.org | ||
|
||
|
||
//! Autogenerated weights for `pallet_funding` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 | ||
//! DATE: 2024-07-05, STEPS: `10`, REPEAT: `5`, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! WORST CASE MAP SIZE: `1000000` | ||
//! HOSTNAME: `Juans-MBP.home`, CPU: `<UNKNOWN>` | ||
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("polimec-paseo-local")`, DB CACHE: `1024` | ||
|
||
// Executed Command: | ||
// target/production/polimec-node | ||
// benchmark | ||
// pallet | ||
// --chain=polimec-paseo-local | ||
// --steps=10 | ||
// --repeat=5 | ||
// --pallet=pallet-funding | ||
// --no-storage-info | ||
// --no-median-slopes | ||
// --no-min-squares | ||
// --extrinsic=do_handle_channel_open_request | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --output=benchmarked-extrinsics.rs | ||
// --template=./.maintain/frame-weight-template.hbs | ||
|
||
#![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_funding`. | ||
pub trait WeightInfo { | ||
fn do_handle_channel_open_request() -> Weight; | ||
} | ||
|
||
/// Weights for `pallet_funding` using the Substrate node and recommended hardware. | ||
pub struct SubstrateWeight<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> { | ||
/// Storage: `Funding::ProjectsDetails` (r:2 w:1) | ||
/// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(403), added: 2878, mode: `MaxEncodedLen`) | ||
fn do_handle_channel_open_request() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `805` | ||
// Estimated: `6746` | ||
// Minimum execution time: 19_000_000 picoseconds. | ||
Weight::from_parts(21_000_000, 6746) | ||
.saturating_add(T::DbWeight::get().reads(2_u64)) | ||
.saturating_add(T::DbWeight::get().writes(1_u64)) | ||
} | ||
} | ||
|
||
// For backwards compatibility and tests. | ||
impl WeightInfo for () { | ||
/// Storage: `Funding::ProjectsDetails` (r:2 w:1) | ||
/// Proof: `Funding::ProjectsDetails` (`max_values`: None, `max_size`: Some(403), added: 2878, mode: `MaxEncodedLen`) | ||
fn do_handle_channel_open_request() -> Weight { | ||
// Proof Size summary in bytes: | ||
// Measured: `805` | ||
// Estimated: `6746` | ||
// Minimum execution time: 19_000_000 picoseconds. | ||
Weight::from_parts(21_000_000, 6746) | ||
.saturating_add(RocksDbWeight::get().reads(2_u64)) | ||
.saturating_add(RocksDbWeight::get().writes(1_u64)) | ||
} | ||
} |
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