1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
//! Autogenerated weights for oracle
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-07, STEPS: `50`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `interlay-rust-runner-2mz2v-jrrg4`, CPU: `AMD EPYC 7502P 32-Core Processor`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-dev"), DB CACHE: 1024
// Executed Command:
// target/release/interbtc-parachain
// benchmark
// pallet
// --pallet
// *
// --extrinsic
// *
// --chain
// interlay-dev
// --execution=wasm
// --wasm-execution=compiled
// --steps
// 50
// --repeat
// 10
// --output
// parachain/runtime/interlay/src/weights/
// --template
// .deploy/runtime-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;
/// Weights for oracle using the Substrate node and recommended hardware.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> oracle::WeightInfo for WeightInfo<T> {
/// Storage: Oracle RawValuesUpdated (r:1000 w:999)
/// Proof: Oracle RawValuesUpdated (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Oracle RawValues (r:1998 w:0)
/// Proof: Oracle RawValues (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
/// Storage: Oracle MaxDelay (r:1 w:0)
/// Proof: Oracle MaxDelay (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: VaultRewards TotalStake (r:999 w:0)
/// Proof: VaultRewards TotalStake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen)
/// Storage: VaultCapacity Stake (r:999 w:0)
/// Proof: VaultCapacity Stake (max_values: None, max_size: Some(43), added: 2518, mode: MaxEncodedLen)
/// Storage: Loans Markets (r:999 w:0)
/// Proof: Loans Markets (max_values: None, max_size: Some(160), added: 2635, mode: MaxEncodedLen)
/// Storage: Oracle Aggregate (r:0 w:999)
/// Proof: Oracle Aggregate (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen)
/// Storage: Oracle ValidUntil (r:0 w:999)
/// Proof: Oracle ValidUntil (max_values: None, max_size: Some(36), added: 2511, mode: MaxEncodedLen)
/// The range of component `u` is `[1, 1000]`.
fn on_initialize (u: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `678 + u * (127 ±0)`
// Estimated: `3494 + u * (5150 ±0)`
// Minimum execution time: 82_555_000 picoseconds.
Weight::from_parts(82_936_000, 3494)
// Standard Error: 44_981
.saturating_add(Weight::from_parts(45_674_981, 0).saturating_mul(u.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().reads((6_u64).saturating_mul(u.into())))
.saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(u.into())))
.saturating_add(Weight::from_parts(0, 5150).saturating_mul(u.into()))
}
/// Storage: Oracle AuthorizedOracles (r:1 w:0)
/// Proof: Oracle AuthorizedOracles (max_values: None, max_size: Some(305), added: 2780, mode: MaxEncodedLen)
/// Storage: Timestamp Now (r:1 w:0)
/// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen)
/// Storage: Oracle RawValuesUpdated (r:0 w:999)
/// Proof: Oracle RawValuesUpdated (max_values: None, max_size: Some(29), added: 2504, mode: MaxEncodedLen)
/// Storage: Oracle RawValues (r:0 w:999)
/// Proof: Oracle RawValues (max_values: None, max_size: Some(100), added: 2575, mode: MaxEncodedLen)
/// The range of component `u` is `[1, 1000]`.
fn feed_values (u: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `295`
// Estimated: `3770`
// Minimum execution time: 37_184_000 picoseconds.
Weight::from_parts(37_425_000, 3770)
// Standard Error: 35_377
.saturating_add(Weight::from_parts(8_220_553, 0).saturating_mul(u.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(u.into())))
}
/// Storage: Oracle AuthorizedOracles (r:0 w:1)
/// Proof: Oracle AuthorizedOracles (max_values: None, max_size: Some(305), added: 2780, mode: MaxEncodedLen)
fn insert_authorized_oracle () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 22_265_000 picoseconds.
Weight::from_parts(22_555_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Oracle AuthorizedOracles (r:0 w:1)
/// Proof: Oracle AuthorizedOracles (max_values: None, max_size: Some(305), added: 2780, mode: MaxEncodedLen)
fn remove_authorized_oracle () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 20_180_000 picoseconds.
Weight::from_parts(20_461_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}