referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_timestamp.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// 	http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_timestamp`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
23
24// Executed Command:
25// ./target/production/polkadot-parachain
26// benchmark
27// pallet
28// --chain=asset-hub-next-westend-dev
29// --wasm-execution=compiled
30// --pallet=pallet_timestamp
31// --no-storage-info
32// --no-median-slopes
33// --no-min-squares
34// --extrinsic=*
35// --steps=50
36// --repeat=20
37// --json
38// --header=./file_header.txt
39// --output=./parachains/runtimes/assets/asset-hub-next-westend/src/weights/
40
41#![cfg_attr(rustfmt, rustfmt_skip)]
42#![allow(unused_parens)]
43#![allow(unused_imports)]
44#![allow(missing_docs)]
45
46use frame_support::{traits::Get, weights::Weight};
47use core::marker::PhantomData;
48
49/// Weight functions for `pallet_timestamp`.
50pub struct WeightInfo<T>(PhantomData<T>);
51impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
52	/// Storage: `Timestamp::Now` (r:1 w:1)
53	/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
54	/// Storage: `Aura::CurrentSlot` (r:1 w:0)
55	/// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
56	fn set() -> Weight {
57		// Proof Size summary in bytes:
58		//  Measured:  `86`
59		//  Estimated: `1493`
60		// Minimum execution time: 9_347_000 picoseconds.
61		Weight::from_parts(9_686_000, 0)
62			.saturating_add(Weight::from_parts(0, 1493))
63			.saturating_add(T::DbWeight::get().reads(2))
64			.saturating_add(T::DbWeight::get().writes(1))
65	}
66	fn on_finalize() -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `57`
69		//  Estimated: `0`
70		// Minimum execution time: 3_375_000 picoseconds.
71		Weight::from_parts(3_422_000, 0)
72			.saturating_add(Weight::from_parts(0, 0))
73	}
74}