Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
fix benchmark TrustedTeleporter to polkadot-v1.0.0 branch (#268)
Browse files Browse the repository at this point in the history
* fix benchmark TrustedTeleporter

* Fixing polkad version for check cache

* ".git/.scripts/commands/bench-all/bench-all.sh" --runtime=trappist --target_dir=trappist

---------

Co-authored-by: Hector Bulgarini <[email protected]>
Co-authored-by: command-bot <>
  • Loading branch information
metricaez and hbulgarini committed Aug 27, 2023
1 parent 53f36d1 commit 46aae1f
Show file tree
Hide file tree
Showing 27 changed files with 1,005 additions and 1,008 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch:

env:
POLKA_VERSION: 0.9.43
POLKA_VERSION: 1.0.0

jobs:
lint:
Expand Down
8 changes: 4 additions & 4 deletions runtime/trappist/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ impl_runtime_apis! {
impl cumulus_pallet_session_benchmarking::Config for Runtime {}

use xcm::latest::prelude::*;
use xcm_config::{RelayLocation, SelfReserve};
use xcm_config::{RelayLocation, SelfReserve, RockmineLocation};
use pallet_xcm_benchmarks::asset_instance_from;

impl pallet_xcm_benchmarks::Config for Runtime {
Expand Down Expand Up @@ -1139,9 +1139,9 @@ impl_runtime_apis! {
}

parameter_types! {
pub const TrustedTeleporter: Option<(MultiLocation, MultiAsset)> = Some((
RelayLocation::get(),
MultiAsset { fun: Fungible(1 * UNITS), id: Concrete(RelayLocation::get()) },
pub TrustedTeleporter: Option<(MultiLocation, MultiAsset)> = Some((
RockmineLocation::get(),
MultiAsset { fun: Fungible(1 * UNITS), id: Concrete(SelfReserve::get()) },
));
pub const CheckedAccount: Option<(AccountId, xcm_builder::MintLocation)> = None;

Expand Down
18 changes: 9 additions & 9 deletions runtime/trappist/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-24 (Y/M/D)
//! DATE: 2023-08-26 (Y/M/D)
//! HOSTNAME: `runner-aahe6cbd-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//!
//! SHORT-NAME: `block`, LONG-NAME: `BlockExecution`, RUNTIME: `Trappist Development`
Expand All @@ -43,17 +43,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 402_595, 452_121
/// Average: 414_941
/// Median: 412_791
/// Std-Dev: 9010.6
/// Min, Max: 402_910, 446_938
/// Average: 413_923
/// Median: 411_806
/// Std-Dev: 7586.11
///
/// Percentiles nanoseconds:
/// 99th: 437_367
/// 95th: 431_867
/// 75th: 419_312
/// 99th: 436_540
/// 95th: 427_648
/// 75th: 416_723
pub const BlockExecutionWeight: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(414_941), 0);
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(413_923), 0);
}

#[cfg(test)]
Expand Down
10 changes: 5 additions & 5 deletions runtime/trappist/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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-08-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-08-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-aahe6cbd-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("trappist-dev")`, DB CACHE: 1024
Expand Down Expand Up @@ -56,8 +56,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1561`
// Minimum execution time: 6_084_000 picoseconds.
Weight::from_parts(6_381_000, 0)
// Minimum execution time: 5_965_000 picoseconds.
Weight::from_parts(6_251_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 @@ -68,8 +68,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `76`
// Estimated: `1561`
// Minimum execution time: 6_054_000 picoseconds.
Weight::from_parts(6_371_000, 0)
// Minimum execution time: 6_004_000 picoseconds.
Weight::from_parts(6_248_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
18 changes: 9 additions & 9 deletions runtime/trappist/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// limitations under the License.

//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-24 (Y/M/D)
//! DATE: 2023-08-26 (Y/M/D)
//! HOSTNAME: `runner-aahe6cbd-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//!
//! SHORT-NAME: `extrinsic`, LONG-NAME: `ExtrinsicBase`, RUNTIME: `Trappist Development`
Expand All @@ -43,17 +43,17 @@ parameter_types! {
/// Calculated by multiplying the *Average* with `1.0` and adding `0`.
///
/// Stats nanoseconds:
/// Min, Max: 129_804, 132_466
/// Average: 130_640
/// Median: 130_566
/// Std-Dev: 463.47
/// Min, Max: 129_619, 131_382
/// Average: 130_429
/// Median: 130_391
/// Std-Dev: 387.49
///
/// Percentiles nanoseconds:
/// 99th: 131_854
/// 95th: 131_439
/// 75th: 130_880
/// 99th: 131_366
/// 95th: 131_114
/// 75th: 130_644
pub const ExtrinsicBaseWeight: Weight =
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(130_640), 0);
Weight::from_parts(WEIGHT_REF_TIME_PER_NANOS.saturating_mul(130_429), 0);
}

#[cfg(test)]
Expand Down
48 changes: 24 additions & 24 deletions runtime/trappist/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-08-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-aahe6cbd-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("trappist-dev")`, DB CACHE: 1024
Expand Down Expand Up @@ -55,22 +55,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_922_000 picoseconds.
Weight::from_parts(561_193, 0)
// Minimum execution time: 1_854_000 picoseconds.
Weight::from_parts(2_569_318, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 0
.saturating_add(Weight::from_parts(387, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(386, 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: 7_267_000 picoseconds.
Weight::from_parts(45_638_767, 0)
// Minimum execution time: 7_401_000 picoseconds.
Weight::from_parts(7_634_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 5
.saturating_add(Weight::from_parts(1_664, 0).saturating_mul(b.into()))
// Standard Error: 1
.saturating_add(Weight::from_parts(1_687, 0).saturating_mul(b.into()))
}
/// Storage: `System::Digest` (r:1 w:1)
/// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
Expand All @@ -80,8 +80,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 3_736_000 picoseconds.
Weight::from_parts(4_001_000, 0)
// Minimum execution time: 3_840_000 picoseconds.
Weight::from_parts(4_030_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 @@ -102,8 +102,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `190`
// Estimated: `1675`
// Minimum execution time: 98_065_522_000 picoseconds.
Weight::from_parts(102_442_602_000, 0)
// Minimum execution time: 96_170_225_000 picoseconds.
Weight::from_parts(99_038_661_000, 0)
.saturating_add(Weight::from_parts(0, 1675))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -115,11 +115,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_031_000 picoseconds.
Weight::from_parts(2_091_000, 0)
// Minimum execution time: 1_978_000 picoseconds.
Weight::from_parts(2_079_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 2_058
.saturating_add(Weight::from_parts(752_972, 0).saturating_mul(i.into()))
// Standard Error: 1_924
.saturating_add(Weight::from_parts(751_028, 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 @@ -129,11 +129,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_029_000 picoseconds.
Weight::from_parts(2_078_000, 0)
// Minimum execution time: 1_990_000 picoseconds.
Weight::from_parts(2_088_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Standard Error: 892
.saturating_add(Weight::from_parts(569_363, 0).saturating_mul(i.into()))
// Standard Error: 913
.saturating_add(Weight::from_parts(573_335, 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 @@ -143,11 +143,11 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `83 + p * (69 ±0)`
// Estimated: `89 + p * (70 ±0)`
// Minimum execution time: 3_741_000 picoseconds.
Weight::from_parts(3_905_000, 0)
// Minimum execution time: 3_808_000 picoseconds.
Weight::from_parts(3_898_000, 0)
.saturating_add(Weight::from_parts(0, 89))
// Standard Error: 1_601
.saturating_add(Weight::from_parts(1_191_940, 0).saturating_mul(p.into()))
// Standard Error: 1_271
.saturating_add(Weight::from_parts(1_189_465, 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
10 changes: 5 additions & 5 deletions runtime/trappist/src/weights/pallet_asset_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for `pallet_asset_registry`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-08-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-08-26, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `runner-aahe6cbd-project-647-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("trappist-dev")`, DB CACHE: 1024
Expand Down Expand Up @@ -60,8 +60,8 @@ impl<T: frame_system::Config> pallet_asset_registry::WeightInfo for WeightInfo<T
// Proof Size summary in bytes:
// Measured: `123`
// Estimated: `4087`
// Minimum execution time: 18_302_000 picoseconds.
Weight::from_parts(18_687_000, 0)
// Minimum execution time: 18_819_000 picoseconds.
Weight::from_parts(19_148_000, 0)
.saturating_add(Weight::from_parts(0, 4087))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -74,8 +74,8 @@ impl<T: frame_system::Config> pallet_asset_registry::WeightInfo for WeightInfo<T
// Proof Size summary in bytes:
// Measured: `107`
// Estimated: `4087`
// Minimum execution time: 15_644_000 picoseconds.
Weight::from_parts(15_968_000, 0)
// Minimum execution time: 15_327_000 picoseconds.
Weight::from_parts(15_948_000, 0)
.saturating_add(Weight::from_parts(0, 4087))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
Expand Down
Loading

0 comments on commit 46aae1f

Please sign in to comment.