Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update weights #661

Merged
merged 6 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runtime/basilisk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "basilisk-runtime"
version = "113.0.0"
version = "114.0.0"
authors = ["GalacticCouncil"]
edition = "2021"
homepage = "/~https://github.com/galacticcouncil/Basilisk-node"
Expand Down
16 changes: 12 additions & 4 deletions runtime/basilisk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("basilisk"),
impl_name: create_runtime_str!("basilisk"),
authoring_version: 1,
spec_version: 113,
spec_version: 114,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -454,6 +454,9 @@ impl_runtime_apis! {
) -> Result<Vec<frame_benchmarking::BenchmarkBatch>, sp_runtime::RuntimeString> {
use frame_benchmarking::{BenchmarkError, Benchmarking, BenchmarkBatch};
use frame_support::traits::TrackedStorageKey;
use sp_core::Get;
use sp_std::sync::Arc;
use primitives::constants::chain::CORE_ASSET_ID;

use orml_benchmarking::add_benchmark as orml_add_benchmark;

Expand All @@ -474,7 +477,12 @@ impl_runtime_apis! {

parameter_types! {
pub const RandomParaId: ParaId = ParaId::new(22222222);
pub const ExistentialDeposit: u128= 0;
pub const ExistentialDeposit: u128= 1_000_000_000_000;
pub AssetLocation: Location = Location::new(1, cumulus_primitives_core::Junctions::X2(
Arc::new([cumulus_primitives_core::Junction::Parachain(ParachainInfo::get().into()),
cumulus_primitives_core::Junction::GeneralIndex(CORE_ASSET_ID.into())
])
));
}

use cumulus_primitives_core::ParaId;
Expand All @@ -489,7 +497,7 @@ impl_runtime_apis! {
Some((
Asset {
fun: Fungible(ExistentialDeposit::get()),
id: AssetId(Parent.into())
id: AssetId(AssetLocation::get())
},
Parent.into(),
))
Expand All @@ -499,7 +507,7 @@ impl_runtime_apis! {
Some((
Asset {
fun: Fungible(ExistentialDeposit::get()),
id: AssetId(Parent.into())
id: AssetId(AssetLocation::get())
},
ParentThen(Parachain(RandomParaId::get().into()).into()).into(),
))
Expand Down
20 changes: 9 additions & 11 deletions runtime/basilisk/src/weights/cumulus_pallet_parachain_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
//! Autogenerated weights for `cumulus_pallet_parachain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-04-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-05-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ubuntu`, CPU: `AMD Ryzen 9 5900X 12-Core Processor`
//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`

// Executed Command:
Expand All @@ -30,7 +30,7 @@
// pallet
// --wasm-execution=compiled
// --pallet
// *
// cumulus_pallet_parachain_system
// --extrinsic
// *
// --heap-pages
Expand All @@ -39,11 +39,9 @@
// 50
// --repeat
// 20
// --template=.maintain/pallet-weight-template-no-back.hbs
// --json-file
// raw.json
// --template=scripts/pallet-weight-template.hbs
// --output
// weights/
// weights.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
Expand Down Expand Up @@ -74,10 +72,10 @@ impl<T: frame_system::Config> cumulus_pallet_parachain_system::WeightInfo for Ba
// Proof Size summary in bytes:
// Measured: `156`
// Estimated: `3517`
// Minimum execution time: 2_740_000 picoseconds.
Weight::from_parts(7_630_634_002, 3517)
// Standard Error: 1_392_681
.saturating_add(Weight::from_parts(274_384_874, 0).saturating_mul(n.into()))
// Minimum execution time: 3_645_000 picoseconds.
Weight::from_parts(3_696_000, 3517)
// Standard Error: 19_822
.saturating_add(Weight::from_parts(332_345_217, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
Expand Down
36 changes: 17 additions & 19 deletions runtime/basilisk/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-04-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-05-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ubuntu`, CPU: `AMD Ryzen 9 5900X 12-Core Processor`
//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`

// Executed Command:
Expand All @@ -39,9 +39,7 @@
// 50
// --repeat
// 20
// --template=.maintain/pallet-weight-template-no-back.hbs
// --json-file
// raw.json
// --template=scripts/pallet-weight-template.hbs
// --output
// weights/

Expand All @@ -65,8 +63,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Basilisk
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
// Minimum execution time: 6_560_000 picoseconds.
Weight::from_parts(6_920_000, 1594)
// Minimum execution time: 6_605_000 picoseconds.
Weight::from_parts(6_790_000, 1594)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -84,8 +82,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Basilisk
// Proof Size summary in bytes:
// Measured: `189`
// Estimated: `3517`
// Minimum execution time: 13_570_000 picoseconds.
Weight::from_parts(14_390_000, 3517)
// Minimum execution time: 16_390_000 picoseconds.
Weight::from_parts(16_752_000, 3517)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -95,8 +93,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Basilisk
// Proof Size summary in bytes:
// Measured: `109`
// Estimated: `1594`
// Minimum execution time: 3_230_000 picoseconds.
Weight::from_parts(3_480_000, 1594)
// Minimum execution time: 3_897_000 picoseconds.
Weight::from_parts(4_182_000, 1594)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -106,17 +104,17 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Basilisk
// Proof Size summary in bytes:
// Measured: `144`
// Estimated: `1629`
// Minimum execution time: 4_190_000 picoseconds.
Weight::from_parts(4_420_000, 1629)
// Minimum execution time: 4_902_000 picoseconds.
Weight::from_parts(5_105_000, 1629)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
fn take_first_concatenated_xcm() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_340_000 picoseconds.
Weight::from_parts(8_491_000, 0)
// Minimum execution time: 9_077_000 picoseconds.
Weight::from_parts(9_208_000, 0)
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
Expand All @@ -136,8 +134,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Basilisk
// Proof Size summary in bytes:
// Measured: `134426`
// Estimated: `137891`
// Minimum execution time: 150_231_000 picoseconds.
Weight::from_parts(153_131_000, 137891)
// Minimum execution time: 204_113_000 picoseconds.
Weight::from_parts(206_048_000, 137891)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -159,8 +157,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for Basilisk
// Proof Size summary in bytes:
// Measured: `65823`
// Estimated: `69288`
// Minimum execution time: 85_311_000 picoseconds.
Weight::from_parts(89_330_000, 69288)
// Minimum execution time: 116_506_000 picoseconds.
Weight::from_parts(117_726_000, 69288)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand Down
60 changes: 29 additions & 31 deletions runtime/basilisk/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
//! Autogenerated weights for `frame_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-04-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-05-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ubuntu`, CPU: `AMD Ryzen 9 5900X 12-Core Processor`
//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`

// Executed Command:
Expand All @@ -39,9 +39,7 @@
// 50
// --repeat
// 20
// --template=.maintain/pallet-weight-template-no-back.hbs
// --json-file
// raw.json
// --template=scripts/pallet-weight-template.hbs
// --output
// weights/

Expand All @@ -64,20 +62,20 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_290_000 picoseconds.
Weight::from_parts(4_217_175, 0)
// Minimum execution time: 3_122_000 picoseconds.
Weight::from_parts(3_241_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(217, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(410, 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: 5_611_000 picoseconds.
Weight::from_parts(24_068_250, 0)
// Minimum execution time: 7_406_000 picoseconds.
Weight::from_parts(7_642_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(1_142, 0).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(1_432, 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 @@ -87,8 +85,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 3_690_000 picoseconds.
Weight::from_parts(3_920_000, 1485)
// Minimum execution time: 5_194_000 picoseconds.
Weight::from_parts(5_371_000, 1485)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
Expand All @@ -108,8 +106,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `198`
// Estimated: `1683`
// Minimum execution time: 111_713_366_000 picoseconds.
Weight::from_parts(114_232_690_000, 1683)
// Minimum execution time: 115_892_670_000 picoseconds.
Weight::from_parts(118_966_802_000, 1683)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -120,10 +118,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_160_000 picoseconds.
Weight::from_parts(2_340_000, 0)
// Standard Error: 1_638
.saturating_add(Weight::from_parts(781_946, 0).saturating_mul(i.into()))
// Minimum execution time: 3_228_000 picoseconds.
Weight::from_parts(3_288_000, 0)
// Standard Error: 1_735
.saturating_add(Weight::from_parts(838_003, 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 @@ -133,10 +131,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_280_000 picoseconds.
Weight::from_parts(2_350_000, 0)
// Standard Error: 763
.saturating_add(Weight::from_parts(510_910, 0).saturating_mul(i.into()))
// Minimum execution time: 3_161_000 picoseconds.
Weight::from_parts(3_225_000, 0)
// Standard Error: 700
.saturating_add(Weight::from_parts(575_295, 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 @@ -146,10 +144,10 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `130 + p * (69 ±0)`
// Estimated: `120 + p * (70 ±0)`
// Minimum execution time: 4_350_000 picoseconds.
Weight::from_parts(4_490_000, 120)
// Standard Error: 1_080
.saturating_add(Weight::from_parts(920_441, 0).saturating_mul(p.into()))
// Minimum execution time: 5_816_000 picoseconds.
Weight::from_parts(5_935_000, 120)
// Standard Error: 867
.saturating_add(Weight::from_parts(1_019_307, 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 All @@ -160,8 +158,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_700_000 picoseconds.
Weight::from_parts(9_320_000, 0)
// Minimum execution time: 10_314_000 picoseconds.
Weight::from_parts(10_704_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: `System::AuthorizedUpgrade` (r:1 w:1)
Expand All @@ -182,8 +180,8 @@ impl<T: frame_system::Config> frame_system::WeightInfo for BasiliskWeight<T> {
// Proof Size summary in bytes:
// Measured: `220`
// Estimated: `1705`
// Minimum execution time: 115_999_484_000 picoseconds.
Weight::from_parts(118_079_575_000, 1705)
// Minimum execution time: 116_831_737_000 picoseconds.
Weight::from_parts(119_788_127_000, 1705)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand Down
Loading
Loading