From d87184bbc2652741b6317b42a32b3e2cd82eba71 Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Thu, 19 Jun 2025 22:37:03 +0300 Subject: [PATCH] update weights for the ghost networks pallet Signed-off-by: Uncle Stretch --- pallets/networks/Cargo.toml | 2 +- pallets/networks/src/weights.rs | 262 ++++++++++++++++---------------- 2 files changed, 132 insertions(+), 132 deletions(-) diff --git a/pallets/networks/Cargo.toml b/pallets/networks/Cargo.toml index 13fae09..7bfa6d0 100644 --- a/pallets/networks/Cargo.toml +++ b/pallets/networks/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ghost-networks" -version = "0.1.9" +version = "0.1.10" license.workspace = true authors.workspace = true edition.workspace = true diff --git a/pallets/networks/src/weights.rs b/pallets/networks/src/weights.rs index ab3a6c1..889ae51 100644 --- a/pallets/networks/src/weights.rs +++ b/pallets/networks/src/weights.rs @@ -16,7 +16,7 @@ //! Autogenerated weights for `ghost_networks` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-06-18, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-06-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024 @@ -70,30 +70,30 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `i` is `[1, 20]`. /// The range of component `j` is `[1, 150]`. - fn register_network(i: u32, j: u32, ) -> Weight { + fn register_network(_i: u32, j: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3574` - // Minimum execution time: 43_624_000 picoseconds. - Weight::from_parts(44_945_690, 0) + // Minimum execution time: 43_753_000 picoseconds. + Weight::from_parts(45_805_520, 0) .saturating_add(Weight::from_parts(0, 3574)) - // Standard Error: 3_439 - .saturating_add(Weight::from_parts(15_557, 0).saturating_mul(i.into())) - // Standard Error: 450 - .saturating_add(Weight::from_parts(3_508, 0).saturating_mul(j.into())) + // Standard Error: 412 + .saturating_add(Weight::from_parts(1_586, 0).saturating_mul(j.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 20]`. - fn update_network_name(_n: u32, ) -> Weight { + fn update_network_name(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_741_000 picoseconds. - Weight::from_parts(50_426_703, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 49_412_000 picoseconds. + Weight::from_parts(50_617_210, 0) + .saturating_add(Weight::from_parts(0, 3766)) + // Standard Error: 3_074 + .saturating_add(Weight::from_parts(6_017, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -102,13 +102,13 @@ impl WeightInfo for SubstrateWeight { /// The range of component `n` is `[1, 150]`. fn update_network_endpoint(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 49_090_000 picoseconds. - Weight::from_parts(50_734_447, 0) - .saturating_add(Weight::from_parts(0, 3759)) - // Standard Error: 863 - .saturating_add(Weight::from_parts(786, 0).saturating_mul(n.into())) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 49_485_000 picoseconds. + Weight::from_parts(50_716_057, 0) + .saturating_add(Weight::from_parts(0, 3766)) + // Standard Error: 453 + .saturating_add(Weight::from_parts(4_916, 0).saturating_mul(n.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -116,11 +116,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_finality_delay() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_107_000 picoseconds. - Weight::from_parts(48_993_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_061_000 picoseconds. + Weight::from_parts(49_072_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -128,11 +128,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_rate_limit_delay() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_107_000 picoseconds. - Weight::from_parts(48_993_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 49_066_000 picoseconds. + Weight::from_parts(52_137_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -140,11 +140,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_block_distance() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_277_000 picoseconds. - Weight::from_parts(49_393_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_085_000 picoseconds. + Weight::from_parts(48_838_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -152,11 +152,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_type() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 47_642_000 picoseconds. - Weight::from_parts(49_212_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 47_872_000 picoseconds. + Weight::from_parts(48_972_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -164,11 +164,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_gatekeeper() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 49_440_000 picoseconds. - Weight::from_parts(50_315_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 50_029_000 picoseconds. + Weight::from_parts(50_768_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -176,11 +176,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_topic_name() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 49_469_000 picoseconds. - Weight::from_parts(50_532_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 50_151_000 picoseconds. + Weight::from_parts(51_573_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -188,11 +188,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_incoming_network_fee() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 47_858_000 picoseconds. - Weight::from_parts(48_703_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_017_000 picoseconds. + Weight::from_parts(49_513_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -200,11 +200,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_outgoing_network_fee() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 47_895_000 picoseconds. - Weight::from_parts(49_230_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_714_000 picoseconds. + Weight::from_parts(49_777_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -212,11 +212,11 @@ impl WeightInfo for SubstrateWeight { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_network() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 44_052_000 picoseconds. - Weight::from_parts(44_612_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 44_583_000 picoseconds. + Weight::from_parts(45_681_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) } @@ -227,30 +227,30 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `i` is `[1, 20]`. /// The range of component `j` is `[1, 150]`. - fn register_network(i: u32, j: u32, ) -> Weight { + fn register_network(_i: u32, j: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `109` // Estimated: `3574` - // Minimum execution time: 43_624_000 picoseconds. - Weight::from_parts(44_945_690, 0) + // Minimum execution time: 43_753_000 picoseconds. + Weight::from_parts(45_805_520, 0) .saturating_add(Weight::from_parts(0, 3574)) - // Standard Error: 3_439 - .saturating_add(Weight::from_parts(15_557, 0).saturating_mul(i.into())) - // Standard Error: 450 - .saturating_add(Weight::from_parts(3_508, 0).saturating_mul(j.into())) + // Standard Error: 412 + .saturating_add(Weight::from_parts(1_586, 0).saturating_mul(j.into())) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } /// Storage: `GhostNetworks::Networks` (r:1 w:1) /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) /// The range of component `n` is `[1, 20]`. - fn update_network_name(_n: u32, ) -> Weight { + fn update_network_name(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_741_000 picoseconds. - Weight::from_parts(50_426_703, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 49_412_000 picoseconds. + Weight::from_parts(50_617_210, 0) + .saturating_add(Weight::from_parts(0, 3766)) + // Standard Error: 3_074 + .saturating_add(Weight::from_parts(6_017, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -259,13 +259,13 @@ impl WeightInfo for () { /// The range of component `n` is `[1, 150]`. fn update_network_endpoint(n: u32, ) -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 49_090_000 picoseconds. - Weight::from_parts(50_734_447, 0) - .saturating_add(Weight::from_parts(0, 3759)) - // Standard Error: 863 - .saturating_add(Weight::from_parts(786, 0).saturating_mul(n.into())) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 49_485_000 picoseconds. + Weight::from_parts(50_716_057, 0) + .saturating_add(Weight::from_parts(0, 3766)) + // Standard Error: 453 + .saturating_add(Weight::from_parts(4_916, 0).saturating_mul(n.into())) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -273,11 +273,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_finality_delay() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_107_000 picoseconds. - Weight::from_parts(48_993_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_061_000 picoseconds. + Weight::from_parts(49_072_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -285,11 +285,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_rate_limit_delay() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_107_000 picoseconds. - Weight::from_parts(48_993_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 49_066_000 picoseconds. + Weight::from_parts(52_137_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -297,11 +297,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_block_distance() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 48_277_000 picoseconds. - Weight::from_parts(49_393_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_085_000 picoseconds. + Weight::from_parts(48_838_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -309,11 +309,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_type() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 47_642_000 picoseconds. - Weight::from_parts(49_212_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 47_872_000 picoseconds. + Weight::from_parts(48_972_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -321,11 +321,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_gatekeeper() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 49_440_000 picoseconds. - Weight::from_parts(50_315_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 50_029_000 picoseconds. + Weight::from_parts(50_768_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -333,11 +333,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_network_topic_name() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 49_469_000 picoseconds. - Weight::from_parts(50_532_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 50_151_000 picoseconds. + Weight::from_parts(51_573_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -345,11 +345,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_incoming_network_fee() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 47_858_000 picoseconds. - Weight::from_parts(48_703_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_017_000 picoseconds. + Weight::from_parts(49_513_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -357,11 +357,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn update_outgoing_network_fee() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 47_895_000 picoseconds. - Weight::from_parts(49_230_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 48_714_000 picoseconds. + Weight::from_parts(49_777_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) } @@ -369,11 +369,11 @@ impl WeightInfo for () { /// Proof: `GhostNetworks::Networks` (`max_values`: None, `max_size`: None, mode: `Measured`) fn remove_network() -> Weight { // Proof Size summary in bytes: - // Measured: `294` - // Estimated: `3759` - // Minimum execution time: 44_052_000 picoseconds. - Weight::from_parts(44_612_000, 0) - .saturating_add(Weight::from_parts(0, 3759)) + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 44_583_000 picoseconds. + Weight::from_parts(45_681_000, 0) + .saturating_add(Weight::from_parts(0, 3766)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) }