mirror of
https://github.com/pezkuwichain/pezkuwi-runtime-templates.git
synced 2026-04-22 02:07:55 +00:00
2515d4ea2a
* benchmarks update * Updated benchmarks * fex benchmarks
58 lines
2.0 KiB
Rust
58 lines
2.0 KiB
Rust
|
|
//! Autogenerated weights for `pallet_timestamp`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
|
|
//! DATE: 2024-11-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `ip-172-31-15-118`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// target/release/evm-template-node
|
|
// benchmark
|
|
// pallet
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --json-file=benchmarking/results/results-pallet_timestamp.json
|
|
// --pallet=pallet_timestamp
|
|
// --chain=dev
|
|
// --output=benchmarking/new-benchmarks/pallet_timestamp.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_timestamp`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
|
/// Storage: `Timestamp::Now` (r:1 w:1)
|
|
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
|
/// Storage: `Aura::CurrentSlot` (r:1 w:0)
|
|
/// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
|
|
fn set() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `122`
|
|
// Estimated: `1493`
|
|
// Minimum execution time: 9_536_000 picoseconds.
|
|
Weight::from_parts(10_105_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1493))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
fn on_finalize() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `94`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 4_850_000 picoseconds.
|
|
Weight::from_parts(5_051_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
}
|