Skip to content

Commit

Permalink
Rerun benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Oct 28, 2024
1 parent eaae24d commit ef07075
Show file tree
Hide file tree
Showing 15 changed files with 385 additions and 229 deletions.
400 changes: 258 additions & 142 deletions crates/humanode-runtime/assets/benchmark.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/humanode-runtime/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pub mod fees {
///
/// We compute the fee to weight multiplier based on the weight of the `balances.transfer` call,
/// and try to fit the fee such that a single transfer call costs ~0.1 HMND.
pub const WEIGHT_TO_FEE: Balance = 382_000_000;
pub const WEIGHT_TO_FEE: Balance = 385_000_000;

/// The multiplier to get the fee from length.
pub const LENGTH_TO_FEE: Balance = 1;
Expand Down
32 changes: 14 additions & 18 deletions crates/humanode-runtime/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(407_000_000, 0)
Weight::from_parts(316_000_000, 0)
}
/// The range of component `b` is `[0, 3932160]`.
fn remark_with_event(_b: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_118_000_000, 0)
Weight::from_parts(4_392_000_000, 0)
}
fn set_heap_pages() -> Weight {
// Proof Size summary in bytes:
Expand All @@ -36,35 +36,31 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: System Digest (r:1 w:1)
/// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: unknown `0x3a636f6465` (r:0 w:1)
/// Proof Skipped: unknown `0x3a636f6465` (r:0 w:1)
fn set_code() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `1485`
// Minimum execution time: 58_606_683_000 picoseconds.
Weight::from_parts(59_115_121_000, 1485)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 71_462_000_000 picoseconds.
Weight::from_parts(71_462_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
/// The range of component `i` is `[0, 1000]`.
fn set_storage(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_000_000 picoseconds.
Weight::from_parts(599_000_000, 0)
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(595_000_000, 0)
.saturating_add(T::DbWeight::get().writes(1000))
}
/// The range of component `i` is `[0, 1000]`.
fn kill_storage(_i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 1_000_000 picoseconds.
Weight::from_parts(498_000_000, 0)
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(635_000_000, 0)
.saturating_add(T::DbWeight::get().writes(1000))
}
/// The range of component `p` is `[0, 1000]`.
Expand All @@ -73,7 +69,7 @@ impl<T: frame_system::Config> frame_system::WeightInfo for WeightInfo<T> {
// Measured: `149 + p * (69 ±0)`
// Estimated: `0`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(1_160_000_000, 0)
Weight::from_parts(1_126_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1000))
.saturating_add(T::DbWeight::get().writes(1000))
}
Expand Down
1 change: 1 addition & 0 deletions crates/humanode-runtime/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub mod pallet_evm_accounts_mapping;
pub mod pallet_humanode_session;
pub mod pallet_im_online;
pub mod pallet_multisig;
pub mod pallet_sudo;
pub mod pallet_timestamp;
pub mod pallet_token_claims;
pub mod pallet_utility;
Expand Down
22 changes: 11 additions & 11 deletions crates/humanode-runtime/src/weights/pallet_balances.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `0`
// Minimum execution time: 37_000_000 picoseconds.
Weight::from_parts(37_000_000, 0)
// Minimum execution time: 35_000_000 picoseconds.
Weight::from_parts(35_000_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
fn transfer_keep_alive() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 22_000_000 picoseconds.
Weight::from_parts(22_000_000, 0)
// Minimum execution time: 20_000_000 picoseconds.
Weight::from_parts(20_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn force_set_balance_creating() -> Weight {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `0`
// Minimum execution time: 8_000_000 picoseconds.
Weight::from_parts(8_000_000, 0)
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -51,17 +51,17 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `242`
// Estimated: `0`
// Minimum execution time: 37_000_000 picoseconds.
Weight::from_parts(37_000_000, 0)
// Minimum execution time: 38_000_000 picoseconds.
Weight::from_parts(38_000_000, 0)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
fn transfer_all() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 24_000_000 picoseconds.
Weight::from_parts(24_000_000, 0)
// Minimum execution time: 25_000_000 picoseconds.
Weight::from_parts(25_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -80,7 +80,7 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Measured: `0 + u * (135 ±0)`
// Estimated: `0`
// Minimum execution time: 11_000_000 picoseconds.
Weight::from_parts(8_118_000_000, 0)
Weight::from_parts(8_072_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1000))
.saturating_add(T::DbWeight::get().writes(1000))
}
Expand Down
18 changes: 10 additions & 8 deletions crates/humanode-runtime/src/weights/pallet_bioauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,18 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_bioauth`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_bioauth::WeightInfo for WeightInfo<T> {
/// The range of component `n` is `[0, 30719999]`.
/// The range of component `a` is `[0, 3071]`.
fn authenticate(_a: u32, n: u32, ) -> Weight {
/// The range of component `n` is `[0, 30719999]`.
fn authenticate(a: u32, n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `183 + a * (40 ±0) + n * (19 ±0)`
// Estimated: `0`
// Minimum execution time: 120_000_000 picoseconds.
Weight::from_parts(186_224_999_944, 0)
// Standard Error: 2_501
.saturating_add(Weight::from_parts(108_802, 0).saturating_mul(n.into()))
// Minimum execution time: 119_000_000 picoseconds.
Weight::from_parts(119_000_000, 0)
// Standard Error: 37_557_371
.saturating_add(Weight::from_parts(9_494_887, 0).saturating_mul(a.into()))
// Standard Error: 3_754
.saturating_add(Weight::from_parts(105_457, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -29,7 +31,7 @@ impl<T: frame_system::Config> pallet_bioauth::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 3_000_000 picoseconds.
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(3_000_000, 0)
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -39,7 +41,7 @@ impl<T: frame_system::Config> pallet_bioauth::WeightInfo for WeightInfo<T> {
// Measured: `141 + a * (40 ±0)`
// Estimated: `0`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(96_000_000, 0)
Weight::from_parts(97_000_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ impl<T: frame_system::Config> pallet_evm_accounts_mapping::WeightInfo for Weight
// Proof Size summary in bytes:
// Measured: `132`
// Estimated: `0`
// Minimum execution time: 53_000_000 picoseconds.
Weight::from_parts(53_000_000, 0)
// Minimum execution time: 52_000_000 picoseconds.
Weight::from_parts(52_000_000, 0)
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl<T: frame_system::Config> pallet_humanode_session::WeightInfo for WeightInfo
// Measured: `233 + b * (32 ±0)`
// Estimated: `0`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(99_000_000, 0)
Weight::from_parts(95_000_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -26,8 +26,8 @@ impl<T: frame_system::Config> pallet_humanode_session::WeightInfo for WeightInfo
// Proof Size summary in bytes:
// Measured: `171 + b * (32 ±0)`
// Estimated: `0`
// Minimum execution time: 6_000_000 picoseconds.
Weight::from_parts(97_000_000, 0)
// Minimum execution time: 7_000_000 picoseconds.
Weight::from_parts(92_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
14 changes: 7 additions & 7 deletions crates/humanode-runtime/src/weights/pallet_im_online.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_im_online`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_im_online::WeightInfo for WeightInfo<T> {
/// The range of component `e` is `[1, 100]`.
/// The range of component `k` is `[1, 1000]`.
/// The range of component `e` is `[1, 100]`.
fn validate_unsigned_and_then_heartbeat(k: u32, e: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `260 + k * (32 ±0)`
// Estimated: `0`
// Minimum execution time: 86_000_000 picoseconds.
Weight::from_parts(53_120_165, 0)
// Standard Error: 25_139
.saturating_add(Weight::from_parts(51_551, 0).saturating_mul(k.into()))
// Standard Error: 253_684
.saturating_add(Weight::from_parts(328_282, 0).saturating_mul(e.into()))
// Minimum execution time: 83_000_000 picoseconds.
Weight::from_parts(53_651_014, 0)
// Standard Error: 26_006
.saturating_add(Weight::from_parts(56_056, 0).saturating_mul(k.into()))
// Standard Error: 262_431
.saturating_add(Weight::from_parts(292_929, 0).saturating_mul(e.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
42 changes: 22 additions & 20 deletions crates/humanode-runtime/src/weights/pallet_multisig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,50 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(17_000_000, 0)
Weight::from_parts(9_000_000, 0)
}
/// The range of component `z` is `[0, 10000]`.
/// The range of component `s` is `[2, 128]`.
/// The range of component `z` is `[0, 10000]`.
fn as_multi_create(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `138 + s * (3 ±0)`
// Estimated: `0`
// Minimum execution time: 24_000_000 picoseconds.
Weight::from_parts(19_428_571, 0)
Weight::from_parts(20_444_444, 0)
// Standard Error: 6_873
.saturating_add(Weight::from_parts(35_714, 0).saturating_mul(s.into()))
.saturating_add(Weight::from_parts(27_777, 0).saturating_mul(s.into()))
// Standard Error: 86
.saturating_add(Weight::from_parts(1_050, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `z` is `[0, 10000]`.
/// The range of component `s` is `[3, 128]`.
fn as_multi_approve(_s: u32, z: u32, ) -> Weight {
/// The range of component `z` is `[0, 10000]`.
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `248`
// Estimated: `0`
// Minimum execution time: 17_000_000 picoseconds.
Weight::from_parts(30_824_000, 0)
// Standard Error: 86
.saturating_add(Weight::from_parts(1_050, 0).saturating_mul(z.into()))
Weight::from_parts(12_904_000, 0)
// Standard Error: 0
.saturating_add(Weight::from_parts(32_000, 0).saturating_mul(s.into()))
// Standard Error: 0
.saturating_add(Weight::from_parts(1_000, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// The range of component `s` is `[2, 128]`.
/// The range of component `z` is `[0, 10000]`.
/// The range of component `s` is `[2, 128]`.
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `281 + s * (34 ±0)`
// Estimated: `0`
// Minimum execution time: 29_000_000 picoseconds.
Weight::from_parts(22_396_825, 0)
// Standard Error: 6_873
.saturating_add(Weight::from_parts(51_587, 0).saturating_mul(s.into()))
// Standard Error: 86
.saturating_add(Weight::from_parts(950, 0).saturating_mul(z.into()))
// Minimum execution time: 28_000_000 picoseconds.
Weight::from_parts(13_269_841, 0)
// Standard Error: 75_605
.saturating_add(Weight::from_parts(115_079, 0).saturating_mul(s.into()))
// Standard Error: 952
.saturating_add(Weight::from_parts(1_950, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -68,7 +70,7 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Measured: `138 + s * (3 ±0)`
// Estimated: `0`
// Minimum execution time: 19_000_000 picoseconds.
Weight::from_parts(25_000_000, 0)
Weight::from_parts(24_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -77,8 +79,8 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `248`
// Estimated: `0`
// Minimum execution time: 11_000_000 picoseconds.
Weight::from_parts(17_000_000, 0)
// Minimum execution time: 12_000_000 picoseconds.
Weight::from_parts(16_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -88,7 +90,7 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Measured: `345 + s * (2 ±0)`
// Estimated: `0`
// Minimum execution time: 21_000_000 picoseconds.
Weight::from_parts(24_000_000, 0)
Weight::from_parts(25_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
39 changes: 39 additions & 0 deletions crates/humanode-runtime/src/weights/pallet_sudo.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// DO NOT EDIT!
//! Autogenerated weights for `pallet_sudo`

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;

/// Weight functions for `pallet_sudo`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_sudo::WeightInfo for WeightInfo<T> {
fn set_key() -> Weight {
// Proof Size summary in bytes:
// Measured: `132`
// Estimated: `0`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn sudo() -> Weight {
// Proof Size summary in bytes:
// Measured: `132`
// Estimated: `0`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
}
fn sudo_as() -> Weight {
// Proof Size summary in bytes:
// Measured: `132`
// Estimated: `0`
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
}
}
Loading

0 comments on commit ef07075

Please sign in to comment.