pallet_example_kitchensink/
weights.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_example_kitchensink`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-06-02, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `MacBook.local`, CPU: `<UNKNOWN>`
24//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
25
26// Executed Command:
27// ./target/release/node-template
28// benchmark
29// pallet
30// --chain
31// dev
32// --pallet
33// pallet_example_kitchensink
34// --extrinsic
35// *
36// --steps
37// 20
38// --repeat
39// 10
40// --output
41// frame/examples/kitchensink/src/weights.rs
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49use core::marker::PhantomData;
50
51/// Weight functions needed for pallet_template.
52pub trait WeightInfo {
53	fn set_foo_benchmark() -> Weight;
54}
55
56/// Weight functions for `pallet_example_kitchensink`.
57pub struct SubstrateWeight<T>(PhantomData<T>);
58impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
59	/// Storage: Kitchensink OtherFoo (r:0 w:1)
60	/// Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)
61	fn set_foo_benchmark() -> Weight {
62		// Proof Size summary in bytes:
63		//  Measured:  `0`
64		//  Estimated: `0`
65		// Minimum execution time: 1_000_000 picoseconds.
66		Weight::from_parts(1_000_000, 0)
67			.saturating_add(Weight::from_parts(0, 0))
68			.saturating_add(T::DbWeight::get().writes(1))
69	}
70}
71
72impl WeightInfo for () {
73	/// Storage: Kitchensink OtherFoo (r:0 w:1)
74	/// Proof Skipped: Kitchensink OtherFoo (max_values: Some(1), max_size: None, mode: Measured)
75	fn set_foo_benchmark() -> Weight {
76		// Proof Size summary in bytes:
77		//  Measured:  `0`
78		//  Estimated: `0`
79		// Minimum execution time: 1_000_000 picoseconds.
80		Weight::from_parts(1_000_000, 0)
81			.saturating_add(Weight::from_parts(0, 0))
82			.saturating_add(RocksDbWeight::get().writes(1))
83	}
84}