Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
[Backport] weights from runtimes release to client (#2376)
Browse files Browse the repository at this point in the history
* XCM V2 weight template (#2344) (#2372)

* Update XCM weight template



* Remove copyright year from file header

Legally not needed, we already remove them from Substrate.



* ".git/.scripts/commands/bench/bench.sh" xcm statemine asset pallet_xcm_benchmarks::fungible

* ".git/.scripts/commands/bench/bench.sh" xcm statemine assets pallet_xcm_benchmarks::fungible

* ".git/.scripts/commands/bench/bench.sh" xcm statemint assets pallet_xcm_benchmarks::fungible

* ".git/.scripts/commands/bench/bench.sh" xcm statemint assets pallet_xcm_benchmarks::generic

* ".git/.scripts/commands/bench/bench.sh" xcm statemine assets pallet_xcm_benchmarks::generic

* Revert "".git/.scripts/commands/bench/bench.sh" xcm statemine asset pallet_xcm_benchmarks::fungible"

This reverts commit c4ac1a8.



* ".git/.scripts/commands/bench/bench.sh" xcm westmint assets pallet_xcm_benchmarks::generic

* ".git/.scripts/commands/bench/bench.sh" xcm westmint assets pallet_xcm_benchmarks::fungible

* ".git/.scripts/commands/bench/bench.sh" xcm bridge-hub-kusama bridge-hubs pallet_xcm_benchmarks::generic

* ".git/.scripts/commands/bench/bench.sh" xcm bridge-hub-polkadot bridge-hubs pallet_xcm_benchmarks::generic

* Update weights

Done directly on bm2 to bypass the bot.



---------


Co-authored-by: command-bot <>

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: Oliver Tale-Yazdi <[email protected]>

* [benchmarks] pr with weights (#2373)

Co-authored-by: paritytech-ci <[email protected]>

* [benchmarks] pr with weights (#2374)

Co-authored-by: paritytech-ci <[email protected]>

* [benchmarks] pr with weights (#2375)

Co-authored-by: paritytech-ci <[email protected]>

---------

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: Oliver Tale-Yazdi <[email protected]>
Co-authored-by: Paritytech CI <[email protected]>
Co-authored-by: paritytech-ci <[email protected]>
  • Loading branch information
4 people authored Mar 24, 2023
1 parent a20801b commit 25a9e8d
Show file tree
Hide file tree
Showing 91 changed files with 5,371 additions and 4,513 deletions.
2 changes: 1 addition & 1 deletion file_header.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// Copyright Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus is free software: you can redistribute it and/or modify
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// Copyright Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus is free software: you can redistribute it and/or modify
Expand All @@ -17,7 +17,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-03-23, 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`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -52,10 +52,10 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
fn set_config_with_u32() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `571`
// Minimum execution time: 4_956 nanoseconds.
Weight::from_parts(5_108_000, 0)
.saturating_add(Weight::from_parts(0, 571))
// Estimated: `1561`
// Minimum execution time: 5_483_000 picoseconds.
Weight::from_parts(5_808_000, 0)
.saturating_add(Weight::from_parts(0, 1561))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -64,10 +64,10 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
fn set_config_with_weight() -> Weight {
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `571`
// Minimum execution time: 4_945 nanoseconds.
Weight::from_parts(5_080_000, 0)
.saturating_add(Weight::from_parts(0, 571))
// Estimated: `1561`
// Minimum execution time: 5_773_000 picoseconds.
Weight::from_parts(5_913_000, 0)
.saturating_add(Weight::from_parts(0, 1561))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
53 changes: 27 additions & 26 deletions parachains/runtimes/assets/statemine/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Parity Technologies (UK) Ltd.
// Copyright Parity Technologies (UK) Ltd.
// This file is part of Cumulus.

// Cumulus is free software: you can redistribute it and/or modify
Expand All @@ -17,7 +17,7 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-03-23, 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`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -52,22 +52,22 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_524 nanoseconds.
Weight::from_parts(1_612_000, 0)
// Minimum execution time: 2_146_000 picoseconds.
Weight::from_parts(2_194_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 0
.saturating_add(Weight::from_parts(413, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(368, 0).saturating_mul(b.into()))
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 6_865 nanoseconds.
Weight::from_parts(6_939_000, 0)
// Minimum execution time: 7_732_000 picoseconds.
Weight::from_parts(8_001_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 0
.saturating_add(Weight::from_parts(1_762, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(1_403, 0).saturating_mul(b.into()))
}
/// Storage: System Digest (r:1 w:1)
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
Expand All @@ -76,10 +76,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
fn set_heap_pages() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `495`
// Minimum execution time: 3_490 nanoseconds.
Weight::from_parts(3_688_000, 0)
.saturating_add(Weight::from_parts(0, 495))
// Estimated: `1485`
// Minimum execution time: 4_287_000 picoseconds.
Weight::from_parts(4_602_000, 0)
.saturating_add(Weight::from_parts(0, 1485))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -90,11 +90,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_683 nanoseconds.
Weight::from_parts(1_726_000, 0)
// Minimum execution time: 2_319_000 picoseconds.
Weight::from_parts(2_401_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 1_736
.saturating_add(Weight::from_parts(582_823, 0).saturating_mul(i.into()))
// Standard Error: 1_933
.saturating_add(Weight::from_parts(669_111, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
Expand All @@ -104,25 +104,26 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_711 nanoseconds.
Weight::from_parts(1_787_000, 0)
// Minimum execution time: 2_381_000 picoseconds.
Weight::from_parts(2_405_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 779
.saturating_add(Weight::from_parts(445_878, 0).saturating_mul(i.into()))
.saturating_add(Weight::from_parts(492_780, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(i.into())))
}
/// Storage: Skipped Metadata (r:0 w:0)
/// Proof Skipped: Skipped Metadata (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[0, 1000]`.
fn kill_prefix(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `81 + p * (69 ±0)`
// Estimated: `72 + p * (70 ±0)`
// Minimum execution time: 3_428 nanoseconds.
Weight::from_parts(3_492_000, 0)
.saturating_add(Weight::from_parts(0, 72))
// Standard Error: 991
.saturating_add(Weight::from_parts(953_258, 0).saturating_mul(p.into()))
// Measured: `84 + p * (69 ±0)`
// Estimated: `75 + p * (70 ±0)`
// Minimum execution time: 4_204_000 picoseconds.
Weight::from_parts(4_269_000, 0)
.saturating_add(Weight::from_parts(0, 75))
// Standard Error: 1_101
.saturating_add(Weight::from_parts(1_014_807, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into())))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
.saturating_add(Weight::from_parts(0, 70).saturating_mul(p.into()))
}
Expand Down
Loading

0 comments on commit 25a9e8d

Please sign in to comment.