Skip to content

Commit

Permalink
benchmarks for 3100 (#2878)
Browse files Browse the repository at this point in the history
* benchmarks for 3100

* add benchmarks

* use generated weights forpallet_moonbeam_foreign_assets

* updating test values

* fix test values

* update test values

---------

Co-authored-by: Éloïs <c@elo.tf>
  • Loading branch information
noandrea and librelois authored Jul 25, 2024
1 parent 3db6b5c commit 6750bb3
Show file tree
Hide file tree
Showing 38 changed files with 1,121 additions and 914 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pallet-author-mapping = { workspace = true }
pallet-conviction-voting = { workspace = true }
pallet-ethereum-xcm = { workspace = true }
pallet-migrations = { workspace = true }
pallet-moonbeam-foreign-assets = { workspace = true }
pallet-moonbeam-lazy-migrations = { workspace = true }
pallet-parachain-staking = { workspace = true }
pallet-precompile-benchmarks = { workspace = true }
Expand Down
30 changes: 15 additions & 15 deletions runtime/common/src/weights/cumulus_pallet_xcmp_queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for `cumulus_pallet_xcmp_queue`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-05-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -52,8 +52,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 4_439_000 picoseconds.
Weight::from_parts(4_740_000, 1627)
// Minimum execution time: 4_307_000 picoseconds.
Weight::from_parts(4_445_000, 1627)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -71,8 +71,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `148`
// Estimated: `3517`
// Minimum execution time: 11_199_000 picoseconds.
Weight::from_parts(11_613_000, 3517)
// Minimum execution time: 11_285_000 picoseconds.
Weight::from_parts(11_795_000, 3517)
.saturating_add(T::DbWeight::get().reads(4_u64))
.saturating_add(T::DbWeight::get().writes(3_u64))
}
Expand All @@ -82,8 +82,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `142`
// Estimated: `1627`
// Minimum execution time: 2_912_000 picoseconds.
Weight::from_parts(3_033_000, 1627)
// Minimum execution time: 2_760_000 picoseconds.
Weight::from_parts(2_884_000, 1627)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
Expand All @@ -93,17 +93,17 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `177`
// Estimated: `1662`
// Minimum execution time: 3_790_000 picoseconds.
Weight::from_parts(3_947_000, 1662)
// Minimum execution time: 3_600_000 picoseconds.
Weight::from_parts(3_734_000, 1662)
.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_196_000 picoseconds.
Weight::from_parts(8_352_000, 0)
// Minimum execution time: 7_631_000 picoseconds.
Weight::from_parts(8_118_000, 0)
}
/// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
/// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
Expand All @@ -123,8 +123,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `134385`
// Estimated: `137850`
// Minimum execution time: 204_143_000 picoseconds.
Weight::from_parts(208_968_000, 137850)
// Minimum execution time: 190_123_000 picoseconds.
Weight::from_parts(194_387_000, 137850)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -146,8 +146,8 @@ impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightIn
// Proof Size summary in bytes:
// Measured: `65782`
// Estimated: `69247`
// Minimum execution time: 110_679_000 picoseconds.
Weight::from_parts(113_402_000, 69247)
// Minimum execution time: 102_726_000 picoseconds.
Weight::from_parts(104_463_000, 69247)
.saturating_add(T::DbWeight::get().reads(6_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand Down
1 change: 1 addition & 0 deletions runtime/common/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub mod pallet_conviction_voting;
pub mod pallet_crowdloan_rewards;
pub mod pallet_evm;
pub mod pallet_identity;
pub mod pallet_moonbeam_foreign_assets;
pub mod pallet_moonbeam_lazy_migrations;
pub mod pallet_moonbeam_orbiters;
pub mod pallet_multisig;
Expand Down
38 changes: 19 additions & 19 deletions runtime/common/src/weights/pallet_asset_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for `pallet_asset_manager`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-05-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2024-07-25, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
Expand Down Expand Up @@ -58,8 +58,8 @@ impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `82`
// Estimated: `3639`
// Minimum execution time: 29_376_000 picoseconds.
Weight::from_parts(30_234_000, 3639)
// Minimum execution time: 28_927_000 picoseconds.
Weight::from_parts(29_493_000, 3639)
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
Expand All @@ -74,10 +74,10 @@ impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `611 + x * (9 ±0)`
// Estimated: `4000 + x * (10 ±0)`
// Minimum execution time: 20_442_000 picoseconds.
Weight::from_parts(18_338_506, 4000)
// Standard Error: 4_080
.saturating_add(Weight::from_parts(871_614, 0).saturating_mul(x.into()))
// Minimum execution time: 19_578_000 picoseconds.
Weight::from_parts(18_705_391, 4000)
// Standard Error: 3_442
.saturating_add(Weight::from_parts(792_309, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 10).saturating_mul(x.into()))
Expand All @@ -95,10 +95,10 @@ impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `926 + x * (13 ±0)`
// Estimated: `4309 + x * (15 ±0)`
// Minimum execution time: 30_343_000 picoseconds.
Weight::from_parts(29_193_584, 4309)
// Standard Error: 4_573
.saturating_add(Weight::from_parts(963_206, 0).saturating_mul(x.into()))
// Minimum execution time: 29_180_000 picoseconds.
Weight::from_parts(29_891_006, 4309)
// Standard Error: 4_391
.saturating_add(Weight::from_parts(874_012, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(6_u64))
.saturating_add(Weight::from_parts(0, 15).saturating_mul(x.into()))
Expand All @@ -112,10 +112,10 @@ impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `196 + x * (5 ±0)`
// Estimated: `1678 + x * (5 ±0)`
// Minimum execution time: 16_137_000 picoseconds.
Weight::from_parts(13_193_368, 1678)
// Standard Error: 4_122
.saturating_add(Weight::from_parts(800_676, 0).saturating_mul(x.into()))
// Minimum execution time: 15_115_000 picoseconds.
Weight::from_parts(13_493_610, 1678)
// Standard Error: 2_952
.saturating_add(Weight::from_parts(694_325, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
.saturating_add(Weight::from_parts(0, 5).saturating_mul(x.into()))
Expand All @@ -133,10 +133,10 @@ impl<T: frame_system::Config> pallet_asset_manager::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `482 + x * (10 ±0)`
// Estimated: `3955 + x * (10 ±0)`
// Minimum execution time: 22_167_000 picoseconds.
Weight::from_parts(20_383_311, 3955)
// Standard Error: 4_061
.saturating_add(Weight::from_parts(808_620, 0).saturating_mul(x.into()))
// Minimum execution time: 21_219_000 picoseconds.
Weight::from_parts(20_476_212, 3955)
// Standard Error: 3_389
.saturating_add(Weight::from_parts(716_188, 0).saturating_mul(x.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(Weight::from_parts(0, 10).saturating_mul(x.into()))
Expand Down
Loading

0 comments on commit 6750bb3

Please sign in to comment.