mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
0119a6dae1
* [DO NOT MERGE] test new vm runner for weights 2 * add image * fix merge conflict * apply weights * new weights Co-authored-by: parity-processbot <>
147 lines
5.6 KiB
Rust
147 lines
5.6 KiB
Rust
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Polkadot is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
|
|
//! Autogenerated weights for `pallet_preimage`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-01-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `runner-b3zmxxc-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=westend-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_preimage
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/westend/src/weights/
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_preimage`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_preimage::WeightInfo for WeightInfo<T> {
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
// Storage: Preimage PreimageFor (r:0 w:1)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_preimage(s: u32, ) -> Weight {
|
|
// Minimum execution time: 31_562 nanoseconds.
|
|
Weight::from_ref_time(171_400_857)
|
|
// Standard Error: 8
|
|
.saturating_add(Weight::from_ref_time(2_527).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
// Storage: Preimage PreimageFor (r:0 w:1)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_requested_preimage(s: u32, ) -> Weight {
|
|
// Minimum execution time: 22_020 nanoseconds.
|
|
Weight::from_ref_time(22_351_000)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_ref_time(2_791).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
// Storage: Preimage PreimageFor (r:0 w:1)
|
|
/// The range of component `s` is `[0, 4194304]`.
|
|
fn note_no_deposit_preimage(s: u32, ) -> Weight {
|
|
// Minimum execution time: 20_963 nanoseconds.
|
|
Weight::from_ref_time(21_456_000)
|
|
// Standard Error: 2
|
|
.saturating_add(Weight::from_ref_time(2_795).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
// Storage: Preimage PreimageFor (r:0 w:1)
|
|
fn unnote_preimage() -> Weight {
|
|
// Minimum execution time: 63_207 nanoseconds.
|
|
Weight::from_ref_time(69_356_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
// Storage: Preimage PreimageFor (r:0 w:1)
|
|
fn unnote_no_deposit_preimage() -> Weight {
|
|
// Minimum execution time: 50_694 nanoseconds.
|
|
Weight::from_ref_time(53_449_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
fn request_preimage() -> Weight {
|
|
// Minimum execution time: 45_428 nanoseconds.
|
|
Weight::from_ref_time(50_044_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
fn request_no_deposit_preimage() -> Weight {
|
|
// Minimum execution time: 27_772 nanoseconds.
|
|
Weight::from_ref_time(30_683_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
fn request_unnoted_preimage() -> Weight {
|
|
// Minimum execution time: 33_497 nanoseconds.
|
|
Weight::from_ref_time(35_702_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
fn request_requested_preimage() -> Weight {
|
|
// Minimum execution time: 12_126 nanoseconds.
|
|
Weight::from_ref_time(13_934_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
// Storage: Preimage PreimageFor (r:0 w:1)
|
|
fn unrequest_preimage() -> Weight {
|
|
// Minimum execution time: 46_863 nanoseconds.
|
|
Weight::from_ref_time(52_194_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
fn unrequest_unnoted_preimage() -> Weight {
|
|
// Minimum execution time: 12_336 nanoseconds.
|
|
Weight::from_ref_time(14_182_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Preimage StatusFor (r:1 w:1)
|
|
fn unrequest_multi_referenced_preimage() -> Weight {
|
|
// Minimum execution time: 12_643 nanoseconds.
|
|
Weight::from_ref_time(14_132_000)
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|