mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
28e94d97dd
* fix to latest substrate pr
* update weights
* cargo build -p polkadot-runtime-parachains
* fix xcm-builder
* fix import
* fix a bunch
* fix a bunch of weight stuff
* kusama compile
* unused
* builds
* maybe fix
* cargo test -p polkadot-runtime-parachains
* xcm simulator example
* fix tests
* xcm sim fuzz
* fix runtime tests
* remove unused
* fix integration tests
* scalar div
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
91 lines
3.8 KiB
Rust
91 lines
3.8 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 `frame_system`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-08-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=rococo-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=frame_system
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/rococo/src/weights/frame_system.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::{RefTimeWeight, Weight}};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions for `frame_system`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
|
|
/// The range of component `b` is `[0, 3932160]`.
|
|
fn remark(b: u32, ) -> Weight {
|
|
Weight::from_ref_time(0 as RefTimeWeight)
|
|
// Standard Error: 0
|
|
.saturating_add(Weight::from_ref_time(1_000 as RefTimeWeight).scalar_saturating_mul(b as RefTimeWeight))
|
|
}
|
|
/// The range of component `b` is `[0, 3932160]`.
|
|
fn remark_with_event(b: u32, ) -> Weight {
|
|
Weight::from_ref_time(0 as RefTimeWeight)
|
|
// Standard Error: 0
|
|
.saturating_add(Weight::from_ref_time(2_000 as RefTimeWeight).scalar_saturating_mul(b as RefTimeWeight))
|
|
}
|
|
// Storage: System Digest (r:1 w:1)
|
|
// Storage: unknown [0x3a686561707061676573] (r:0 w:1)
|
|
fn set_heap_pages() -> Weight {
|
|
Weight::from_ref_time(4_572_000 as RefTimeWeight)
|
|
.saturating_add(T::DbWeight::get().reads(1 as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes(2 as RefTimeWeight))
|
|
}
|
|
// Storage: Skipped Metadata (r:0 w:0)
|
|
/// The range of component `i` is `[1, 1000]`.
|
|
fn set_storage(i: u32, ) -> Weight {
|
|
Weight::from_ref_time(0 as RefTimeWeight)
|
|
// Standard Error: 1_000
|
|
.saturating_add(Weight::from_ref_time(548_000 as RefTimeWeight).scalar_saturating_mul(i as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(i as RefTimeWeight)))
|
|
}
|
|
// Storage: Skipped Metadata (r:0 w:0)
|
|
/// The range of component `i` is `[1, 1000]`.
|
|
fn kill_storage(i: u32, ) -> Weight {
|
|
Weight::from_ref_time(0 as RefTimeWeight)
|
|
// Standard Error: 1_000
|
|
.saturating_add(Weight::from_ref_time(444_000 as RefTimeWeight).scalar_saturating_mul(i as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(i as RefTimeWeight)))
|
|
}
|
|
// Storage: Skipped Metadata (r:0 w:0)
|
|
/// The range of component `p` is `[1, 1000]`.
|
|
fn kill_prefix(p: u32, ) -> Weight {
|
|
Weight::from_ref_time(0 as RefTimeWeight)
|
|
// Standard Error: 1_000
|
|
.saturating_add(Weight::from_ref_time(955_000 as RefTimeWeight).scalar_saturating_mul(p as RefTimeWeight))
|
|
.saturating_add(T::DbWeight::get().writes((1 as RefTimeWeight).saturating_mul(p as RefTimeWeight)))
|
|
}
|
|
}
|