vesting_mbm/
weights.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 vesting_mbm
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
23//! DATE: 2024-08-28, 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//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("shibuya-dev"), DB CACHE: 1024
27
28// Executed Command:
29// ./target/release/astar-collator
30// benchmark
31// pallet
32// --chain=shibuya-dev
33// --steps=50
34// --repeat=20
35// --pallet=vesting_mbm
36// --extrinsic=*
37// --wasm-execution=compiled
38// --heap-pages=4096
39// --output=./benchmark-results/shibuya-dev/mbm_weights.rs
40// --template=./scripts/templates/weight-template.hbs
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45
46use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
47use core::marker::PhantomData;
48
49/// Weight functions needed for vesting_mbm.
50pub trait WeightInfo {
51	fn step(x: u32, ) -> Weight;
52}
53
54/// Weights for vesting_mbm using the Substrate node and recommended hardware.
55pub struct SubstrateWeight<T>(PhantomData<T>);
56impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
57	/// Storage: `Vesting::Vesting` (r:2 w:1)
58	/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
59	/// The range of component `x` is `[1, 28]`.
60	fn step(x: u32, ) -> Weight {
61		// Proof Size summary in bytes:
62		//  Measured:  `316 + x * (36 ±0)`
63		//  Estimated: `8054`
64		// Minimum execution time: 13_079_000 picoseconds.
65		Weight::from_parts(13_513_131, 8054)
66			// Standard Error: 723
67			.saturating_add(Weight::from_parts(102_389, 0).saturating_mul(x.into()))
68			.saturating_add(T::DbWeight::get().reads(2_u64))
69			.saturating_add(T::DbWeight::get().writes(1_u64))
70	}
71}
72
73// For backwards compatibility and tests
74impl WeightInfo for () {
75	/// Storage: `Vesting::Vesting` (r:2 w:1)
76	/// Proof: `Vesting::Vesting` (`max_values`: None, `max_size`: Some(1057), added: 3532, mode: `MaxEncodedLen`)
77	/// The range of component `x` is `[1, 28]`.
78	fn step(x: u32, ) -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `316 + x * (36 ±0)`
81		//  Estimated: `8054`
82		// Minimum execution time: 13_079_000 picoseconds.
83		Weight::from_parts(13_513_131, 8054)
84			// Standard Error: 723
85			.saturating_add(Weight::from_parts(102_389, 0).saturating_mul(x.into()))
86			.saturating_add(RocksDbWeight::get().reads(2_u64))
87			.saturating_add(RocksDbWeight::get().writes(1_u64))
88	}
89}