mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 17:31:05 +00:00
Enable changing executor params through governance (#6934)
* Add a pallet call to change executor params * Use `OptionQuery`; Avoid runtime panic * Move pending executor params to `configuration` * Move `ExecutorParams` to `HostConfiguration` structure * Add executor params to the v5 migration * Add an `ExecutorParams` benchmark * ".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_parachains::configuration * Add to `WeightInfo` * Add dummy weights to other networks * ".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parachains::configuration * ".git/.scripts/commands/bench/bench.sh" runtime rococo runtime_parachains::configuration * ".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parachains::configuration * Use real weight * Fix comment --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -16,24 +16,26 @@
|
||||
//! Autogenerated weights for `runtime_parachains::configuration`
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-03-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-04-07, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
||||
//! HOSTNAME: `bm3`, 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
|
||||
// target/production/polkadot
|
||||
// benchmark
|
||||
// pallet
|
||||
// --chain=rococo-dev
|
||||
// --steps=50
|
||||
// --repeat=20
|
||||
// --pallet=runtime_parachains::configuration
|
||||
// --extrinsic=*
|
||||
// --execution=wasm
|
||||
// --wasm-execution=compiled
|
||||
// --heap-pages=4096
|
||||
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
|
||||
// --pallet=runtime_parachains::configuration
|
||||
// --chain=rococo-dev
|
||||
// --header=./file_header.txt
|
||||
// --output=./runtime/rococo/src/weights/runtime_parachains_configuration.rs
|
||||
// --output=./runtime/rococo/src/weights/
|
||||
|
||||
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#![allow(unused_parens)]
|
||||
@@ -55,11 +57,11 @@ impl<T: frame_system::Config> runtime_parachains::configuration::WeightInfo for
|
||||
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn set_config_with_block_number() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392`
|
||||
// Estimated: `7508`
|
||||
// Minimum execution time: 12_943_000 picoseconds.
|
||||
Weight::from_parts(13_396_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7508))
|
||||
// Measured: `397`
|
||||
// Estimated: `7528`
|
||||
// Minimum execution time: 12_920_000 picoseconds.
|
||||
Weight::from_parts(13_270_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7528))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -73,11 +75,11 @@ impl<T: frame_system::Config> runtime_parachains::configuration::WeightInfo for
|
||||
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn set_config_with_u32() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392`
|
||||
// Estimated: `7508`
|
||||
// Minimum execution time: 13_054_000 picoseconds.
|
||||
Weight::from_parts(13_391_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7508))
|
||||
// Measured: `397`
|
||||
// Estimated: `7528`
|
||||
// Minimum execution time: 12_858_000 picoseconds.
|
||||
Weight::from_parts(13_184_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7528))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -91,11 +93,11 @@ impl<T: frame_system::Config> runtime_parachains::configuration::WeightInfo for
|
||||
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn set_config_with_option_u32() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392`
|
||||
// Estimated: `7508`
|
||||
// Minimum execution time: 13_012_000 picoseconds.
|
||||
Weight::from_parts(13_464_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7508))
|
||||
// Measured: `397`
|
||||
// Estimated: `7528`
|
||||
// Minimum execution time: 13_117_000 picoseconds.
|
||||
Weight::from_parts(13_517_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7528))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -109,11 +111,11 @@ impl<T: frame_system::Config> runtime_parachains::configuration::WeightInfo for
|
||||
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn set_config_with_weight() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392`
|
||||
// Estimated: `7508`
|
||||
// Minimum execution time: 12_998_000 picoseconds.
|
||||
Weight::from_parts(13_458_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7508))
|
||||
// Measured: `397`
|
||||
// Estimated: `7528`
|
||||
// Minimum execution time: 12_941_000 picoseconds.
|
||||
Weight::from_parts(13_507_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7528))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
@@ -137,11 +139,29 @@ impl<T: frame_system::Config> runtime_parachains::configuration::WeightInfo for
|
||||
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn set_config_with_balance() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `392`
|
||||
// Estimated: `7508`
|
||||
// Minimum execution time: 12_815_000 picoseconds.
|
||||
Weight::from_parts(13_368_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7508))
|
||||
// Measured: `397`
|
||||
// Estimated: `7528`
|
||||
// Minimum execution time: 12_814_000 picoseconds.
|
||||
Weight::from_parts(13_258_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7528))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
/// Storage: Configuration PendingConfigs (r:1 w:1)
|
||||
/// Proof Skipped: Configuration PendingConfigs (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Configuration ActiveConfig (r:1 w:0)
|
||||
/// Proof Skipped: Configuration ActiveConfig (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: Configuration BypassConsistencyCheck (r:1 w:0)
|
||||
/// Proof Skipped: Configuration BypassConsistencyCheck (max_values: Some(1), max_size: None, mode: Measured)
|
||||
/// Storage: ParasShared CurrentSessionIndex (r:1 w:0)
|
||||
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
|
||||
fn set_config_with_executor_params() -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `397`
|
||||
// Estimated: `7528`
|
||||
// Minimum execution time: 13_908_000 picoseconds.
|
||||
Weight::from_parts(14_382_000, 0)
|
||||
.saturating_add(Weight::from_parts(0, 7528))
|
||||
.saturating_add(T::DbWeight::get().reads(4))
|
||||
.saturating_add(T::DbWeight::get().writes(1))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user