Skip to content

Commit

Permalink
[ci] calculate weights
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed May 9, 2024
1 parent dfc514f commit ae2464b
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 54 deletions.
46 changes: 23 additions & 23 deletions runtime/kreivo/src/weights/pallet_communities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_communities`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-04-22, 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: `virto-builder`, CPU: `Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("kreivo-local")`, DB CACHE: 1024
Expand Down Expand Up @@ -45,8 +45,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `56`
// Estimated: `3593`
// Minimum execution time: 58_161_000 picoseconds.
Weight::from_parts(69_157_000, 0)
// Minimum execution time: 39_254_000 picoseconds.
Weight::from_parts(44_989_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -59,8 +59,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `122`
// Estimated: `4087`
// Minimum execution time: 57_556_000 picoseconds.
Weight::from_parts(59_165_000, 0)
// Minimum execution time: 39_264_000 picoseconds.
Weight::from_parts(59_388_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 @@ -73,8 +73,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `115`
// Estimated: `3484`
// Minimum execution time: 33_456_000 picoseconds.
Weight::from_parts(37_220_000, 0)
// Minimum execution time: 24_894_000 picoseconds.
Weight::from_parts(36_775_000, 0)
.saturating_add(Weight::from_parts(0, 3484))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down Expand Up @@ -105,8 +105,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `880`
// Estimated: `9846`
// Minimum execution time: 346_154_000 picoseconds.
Weight::from_parts(389_196_000, 0)
// Minimum execution time: 245_334_000 picoseconds.
Weight::from_parts(360_487_000, 0)
.saturating_add(Weight::from_parts(0, 9846))
.saturating_add(T::DbWeight::get().reads(13))
.saturating_add(T::DbWeight::get().writes(13))
Expand Down Expand Up @@ -135,8 +135,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1006`
// Estimated: `12798`
// Minimum execution time: 372_760_000 picoseconds.
Weight::from_parts(383_094_000, 0)
// Minimum execution time: 317_361_000 picoseconds.
Weight::from_parts(465_610_000, 0)
.saturating_add(Weight::from_parts(0, 12798))
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(10))
Expand All @@ -151,8 +151,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `717`
// Estimated: `6894`
// Minimum execution time: 138_465_000 picoseconds.
Weight::from_parts(216_155_000, 0)
// Minimum execution time: 134_868_000 picoseconds.
Weight::from_parts(158_292_000, 0)
.saturating_add(Weight::from_parts(0, 6894))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -167,8 +167,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `755`
// Estimated: `6894`
// Minimum execution time: 178_550_000 picoseconds.
Weight::from_parts(224_353_000, 0)
// Minimum execution time: 198_275_000 picoseconds.
Weight::from_parts(202_790_000, 0)
.saturating_add(Weight::from_parts(0, 6894))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -195,8 +195,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `3035`
// Estimated: `6148`
// Minimum execution time: 374_166_000 picoseconds.
Weight::from_parts(521_406_000, 0)
// Minimum execution time: 393_947_000 picoseconds.
Weight::from_parts(476_186_000, 0)
.saturating_add(Weight::from_parts(0, 6148))
.saturating_add(T::DbWeight::get().reads(10))
.saturating_add(T::DbWeight::get().writes(6))
Expand All @@ -215,8 +215,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `2898`
// Estimated: `4365`
// Minimum execution time: 186_847_000 picoseconds.
Weight::from_parts(249_529_000, 0)
// Minimum execution time: 178_506_000 picoseconds.
Weight::from_parts(241_482_000, 0)
.saturating_add(Weight::from_parts(0, 4365))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -235,8 +235,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1082`
// Estimated: `8123`
// Minimum execution time: 204_012_000 picoseconds.
Weight::from_parts(219_951_000, 0)
// Minimum execution time: 164_095_000 picoseconds.
Weight::from_parts(219_358_000, 0)
.saturating_add(Weight::from_parts(0, 8123))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -247,8 +247,8 @@ impl<T: frame_system::Config> pallet_communities::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `115`
// Estimated: `3484`
// Minimum execution time: 48_041_000 picoseconds.
Weight::from_parts(51_107_000, 0)
// Minimum execution time: 33_857_000 picoseconds.
Weight::from_parts(47_890_000, 0)
.saturating_add(Weight::from_parts(0, 3484))
.saturating_add(T::DbWeight::get().reads(1))
}
Expand Down
41 changes: 29 additions & 12 deletions runtime/kreivo/src/weights/pallet_communities_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_communities_manager`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-04-22, 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: `virto-builder`, CPU: `Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("kreivo-local")`, DB CACHE: 1024
Expand Down Expand Up @@ -67,21 +67,38 @@ impl<T: frame_system::Config> pallet_communities_manager::WeightInfo for WeightI
// Proof Size summary in bytes:
// Measured: `278`
// Estimated: `132561`
// Minimum execution time: 172_690_000 picoseconds.
Weight::from_parts(178_773_000, 0)
// Minimum execution time: 115_705_000 picoseconds.
Weight::from_parts(140_658_000, 0)
.saturating_add(Weight::from_parts(0, 132561))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(14))
}

fn create_memberships(_: u16, ) -> Weight {
/// Storage: `CommunityMemberships::Item` (r:1023 w:1023)
/// Proof: `CommunityMemberships::Item` (`max_values`: None, `max_size`: Some(859), added: 3334, mode: `MaxEncodedLen`)
/// Storage: `CommunityMemberships::Collection` (r:1 w:1)
/// Proof: `CommunityMemberships::Collection` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
/// Storage: `CommunityMemberships::CollectionConfigOf` (r:1 w:0)
/// Proof: `CommunityMemberships::CollectionConfigOf` (`max_values`: None, `max_size`: Some(69), added: 2544, mode: `MaxEncodedLen`)
/// Storage: `CommunityMemberships::ItemConfigOf` (r:1023 w:1023)
/// Proof: `CommunityMemberships::ItemConfigOf` (`max_values`: None, `max_size`: Some(46), added: 2521, mode: `MaxEncodedLen`)
/// Storage: `CommunityMemberships::Account` (r:0 w:1023)
/// Proof: `CommunityMemberships::Account` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
/// Storage: `CommunityMemberships::ItemPriceOf` (r:0 w:1023)
/// Proof: `CommunityMemberships::ItemPriceOf` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
/// The range of component `q` is `[1, 1024]`.
fn create_memberships(q: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `278`
// Estimated: `132561`
// Minimum execution time: 172_690_000 picoseconds.
Weight::from_parts(178_773_000, 0)
.saturating_add(Weight::from_parts(0, 132561))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(14))
// Measured: `368`
// Estimated: `3547 + q * (3334 ±0)`
// Minimum execution time: 87_026_000 picoseconds.
Weight::from_parts(110_670_000, 0)
.saturating_add(Weight::from_parts(0, 3547))
// Standard Error: 331_618
.saturating_add(Weight::from_parts(83_810_638, 0).saturating_mul(q.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(q.into())))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(T::DbWeight::get().writes((4_u64).saturating_mul(q.into())))
.saturating_add(Weight::from_parts(0, 3334).saturating_mul(q.into()))
}
}
38 changes: 19 additions & 19 deletions runtime/kreivo/src/weights/pallet_payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `pallet_payments`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2024-04-22, 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: `virto-builder`, CPU: `Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("kreivo-local")`, DB CACHE: 1024
Expand Down Expand Up @@ -50,11 +50,11 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `544`
// Estimated: `8518`
// Minimum execution time: 167_937_000 picoseconds.
Weight::from_parts(260_137_613, 0)
// Minimum execution time: 156_381_000 picoseconds.
Weight::from_parts(218_271_051, 0)
.saturating_add(Weight::from_parts(0, 8518))
// Standard Error: 41_024
.saturating_add(Weight::from_parts(3_912, 0).saturating_mul(q.into()))
// Standard Error: 115_804
.saturating_add(Weight::from_parts(121_389, 0).saturating_mul(q.into()))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(6))
}
Expand All @@ -72,8 +72,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1153`
// Estimated: `8859`
// Minimum execution time: 403_004_000 picoseconds.
Weight::from_parts(416_424_000, 0)
// Minimum execution time: 258_423_000 picoseconds.
Weight::from_parts(330_368_000, 0)
.saturating_add(Weight::from_parts(0, 8859))
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(8))
Expand All @@ -92,8 +92,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1120`
// Estimated: `8518`
// Minimum execution time: 306_777_000 picoseconds.
Weight::from_parts(318_027_000, 0)
// Minimum execution time: 206_862_000 picoseconds.
Weight::from_parts(337_983_000, 0)
.saturating_add(Weight::from_parts(0, 8518))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(7))
Expand All @@ -108,8 +108,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `377`
// Estimated: `159279`
// Minimum execution time: 79_949_000 picoseconds.
Weight::from_parts(81_799_000, 0)
// Minimum execution time: 59_757_000 picoseconds.
Weight::from_parts(82_203_000, 0)
.saturating_add(Weight::from_parts(0, 159279))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
Expand All @@ -132,8 +132,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1221`
// Estimated: `159279`
// Minimum execution time: 208_562_000 picoseconds.
Weight::from_parts(214_267_000, 0)
// Minimum execution time: 147_781_000 picoseconds.
Weight::from_parts(215_135_000, 0)
.saturating_add(Weight::from_parts(0, 159279))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(6))
Expand All @@ -154,8 +154,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1223`
// Estimated: `8859`
// Minimum execution time: 573_437_000 picoseconds.
Weight::from_parts(589_019_000, 0)
// Minimum execution time: 551_169_000 picoseconds.
Weight::from_parts(653_998_000, 0)
.saturating_add(Weight::from_parts(0, 8859))
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(8))
Expand All @@ -170,8 +170,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `391`
// Estimated: `8518`
// Minimum execution time: 58_103_000 picoseconds.
Weight::from_parts(60_278_000, 0)
// Minimum execution time: 56_541_000 picoseconds.
Weight::from_parts(71_556_000, 0)
.saturating_add(Weight::from_parts(0, 8518))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
Expand All @@ -190,8 +190,8 @@ impl<T: frame_system::Config> pallet_payments::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `1014`
// Estimated: `8859`
// Minimum execution time: 356_470_000 picoseconds.
Weight::from_parts(373_924_000, 0)
// Minimum execution time: 362_624_000 picoseconds.
Weight::from_parts(400_237_000, 0)
.saturating_add(Weight::from_parts(0, 8859))
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(6))
Expand Down

0 comments on commit ae2464b

Please sign in to comment.