Skip to content

Commit

Permalink
Update benchmarks for pallet-sylo on TRN-808-sylo-pallet
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jan 16, 2025
1 parent a5d63dd commit 48c0995
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 76 deletions.
88 changes: 44 additions & 44 deletions pallet/sylo/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
//! Autogenerated weights for pallet_sylo
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2025-01-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `Johns-Macbook-Pro.local`, CPU: `<UNKNOWN>`
//! DATE: 2025-01-16, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `ip-172-31-102-147`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -64,39 +64,39 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: `Sylo::SyloAssetId` (r:0 w:1)
// Proof: `Sylo::SyloAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn set_payment_asset() -> Weight {
Weight::from_all(8_000_000)
Weight::from_all(24_170_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: `Sylo::SyloResolverMethod` (r:0 w:1)
// Proof: `Sylo::SyloResolverMethod` (`max_values`: Some(1), `max_size`: Some(502), added: 997, mode: `MaxEncodedLen`)
fn set_sylo_resolver_method() -> Weight {
Weight::from_all(9_000_000)
Weight::from_all(25_267_000)
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: `Sylo::Resolvers` (r:1 w:1)
// Proof: `Sylo::Resolvers` (`max_values`: None, `max_size`: Some(5551), added: 8026, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 10]`.
fn register_resolver(p: u32, ) -> Weight {
Weight::from_all(14_074_044)
// Standard Error: 9_768
.saturating_add(Weight::from_all(834_254_u64).saturating_mul(p as u64))
Weight::from_all(40_852_871)
// Standard Error: 19_118
.saturating_add(Weight::from_all(2_364_094_u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: `Sylo::Resolvers` (r:1 w:1)
// Proof: `Sylo::Resolvers` (`max_values`: None, `max_size`: Some(5551), added: 8026, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 10]`.
fn update_resolver(p: u32, ) -> Weight {
Weight::from_all(14_519_049)
// Standard Error: 9_587
.saturating_add(Weight::from_all(944_013_u64).saturating_mul(p as u64))
Weight::from_all(41_166_323)
// Standard Error: 15_527
.saturating_add(Weight::from_all(2_380_835_u64).saturating_mul(p as u64))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: `Sylo::Resolvers` (r:1 w:1)
// Proof: `Sylo::Resolvers` (`max_values`: None, `max_size`: Some(5551), added: 8026, mode: `MaxEncodedLen`)
fn deregister_resolver() -> Weight {
Weight::from_all(16_000_000)
Weight::from_all(43_080_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -107,18 +107,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `q` is `[1, 10]`.
/// The range of component `r` is `[1, 10]`.
fn create_validation_record(q: u32, r: u32, ) -> Weight {
Weight::from_all(17_256_261)
// Standard Error: 25_140
.saturating_add(Weight::from_all(1_057_921_u64).saturating_mul(q as u64))
// Standard Error: 25_140
.saturating_add(Weight::from_all(615_945_u64).saturating_mul(r as u64))
Weight::from_all(49_387_366)
// Standard Error: 25_671
.saturating_add(Weight::from_all(2_595_326_u64).saturating_mul(q as u64))
// Standard Error: 25_671
.saturating_add(Weight::from_all(1_271_899_u64).saturating_mul(r as u64))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: `Sylo::ValidationRecords` (r:1 w:1)
// Proof: `Sylo::ValidationRecords` (`max_values`: None, `max_size`: Some(19724), added: 22199, mode: `MaxEncodedLen`)
fn add_validation_record_entry() -> Weight {
Weight::from_all(17_000_000)
Weight::from_all(46_387_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -129,18 +129,18 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
/// The range of component `q` is `[1, 10]`.
/// The range of component `r` is `[1, 10]`.
fn update_validation_record(q: u32, r: u32, ) -> Weight {
Weight::from_all(13_670_290)
// Standard Error: 25_365
.saturating_add(Weight::from_all(3_860_787_u64).saturating_mul(q as u64))
// Standard Error: 25_365
.saturating_add(Weight::from_all(1_232_782_u64).saturating_mul(r as u64))
Weight::from_all(47_896_051)
// Standard Error: 31_451
.saturating_add(Weight::from_all(7_549_938_u64).saturating_mul(q as u64))
// Standard Error: 31_451
.saturating_add(Weight::from_all(2_559_365_u64).saturating_mul(r as u64))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: `Sylo::ValidationRecords` (r:1 w:1)
// Proof: `Sylo::ValidationRecords` (`max_values`: None, `max_size`: Some(19724), added: 22199, mode: `MaxEncodedLen`)
fn delete_validation_record() -> Weight {
Weight::from_all(16_000_000)
Weight::from_all(43_060_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -151,39 +151,39 @@ impl WeightInfo for () {
// Storage: `Sylo::SyloAssetId` (r:0 w:1)
// Proof: `Sylo::SyloAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
fn set_payment_asset() -> Weight {
Weight::from_all(8_000_000)
Weight::from_all(24_170_000)
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: `Sylo::SyloResolverMethod` (r:0 w:1)
// Proof: `Sylo::SyloResolverMethod` (`max_values`: Some(1), `max_size`: Some(502), added: 997, mode: `MaxEncodedLen`)
fn set_sylo_resolver_method() -> Weight {
Weight::from_all(9_000_000)
Weight::from_all(25_267_000)
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: `Sylo::Resolvers` (r:1 w:1)
// Proof: `Sylo::Resolvers` (`max_values`: None, `max_size`: Some(5551), added: 8026, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 10]`.
fn register_resolver(p: u32, ) -> Weight {
Weight::from_all(14_074_044)
// Standard Error: 9_768
.saturating_add(Weight::from_all(834_254_u64).saturating_mul(p as u64))
Weight::from_all(40_852_871)
// Standard Error: 19_118
.saturating_add(Weight::from_all(2_364_094_u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: `Sylo::Resolvers` (r:1 w:1)
// Proof: `Sylo::Resolvers` (`max_values`: None, `max_size`: Some(5551), added: 8026, mode: `MaxEncodedLen`)
/// The range of component `p` is `[1, 10]`.
fn update_resolver(p: u32, ) -> Weight {
Weight::from_all(14_519_049)
// Standard Error: 9_587
.saturating_add(Weight::from_all(944_013_u64).saturating_mul(p as u64))
Weight::from_all(41_166_323)
// Standard Error: 15_527
.saturating_add(Weight::from_all(2_380_835_u64).saturating_mul(p as u64))
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: `Sylo::Resolvers` (r:1 w:1)
// Proof: `Sylo::Resolvers` (`max_values`: None, `max_size`: Some(5551), added: 8026, mode: `MaxEncodedLen`)
fn deregister_resolver() -> Weight {
Weight::from_all(16_000_000)
Weight::from_all(43_080_000)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
Expand All @@ -194,18 +194,18 @@ impl WeightInfo for () {
/// The range of component `q` is `[1, 10]`.
/// The range of component `r` is `[1, 10]`.
fn create_validation_record(q: u32, r: u32, ) -> Weight {
Weight::from_all(17_256_261)
// Standard Error: 25_140
.saturating_add(Weight::from_all(1_057_921_u64).saturating_mul(q as u64))
// Standard Error: 25_140
.saturating_add(Weight::from_all(615_945_u64).saturating_mul(r as u64))
Weight::from_all(49_387_366)
// Standard Error: 25_671
.saturating_add(Weight::from_all(2_595_326_u64).saturating_mul(q as u64))
// Standard Error: 25_671
.saturating_add(Weight::from_all(1_271_899_u64).saturating_mul(r as u64))
.saturating_add(RocksDbWeight::get().reads(2))
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: `Sylo::ValidationRecords` (r:1 w:1)
// Proof: `Sylo::ValidationRecords` (`max_values`: None, `max_size`: Some(19724), added: 22199, mode: `MaxEncodedLen`)
fn add_validation_record_entry() -> Weight {
Weight::from_all(17_000_000)
Weight::from_all(46_387_000)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
Expand All @@ -216,18 +216,18 @@ impl WeightInfo for () {
/// The range of component `q` is `[1, 10]`.
/// The range of component `r` is `[1, 10]`.
fn update_validation_record(q: u32, r: u32, ) -> Weight {
Weight::from_all(13_670_290)
// Standard Error: 25_365
.saturating_add(Weight::from_all(3_860_787_u64).saturating_mul(q as u64))
// Standard Error: 25_365
.saturating_add(Weight::from_all(1_232_782_u64).saturating_mul(r as u64))
Weight::from_all(47_896_051)
// Standard Error: 31_451
.saturating_add(Weight::from_all(7_549_938_u64).saturating_mul(q as u64))
// Standard Error: 31_451
.saturating_add(Weight::from_all(2_559_365_u64).saturating_mul(r as u64))
.saturating_add(RocksDbWeight::get().reads(2))
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: `Sylo::ValidationRecords` (r:1 w:1)
// Proof: `Sylo::ValidationRecords` (`max_values`: None, `max_size`: Some(19724), added: 22199, mode: `MaxEncodedLen`)
fn delete_validation_record() -> Weight {
Weight::from_all(16_000_000)
Weight::from_all(43_060_000)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
Expand Down
64 changes: 32 additions & 32 deletions runtime/src/weights/pallet_sylo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
//! Autogenerated weights for `pallet_sylo`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2025-01-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2025-01-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `Johns-Macbook-Pro.local`, CPU: `<UNKNOWN>`
//! HOSTNAME: `ip-172-31-102-147`, CPU: `Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz`
//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -38,8 +38,8 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
// Minimum execution time: 24_224_000 picoseconds.
Weight::from_parts(25_097_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -49,8 +49,8 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(10_000_000, 0)
// Minimum execution time: 25_480_000 picoseconds.
Weight::from_parts(26_580_000, 0)
.saturating_add(Weight::from_parts(0, 0))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -61,11 +61,11 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `175`
// Estimated: `9016`
// Minimum execution time: 14_000_000 picoseconds.
Weight::from_parts(13_873_591, 0)
// Minimum execution time: 40_189_000 picoseconds.
Weight::from_parts(40_826_395, 0)
.saturating_add(Weight::from_parts(0, 9016))
// Standard Error: 7_244
.saturating_add(Weight::from_parts(806_854, 0).saturating_mul(p.into()))
// Standard Error: 16_717
.saturating_add(Weight::from_parts(2_427_734, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -76,11 +76,11 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `289`
// Estimated: `9016`
// Minimum execution time: 14_000_000 picoseconds.
Weight::from_parts(14_228_563, 0)
// Minimum execution time: 41_635_000 picoseconds.
Weight::from_parts(42_559_132, 0)
.saturating_add(Weight::from_parts(0, 9016))
// Standard Error: 11_151
.saturating_add(Weight::from_parts(1_034_947, 0).saturating_mul(p.into()))
// Standard Error: 19_527
.saturating_add(Weight::from_parts(2_447_564, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -90,8 +90,8 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `289`
// Estimated: `9016`
// Minimum execution time: 15_000_000 picoseconds.
Weight::from_parts(16_000_000, 0)
// Minimum execution time: 43_117_000 picoseconds.
Weight::from_parts(43_972_000, 0)
.saturating_add(Weight::from_parts(0, 9016))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -106,13 +106,13 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `201 + q * (22 ±0)`
// Estimated: `23189`
// Minimum execution time: 20_000_000 picoseconds.
Weight::from_parts(17_931_683, 0)
// Minimum execution time: 59_181_000 picoseconds.
Weight::from_parts(52_554_909, 0)
.saturating_add(Weight::from_parts(0, 23189))
// Standard Error: 19_497
.saturating_add(Weight::from_parts(1_083_409, 0).saturating_mul(q.into()))
// Standard Error: 19_497
.saturating_add(Weight::from_parts(440_866, 0).saturating_mul(r.into()))
// Standard Error: 27_986
.saturating_add(Weight::from_parts(2_621_417, 0).saturating_mul(q.into()))
// Standard Error: 27_986
.saturating_add(Weight::from_parts(1_213_630, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -122,8 +122,8 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `317`
// Estimated: `23189`
// Minimum execution time: 16_000_000 picoseconds.
Weight::from_parts(17_000_000, 0)
// Minimum execution time: 48_869_000 picoseconds.
Weight::from_parts(49_821_000, 0)
.saturating_add(Weight::from_parts(0, 23189))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -138,13 +138,13 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `339 + q * (22 ±0)`
// Estimated: `23189`
// Minimum execution time: 26_000_000 picoseconds.
Weight::from_parts(14_935_193, 0)
// Minimum execution time: 75_749_000 picoseconds.
Weight::from_parts(47_859_866, 0)
.saturating_add(Weight::from_parts(0, 23189))
// Standard Error: 19_904
.saturating_add(Weight::from_parts(3_676_520, 0).saturating_mul(q.into()))
// Standard Error: 19_904
.saturating_add(Weight::from_parts(1_076_583, 0).saturating_mul(r.into()))
// Standard Error: 34_288
.saturating_add(Weight::from_parts(7_561_509, 0).saturating_mul(q.into()))
// Standard Error: 34_288
.saturating_add(Weight::from_parts(2_809_128, 0).saturating_mul(r.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -154,8 +154,8 @@ impl<T: frame_system::Config> pallet_sylo::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `276`
// Estimated: `23189`
// Minimum execution time: 15_000_000 picoseconds.
Weight::from_parts(16_000_000, 0)
// Minimum execution time: 43_446_000 picoseconds.
Weight::from_parts(44_252_000, 0)
.saturating_add(Weight::from_parts(0, 23189))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down

0 comments on commit 48c0995

Please sign in to comment.