-
Notifications
You must be signed in to change notification settings - Fork 12
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
3 changed files
with
159 additions
and
6 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,151 @@ | ||
//! Autogenerated weights for pallet_chainlink_feed | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 | ||
//! DATE: 2021-05-20, STEPS: `[20, ]`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 128 | ||
// Executed Command: | ||
// ./target/release/pint | ||
// benchmark | ||
// --execution | ||
// wasm | ||
// --wasm-execution | ||
// compiled | ||
// --pallet | ||
// pallet_chainlink_feed | ||
// -e | ||
// * | ||
// -s | ||
// 20 | ||
// -r | ||
// 10 | ||
// --raw | ||
// --output | ||
// ./runtime/src/weights | ||
|
||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for pallet_chainlink_feed. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> pallet_chainlink_feed::WeightInfo for WeightInfo<T> { | ||
fn create_feed(o: u32) -> Weight { | ||
(38_850_000 as Weight) | ||
// Standard Error: 66_000 | ||
.saturating_add((15_164_000 as Weight).saturating_mul(o as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(o as Weight))) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(o as Weight))) | ||
} | ||
fn transfer_ownership() -> Weight { | ||
(21_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn accept_ownership() -> Weight { | ||
(20_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn set_pruning_window(o: u32) -> Weight { | ||
(1_727_000 as Weight) | ||
// Standard Error: 14_000 | ||
.saturating_add((3_253_000 as Weight).saturating_mul(o as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(o as Weight))) | ||
} | ||
fn submit_opening_round_answers() -> Weight { | ||
(90_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(6 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(6 as Weight)) | ||
} | ||
fn submit_closing_answer(o: u32) -> Weight { | ||
(72_296_000 as Weight) | ||
// Standard Error: 18_000 | ||
.saturating_add((211_000 as Weight).saturating_mul(o as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(7 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(6 as Weight)) | ||
} | ||
fn change_oracles(d: u32, n: u32) -> Weight { | ||
(0 as Weight) | ||
// Standard Error: 81_000 | ||
.saturating_add((14_745_000 as Weight).saturating_mul(d as Weight)) | ||
// Standard Error: 81_000 | ||
.saturating_add((17_320_000 as Weight).saturating_mul(n as Weight)) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(d as Weight))) | ||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(n as Weight))) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(d as Weight))) | ||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(n as Weight))) | ||
} | ||
fn update_future_rounds() -> Weight { | ||
(22_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn set_requester() -> Weight { | ||
(25_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn remove_requester() -> Weight { | ||
(23_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn request_new_round() -> Weight { | ||
(48_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(4 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
fn withdraw_payment() -> Weight { | ||
(53_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(3 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(3 as Weight)) | ||
} | ||
fn transfer_admin() -> Weight { | ||
(19_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn accept_admin() -> Weight { | ||
(19_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn withdraw_funds() -> Weight { | ||
(50_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(3 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
fn reduce_debt() -> Weight { | ||
(31_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(2 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
fn transfer_pallet_admin() -> Weight { | ||
(17_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn accept_pallet_admin() -> Weight { | ||
(18_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
fn set_feed_creator() -> Weight { | ||
(17_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
fn remove_feed_creator() -> Weight { | ||
(17_000_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(1 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(1 as Weight)) | ||
} | ||
} |