astar_runtime/weights/orml_oracle.rs
1
2// This file is part of Astar.
3
4// Copyright (C) Stake Technologies Pte.Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7// Astar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11
12// Astar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with Astar. If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for `orml_oracle`
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
23//! DATE: 2025-12-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
26//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
27
28// Executed Command:
29// frame-omni-bencher
30// v1
31// benchmark
32// pallet
33// --runtime=./target/release/wbuild/astar-runtime/astar_runtime.compact.compressed.wasm
34// --steps=50
35// --repeat=20
36// --pallet=orml_oracle
37// --extrinsic=*
38// --wasm-execution=compiled
39// --heap-pages=4096
40// --output=./benchmark-results/astar/runtime/oracle_weights.rs
41// --template=./scripts/templates/runtime-weight-template.hbs
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47#![allow(dead_code)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `orml_oracle`.
53pub struct SubstrateWeight<T>(PhantomData<T>);
54impl<T: frame_system::Config> orml_oracle::WeightInfo for SubstrateWeight<T> {
55 /// Storage: `OracleMembership::Members` (r:1 w:0)
56 /// Proof: `OracleMembership::Members` (`max_values`: Some(1), `max_size`: Some(513), added: 1008, mode: `MaxEncodedLen`)
57 /// Storage: `Oracle::HasDispatched` (r:1 w:1)
58 /// Proof: `Oracle::HasDispatched` (`max_values`: Some(1), `max_size`: Some(257), added: 752, mode: `MaxEncodedLen`)
59 /// Storage: `Timestamp::Now` (r:1 w:0)
60 /// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
61 /// Storage: `Oracle::RawValues` (r:3 w:1)
62 /// Proof: `Oracle::RawValues` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
63 /// Storage: `Oracle::Values` (r:1 w:0)
64 /// Proof: `Oracle::Values` (`max_values`: None, `max_size`: Some(33), added: 2508, mode: `MaxEncodedLen`)
65 /// The range of component `x` is `[0, 2]`.
66 fn feed_values(x: u32, ) -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `346`
69 // Estimated: `8634`
70 // Minimum execution time: 17_383_000 picoseconds.
71 Weight::from_parts(18_245_764, 0)
72 .saturating_add(Weight::from_parts(0, 8634))
73 // Standard Error: 62_942
74 .saturating_add(Weight::from_parts(16_419_329, 0).saturating_mul(x.into()))
75 .saturating_add(T::DbWeight::get().reads(3))
76 .saturating_add(T::DbWeight::get().reads((4_u64).saturating_mul(x.into())))
77 .saturating_add(T::DbWeight::get().writes(1))
78 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(x.into())))
79 }
80 /// Storage: `Oracle::HasDispatched` (r:0 w:1)
81 /// Proof: `Oracle::HasDispatched` (`max_values`: Some(1), `max_size`: Some(257), added: 752, mode: `MaxEncodedLen`)
82 fn on_finalize() -> Weight {
83 // Proof Size summary in bytes:
84 // Measured: `0`
85 // Estimated: `0`
86 // Minimum execution time: 2_114_000 picoseconds.
87 Weight::from_parts(2_509_000, 0)
88 .saturating_add(Weight::from_parts(0, 0))
89 .saturating_add(T::DbWeight::get().writes(1))
90 }
91}