orml_oracle/
weights.rs

1//! Autogenerated weights for orml_oracle
2//!
3//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
4//! DATE: 2021-05-04, STEPS: [50, ], REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
5//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
6
7// Executed Command:
8// /Users/xiliangchen/projects/acala/target/release/acala
9// benchmark
10// --chain=dev
11// --steps=50
12// --repeat=20
13// --pallet=orml_oracle
14// --extrinsic=*
15// --execution=wasm
16// --wasm-execution=compiled
17// --heap-pages=4096
18// --output=./oracle/src/weights.rs
19// --template
20// ../templates/orml-weight-template.hbs
21
22
23#![cfg_attr(rustfmt, rustfmt_skip)]
24#![allow(unused_parens)]
25#![allow(unused_imports)]
26#![allow(clippy::unnecessary_cast)]
27
28use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
29use sp_std::marker::PhantomData;
30
31/// Weight functions needed for orml_oracle.
32pub trait WeightInfo {
33	fn feed_values(c: u32, ) -> Weight;
34	fn on_finalize() -> Weight;
35}
36
37/// Default weights.
38impl WeightInfo for () {
39	fn feed_values(c: u32, ) -> Weight {
40		Weight::from_parts(16_800_000, 0)
41			// Standard Error: 84_000
42			.saturating_add(Weight::from_parts(3_600_000, 0).saturating_mul(c as u64))
43			.saturating_add(RocksDbWeight::get().reads(3 as u64))
44			.saturating_add(RocksDbWeight::get().writes(1 as u64))
45			.saturating_add(RocksDbWeight::get().writes((2 as u64).saturating_mul(c as u64)))
46	}
47	fn on_finalize() -> Weight {
48		Weight::from_parts(3_000_000, 0)
49			.saturating_add(RocksDbWeight::get().writes(1 as u64))
50	}
51}