Skip to content

Commit

Permalink
Update weights after running benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrylavrenov committed Mar 18, 2024
1 parent e28b705 commit ddaf6e6
Show file tree
Hide file tree
Showing 13 changed files with 412 additions and 258 deletions.
458 changes: 287 additions & 171 deletions crates/humanode-runtime/assets/benchmark.json

Large diffs are not rendered by default.

34 changes: 15 additions & 19 deletions crates/humanode-runtime/src/weights/frame_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,54 +17,50 @@ 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(356_000_000, 0)
Weight::from_parts(187_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(3_977_000_000, 0)
Weight::from_parts(4_035_000_000, 0)
}
fn set_heap_pages() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 4_000_000 picoseconds.
Weight::from_parts(4_000_000, 0)
// Minimum execution time: 3_000_000 picoseconds.
Weight::from_parts(3_000_000, 0)
.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: 82_797_000_000 picoseconds.
Weight::from_parts(82_797_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: 2_000_000 picoseconds.
Weight::from_parts(633_000_000, 0)
Weight::from_parts(623_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(496_000_000, 0)
// Minimum execution time: 2_000_000 picoseconds.
Weight::from_parts(547_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: 5_000_000 picoseconds.
Weight::from_parts(1_146_000_000, 0)
Weight::from_parts(1_329_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 @@ -8,6 +8,7 @@ pub mod pallet_bioauth;
pub mod pallet_evm_accounts_mapping;
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
28 changes: 14 additions & 14 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: 38_000_000 picoseconds.
Weight::from_parts(38_000_000, 0)
// Minimum execution time: 39_000_000 picoseconds.
Weight::from_parts(39_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: 21_000_000 picoseconds.
Weight::from_parts(21_000_000, 0)
// Minimum execution time: 23_000_000 picoseconds.
Weight::from_parts(23_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: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(10_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -51,26 +51,26 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `242`
// Estimated: `0`
// Minimum execution time: 39_000_000 picoseconds.
Weight::from_parts(39_000_000, 0)
// Minimum execution time: 43_000_000 picoseconds.
Weight::from_parts(43_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: 25_000_000 picoseconds.
Weight::from_parts(25_000_000, 0)
// Minimum execution time: 27_000_000 picoseconds.
Weight::from_parts(27_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn force_unreserve() -> Weight {
// Proof Size summary in bytes:
// Measured: `103`
// Estimated: `0`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(10_000_000, 0)
// Minimum execution time: 12_000_000 picoseconds.
Weight::from_parts(12_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -79,8 +79,8 @@ impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `0 + u * (135 ±0)`
// Estimated: `0`
// Minimum execution time: 11_000_000 picoseconds.
Weight::from_parts(8_381_000_000, 0)
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(8_893_000_000, 0)
.saturating_add(T::DbWeight::get().reads(1000))
.saturating_add(T::DbWeight::get().writes(1000))
}
Expand Down
14 changes: 7 additions & 7 deletions crates/humanode-runtime/src/weights/pallet_bioauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ impl<T: frame_system::Config> pallet_bioauth::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `183 + a * (40 ±0) + n * (19 ±0)`
// Estimated: `0`
// Minimum execution time: 154_000_000 picoseconds.
Weight::from_parts(154_000_000, 0)
// Standard Error: 40_799_410
.saturating_add(Weight::from_parts(32_248_192, 0).saturating_mul(a.into()))
// Standard Error: 4_078
.saturating_add(Weight::from_parts(113_249, 0).saturating_mul(n.into()))
// Minimum execution time: 121_000_000 picoseconds.
Weight::from_parts(121_000_000, 0)
// Standard Error: 4_071_928
.saturating_add(Weight::from_parts(1_149_918, 0).saturating_mul(a.into()))
// Standard Error: 407
.saturating_add(Weight::from_parts(112_393, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -41,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(116_000_000, 0)
Weight::from_parts(85_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: 54_000_000 picoseconds.
Weight::from_parts(54_000_000, 0)
// Minimum execution time: 53_000_000 picoseconds.
Weight::from_parts(53_000_000, 0)
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand Down
12 changes: 6 additions & 6 deletions crates/humanode-runtime/src/weights/pallet_im_online.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ impl<T: frame_system::Config> pallet_im_online::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `260 + k * (32 ±0)`
// Estimated: `0`
// Minimum execution time: 85_000_000 picoseconds.
Weight::from_parts(49_602_420, 0)
// Standard Error: 8_668
.saturating_add(Weight::from_parts(44_044, 0).saturating_mul(k.into()))
// Standard Error: 87_477
.saturating_add(Weight::from_parts(353_535, 0).saturating_mul(e.into()))
// Minimum execution time: 90_000_000 picoseconds.
Weight::from_parts(48_038_265, 0)
// Standard Error: 4_334
.saturating_add(Weight::from_parts(42_542, 0).saturating_mul(k.into()))
// Standard Error: 43_738
.saturating_add(Weight::from_parts(419_191, 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 @@ -26,39 +26,41 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Measured: `138 + s * (3 ±0)`
// Estimated: `0`
// Minimum execution time: 24_000_000 picoseconds.
Weight::from_parts(12_825_396, 0)
// Standard Error: 96_225
.saturating_add(Weight::from_parts(87_301, 0).saturating_mul(s.into()))
// Standard Error: 1_212
.saturating_add(Weight::from_parts(1_800, 0).saturating_mul(z.into()))
Weight::from_parts(19_428_571, 0)
// Standard Error: 6_873
.saturating_add(Weight::from_parts(35_714, 0).saturating_mul(s.into()))
// Standard Error: 86
.saturating_add(Weight::from_parts(1_350, 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]`.
/// 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(11_368_000, 0)
// Standard Error: 48_497
.saturating_add(Weight::from_parts(44_000, 0).saturating_mul(s.into()))
// Standard Error: 606
.saturating_add(Weight::from_parts(1_450, 0).saturating_mul(z.into()))
Weight::from_parts(4_712_000, 0)
// Standard Error: 27_712
.saturating_add(Weight::from_parts(96_000, 0).saturating_mul(s.into()))
// Standard Error: 346
.saturating_add(Weight::from_parts(1_800, 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]`.
fn as_multi_complete(s: u32, _z: u32, ) -> Weight {
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `281 + s * (34 ±0)`
// Estimated: `0`
// Minimum execution time: 34_000_000 picoseconds.
Weight::from_parts(34_730_158, 0)
// Standard Error: 123_717
.saturating_add(Weight::from_parts(134_920, 0).saturating_mul(s.into()))
// Minimum execution time: 28_000_000 picoseconds.
Weight::from_parts(18_349_206, 0)
// Standard Error: 20_619
.saturating_add(Weight::from_parts(75_396, 0).saturating_mul(s.into()))
// Standard Error: 259
.saturating_add(Weight::from_parts(1_450, 0).saturating_mul(z.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
Expand All @@ -67,8 +69,8 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `138 + s * (3 ±0)`
// Estimated: `0`
// Minimum execution time: 23_000_000 picoseconds.
Weight::from_parts(26_000_000, 0)
// Minimum execution time: 19_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 @@ -87,8 +89,8 @@ impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `345 + s * (2 ±0)`
// Estimated: `0`
// Minimum execution time: 21_000_000 picoseconds.
Weight::from_parts(31_000_000, 0)
// Minimum execution time: 20_000_000 picoseconds.
Weight::from_parts(26_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))
}
}
4 changes: 2 additions & 2 deletions crates/humanode-runtime/src/weights/pallet_timestamp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `278`
// Estimated: `0`
// Minimum execution time: 10_000_000 picoseconds.
Weight::from_parts(10_000_000, 0)
// Minimum execution time: 9_000_000 picoseconds.
Weight::from_parts(9_000_000, 0)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand Down
12 changes: 6 additions & 6 deletions crates/humanode-runtime/src/weights/pallet_token_claims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ impl<T: frame_system::Config> pallet_token_claims::WeightInfo for WeightInfo<T>
// Proof Size summary in bytes:
// Measured: `593`
// Estimated: `0`
// Minimum execution time: 99_000_000 picoseconds.
Weight::from_parts(99_000_000, 0)
// Minimum execution time: 87_000_000 picoseconds.
Weight::from_parts(87_000_000, 0)
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(5))
}
fn add_claim() -> Weight {
// Proof Size summary in bytes:
// Measured: `264`
// Estimated: `0`
// Minimum execution time: 31_000_000 picoseconds.
Weight::from_parts(31_000_000, 0)
// Minimum execution time: 26_000_000 picoseconds.
Weight::from_parts(26_000_000, 0)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(4))
}
fn remove_claim() -> Weight {
// Proof Size summary in bytes:
// Measured: `264`
// Estimated: `0`
// Minimum execution time: 27_000_000 picoseconds.
Weight::from_parts(27_000_000, 0)
// Minimum execution time: 25_000_000 picoseconds.
Weight::from_parts(25_000_000, 0)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(4))
}
Expand Down
Loading

0 comments on commit ddaf6e6

Please sign in to comment.