-
Notifications
You must be signed in to change notification settings - Fork 526
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
2d116a0
commit 33329bb
Showing
13 changed files
with
179 additions
and
209 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
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,102 @@ | ||
// This file is part of Acala. | ||
|
||
// Copyright (C) 2020-2022 Acala Foundation. | ||
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0 | ||
|
||
// This program 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. | ||
|
||
// 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 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/>. | ||
|
||
//! Autogenerated weights for module_homa | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2021-12-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("acala-latest"), DB CACHE: 128 | ||
|
||
// Executed Command: | ||
// target/release/acala | ||
// benchmark | ||
// --chain=acala-latest | ||
// --steps=50 | ||
// --repeat=20 | ||
// --pallet=module_homa | ||
// --extrinsic=* | ||
// --execution=wasm | ||
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --template=./templates/runtime-weight-template.hbs | ||
// --output=./runtime/acala/src/weights/ | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for module_homa. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> module_homa::WeightInfo for WeightInfo<T> { | ||
fn on_initialize() -> Weight { | ||
(5_884_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
} | ||
fn on_initialize_with_bump_era() -> Weight { | ||
(490_360_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(32 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(16 as Weight)) | ||
} | ||
fn mint() -> Weight { | ||
(150_048_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(11 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(7 as Weight)) | ||
} | ||
fn request_redeem() -> Weight { | ||
(84_397_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
fn fast_match_redeems(n: u32, ) -> Weight { | ||
(593_000 as Weight) | ||
// Standard Error: 217_000 | ||
.saturating_add((114_002_000 as Weight).saturating_mul(n as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(8 as Weight)) | ||
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(n as Weight))) | ||
.saturating_add(T::DbWeight::get().writes(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(n as Weight))) | ||
} | ||
fn claim_redemption() -> Weight { | ||
(132_187_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(10 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(7 as Weight)) | ||
} | ||
fn update_homa_params() -> Weight { | ||
(63_205_000 as Weight) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
fn update_bump_era_params() -> Weight { | ||
(26_983_000 as Weight) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
fn reset_ledgers(n: u32, ) -> Weight { | ||
(22_598_000 as Weight) | ||
// Standard Error: 604_000 | ||
.saturating_add((18_501_000 as Weight).saturating_mul(n as Weight)) | ||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight))) | ||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(n as Weight))) | ||
} | ||
fn reset_current_era() -> Weight { | ||
(21_189_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
} |
Oops, something went wrong.