mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 18:11:03 +00:00
get rid of obsolete weight functions (#1926)
This commit is contained in:
committed by
Bastian Köcher
parent
50d92eb8de
commit
3a145e5844
@@ -158,7 +158,7 @@ construct_runtime! {
|
||||
|
||||
parameter_types! {
|
||||
pub const BlockHashCount: TestNumber = 250;
|
||||
pub const MaximumBlockWeight: Weight = Weight::from_ref_time(1024);
|
||||
pub const MaximumBlockWeight: Weight = Weight::from_parts(1024, 0);
|
||||
pub const MaximumBlockLength: u32 = 2 * 1024;
|
||||
pub const AvailableBlockRatio: Perbill = Perbill::one();
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
//! Autogenerated weights for pallet_bridge_parachains
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||
//! DATE: 2023-03-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2023-03-02, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! WORST CASE MAP SIZE: `1000000`
|
||||
//! HOSTNAME: `covid`, CPU: `11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
|
||||
@@ -86,12 +86,14 @@ impl<T: frame_system::Config> WeightInfo for BridgeWeight<T> {
|
||||
/// Some(196), added: 1681, mode: MaxEncodedLen)
|
||||
///
|
||||
/// The range of component `p` is `[1, 2]`.
|
||||
fn submit_parachain_heads_with_n_parachains(_p: u32) -> Weight {
|
||||
fn submit_parachain_heads_with_n_parachains(p: u32) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `366`
|
||||
// Estimated: `4648`
|
||||
// Minimum execution time: 36_567 nanoseconds.
|
||||
Weight::from_parts(38_887_022, 4648)
|
||||
// Minimum execution time: 36_701 nanoseconds.
|
||||
Weight::from_parts(38_597_828, 4648)
|
||||
// Standard Error: 190_859
|
||||
.saturating_add(Weight::from_parts(60_685, 0).saturating_mul(p.into()))
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -123,8 +125,8 @@ impl<T: frame_system::Config> WeightInfo for BridgeWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `366`
|
||||
// Estimated: `4648`
|
||||
// Minimum execution time: 37_910 nanoseconds.
|
||||
Weight::from_parts(38_967_000, 4648)
|
||||
// Minimum execution time: 38_189 nanoseconds.
|
||||
Weight::from_parts(39_252_000, 4648)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -156,8 +158,8 @@ impl<T: frame_system::Config> WeightInfo for BridgeWeight<T> {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `366`
|
||||
// Estimated: `4648`
|
||||
// Minimum execution time: 62_823 nanoseconds.
|
||||
Weight::from_parts(64_658_000, 4648)
|
||||
// Minimum execution time: 62_868 nanoseconds.
|
||||
Weight::from_parts(63_581_000, 4648)
|
||||
.saturating_add(T::DbWeight::get().reads(4_u64))
|
||||
.saturating_add(T::DbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -191,12 +193,14 @@ impl WeightInfo for () {
|
||||
/// Some(196), added: 1681, mode: MaxEncodedLen)
|
||||
///
|
||||
/// The range of component `p` is `[1, 2]`.
|
||||
fn submit_parachain_heads_with_n_parachains(_p: u32) -> Weight {
|
||||
fn submit_parachain_heads_with_n_parachains(p: u32) -> Weight {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `366`
|
||||
// Estimated: `4648`
|
||||
// Minimum execution time: 36_567 nanoseconds.
|
||||
Weight::from_parts(38_887_022, 4648)
|
||||
// Minimum execution time: 36_701 nanoseconds.
|
||||
Weight::from_parts(38_597_828, 4648)
|
||||
// Standard Error: 190_859
|
||||
.saturating_add(Weight::from_parts(60_685, 0).saturating_mul(p.into()))
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -228,8 +232,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `366`
|
||||
// Estimated: `4648`
|
||||
// Minimum execution time: 37_910 nanoseconds.
|
||||
Weight::from_parts(38_967_000, 4648)
|
||||
// Minimum execution time: 38_189 nanoseconds.
|
||||
Weight::from_parts(39_252_000, 4648)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
@@ -261,8 +265,8 @@ impl WeightInfo for () {
|
||||
// Proof Size summary in bytes:
|
||||
// Measured: `366`
|
||||
// Estimated: `4648`
|
||||
// Minimum execution time: 62_823 nanoseconds.
|
||||
Weight::from_parts(64_658_000, 4648)
|
||||
// Minimum execution time: 62_868 nanoseconds.
|
||||
Weight::from_parts(63_581_000, 4648)
|
||||
.saturating_add(RocksDbWeight::get().reads(4_u64))
|
||||
.saturating_add(RocksDbWeight::get().writes(3_u64))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user