From cc566ac5490f56463a2031145e43df8932147dd8 Mon Sep 17 00:00:00 2001 From: Uncle Stretch Date: Thu, 6 Nov 2025 15:01:01 +0300 Subject: [PATCH] update weights for slow clap in casper runtime Signed-off-by: Uncle Stretch --- runtime/casper/Cargo.toml | 2 +- runtime/casper/src/weights/ghost_slow_clap.rs | 36 ++++++++++--------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/runtime/casper/Cargo.toml b/runtime/casper/Cargo.toml index bf56843..104bbe1 100644 --- a/runtime/casper/Cargo.toml +++ b/runtime/casper/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "casper-runtime" -version = "3.5.32" +version = "3.5.33" build = "build.rs" description = "Runtime of the Casper Network" edition.workspace = true diff --git a/runtime/casper/src/weights/ghost_slow_clap.rs b/runtime/casper/src/weights/ghost_slow_clap.rs index 6530833..2fe78ca 100644 --- a/runtime/casper/src/weights/ghost_slow_clap.rs +++ b/runtime/casper/src/weights/ghost_slow_clap.rs @@ -16,7 +16,7 @@ //! Autogenerated weights for `ghost_slow_clap` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 -//! DATE: 2025-06-19, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2025-11-06, 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 @@ -46,12 +46,12 @@ use core::marker::PhantomData; /// Weight functions for `ghost_slow_clap`. pub struct WeightInfo(PhantomData); impl ghost_slow_clap::WeightInfo for WeightInfo { - /// Storage: `GhostSlowClaps::Authorities` (r:1 w:0) - /// Proof: `GhostSlowClaps::Authorities` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostSlowClaps::ReceivedClaps` (r:1 w:1) /// Proof: `GhostSlowClaps::ReceivedClaps` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostSlowClaps::ClapsInSession` (r:1 w:1) /// Proof: `GhostSlowClaps::ClapsInSession` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostSlowClaps::Authorities` (r:1 w:0) + /// Proof: `GhostSlowClaps::Authorities` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostSlowClaps::ApplausesForTransaction` (r:1 w:1) /// Proof: `GhostSlowClaps::ApplausesForTransaction` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NullifyNeeded` (r:1 w:0) @@ -68,18 +68,20 @@ impl ghost_slow_clap::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn slow_clap() -> Weight { // Proof Size summary in bytes: - // Measured: `355` - // Estimated: `3820` - // Minimum execution time: 213_817_000 picoseconds. - Weight::from_parts(216_977_000, 0) - .saturating_add(Weight::from_parts(0, 3820)) + // Measured: `387` + // Estimated: `3852` + // Minimum execution time: 220_008_000 picoseconds. + Weight::from_parts(223_058_000, 0) + .saturating_add(Weight::from_parts(0, 3852)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(7)) } - /// Storage: `GhostSlowClaps::ReceivedClaps` (r:1 w:0) - /// Proof: `GhostSlowClaps::ReceivedClaps` (`max_values`: None, `max_size`: None, mode: `Measured`) - /// Storage: `GhostSlowClaps::Authorities` (r:1 w:0) + /// Storage: `GhostSlowClaps::Authorities` (r:2 w:0) /// Proof: `GhostSlowClaps::Authorities` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostSlowClaps::ReceivedClaps` (r:2 w:0) + /// Proof: `GhostSlowClaps::ReceivedClaps` (`max_values`: None, `max_size`: None, mode: `Measured`) + /// Storage: `GhostSlowClaps::ClapsInSession` (r:1 w:0) + /// Proof: `GhostSlowClaps::ClapsInSession` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostSlowClaps::ApplausesForTransaction` (r:1 w:1) /// Proof: `GhostSlowClaps::ApplausesForTransaction` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `GhostNetworks::NullifyNeeded` (r:1 w:0) @@ -96,12 +98,12 @@ impl ghost_slow_clap::WeightInfo for WeightInfo { /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) fn self_applause() -> Weight { // Proof Size summary in bytes: - // Measured: `655` - // Estimated: `4120` - // Minimum execution time: 210_676_000 picoseconds. - Weight::from_parts(212_905_000, 0) - .saturating_add(Weight::from_parts(0, 4120)) - .saturating_add(T::DbWeight::get().reads(9)) + // Measured: `861` + // Estimated: `6801` + // Minimum execution time: 258_510_000 picoseconds. + Weight::from_parts(262_353_000, 0) + .saturating_add(Weight::from_parts(0, 6801)) + .saturating_add(T::DbWeight::get().reads(12)) .saturating_add(T::DbWeight::get().writes(5)) } }