pallet_example_kitchensink/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: MIT-0
5
6// Permission is hereby granted, free of charge, to any person obtaining a copy of
7// this software and associated documentation files (the "Software"), to deal in
8// the Software without restriction, including without limitation the rights to
9// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
10// of the Software, and to permit persons to whom the Software is furnished to do
11// so, subject to the following conditions:
12
13// The above copyright notice and this permission notice shall be included in all
14// copies or substantial portions of the Software.
15
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22// SOFTWARE.
23
24//! Autogenerated weights for `pallet_example_kitchensink`
25//!
26//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
27//! DATE: 2023-06-02, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
28//! WORST CASE MAP SIZE: `1000000`
29//! HOSTNAME: `MacBook.local`, CPU: `<UNKNOWN>`
30//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
31
32// Executed Command:
33// ./target/release/node-template
34// benchmark
35// pallet
36// --chain
37// dev
38// --pallet
39// pallet_example_kitchensink
40// --extrinsic
41// *
42// --steps
43// 20
44// --repeat
45// 10
46// --output
47// frame/examples/kitchensink/src/weights.rs
48
49#![cfg_attr(rustfmt, rustfmt_skip)]
50#![allow(unused_parens)]
51#![allow(unused_imports)]
52#![allow(missing_docs)]
53
54use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
55use core::marker::PhantomData;
56
57/// Weight functions needed for pallet_template.
58pub trait WeightInfo {
59 fn set_foo_benchmark() -> Weight;
60 fn set_foo_using_authorize() -> Weight;
61 fn authorize_set_foo_using_authorize() -> Weight;
62}
63
64/// Weight functions for `pallet_example_kitchensink`.
65pub struct SubstrateWeight<T>(PhantomData<T>);
66impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
67 /// Storage: Kitchensink OtherFoo (r:0 w:1)
68 /// Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)
69 fn set_foo_benchmark() -> Weight {
70 // Proof Size summary in bytes:
71 // Measured: `0`
72 // Estimated: `0`
73 // Minimum execution time: 1_000_000 picoseconds.
74 Weight::from_parts(1_000_000, 0)
75 .saturating_add(Weight::from_parts(0, 0))
76 .saturating_add(T::DbWeight::get().writes(1))
77 }
78 fn set_foo_using_authorize() -> Weight {
79 Weight::zero()
80 }
81 fn authorize_set_foo_using_authorize() -> Weight {
82 Weight::zero()
83 }
84}
85
86impl WeightInfo for () {
87 /// Storage: Kitchensink OtherFoo (r:0 w:1)
88 /// Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)
89 fn set_foo_benchmark() -> Weight {
90 // Proof Size summary in bytes:
91 // Measured: `0`
92 // Estimated: `0`
93 // Minimum execution time: 1_000_000 picoseconds.
94 Weight::from_parts(1_000_000, 0)
95 .saturating_add(Weight::from_parts(0, 0))
96 .saturating_add(RocksDbWeight::get().writes(1))
97 }
98 fn set_foo_using_authorize() -> Weight {
99 Weight::zero()
100 }
101 fn authorize_set_foo_using_authorize() -> Weight {
102 Weight::zero()
103 }
104}