Skip to content

Commit

Permalink
benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ad96el committed Jan 17, 2025
1 parent f5f3a08 commit 1b7012a
Show file tree
Hide file tree
Showing 77 changed files with 5,588 additions and 5,000 deletions.
87 changes: 42 additions & 45 deletions runtimes/peregrine/src/weights/attestation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `attestation`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
//! DATE: 2024-06-20, 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: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
Expand All @@ -28,16 +28,13 @@
// ./target/release/kilt-parachain
// benchmark
// pallet
// --template=.maintain/runtime-weight-template.hbs
// --header=HEADER-GPL
// --wasm-execution=compiled
// --heap-pages=4096
// --steps=50
// --repeat=20
// --chain=dev
// --pallet=attestation
// --extrinsic=*
// --output=./runtimes/peregrine/src/weights/attestation.rs
// --header=HEADER-GPL
// --template=.maintain/runtime-weight-template.hbs
// --output=./runtimes/peregrine/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports)]
Expand All @@ -56,27 +53,27 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(319), added: 2794, mode: `MaxEncodedLen`)
/// Storage: `Migration::MigratedKeys` (r:0 w:1)
/// Proof: `Migration::MigratedKeys` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
fn add() -> Weight {
// Proof Size summary in bytes:
// Measured: `260`
// Estimated: `3660`
// Minimum execution time: 52_335_000 picoseconds.
Weight::from_parts(53_274_000, 0)
.saturating_add(Weight::from_parts(0, 3660))
// Measured: `296`
// Estimated: `3784`
// Minimum execution time: 53_374_000 picoseconds.
Weight::from_parts(54_584_000, 0)
.saturating_add(Weight::from_parts(0, 3784))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
}
/// Storage: `Attestation::Attestations` (r:1 w:1)
/// Proof: `Attestation::Attestations` (`max_values`: None, `max_size`: Some(195), added: 2670, mode: `MaxEncodedLen`)
fn revoke() -> Weight {
// Proof Size summary in bytes:
// Measured: `196`
// Measured: `233`
// Estimated: `3660`
// Minimum execution time: 14_393_000 picoseconds.
Weight::from_parts(14_731_000, 0)
// Minimum execution time: 15_313_000 picoseconds.
Weight::from_parts(15_725_000, 0)
.saturating_add(Weight::from_parts(0, 3660))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand All @@ -88,14 +85,14 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(319), added: 2794, mode: `MaxEncodedLen`)
fn remove() -> Weight {
// Proof Size summary in bytes:
// Measured: `437`
// Estimated: `3660`
// Minimum execution time: 47_894_000 picoseconds.
Weight::from_parts(48_491_000, 0)
.saturating_add(Weight::from_parts(0, 3660))
// Measured: `474`
// Estimated: `3784`
// Minimum execution time: 50_148_000 picoseconds.
Weight::from_parts(50_647_000, 0)
.saturating_add(Weight::from_parts(0, 3784))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -106,14 +103,14 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(319), added: 2794, mode: `MaxEncodedLen`)
fn reclaim_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `437`
// Estimated: `3660`
// Minimum execution time: 48_351_000 picoseconds.
Weight::from_parts(48_828_000, 0)
.saturating_add(Weight::from_parts(0, 3660))
// Measured: `474`
// Estimated: `3784`
// Minimum execution time: 50_415_000 picoseconds.
Weight::from_parts(50_796_000, 0)
.saturating_add(Weight::from_parts(0, 3784))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -124,14 +121,14 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:2 w:2)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(319), added: 2794, mode: `MaxEncodedLen`)
fn change_deposit_owner() -> Weight {
// Proof Size summary in bytes:
// Measured: `581`
// Estimated: `6326`
// Minimum execution time: 77_624_000 picoseconds.
Weight::from_parts(78_569_000, 0)
.saturating_add(Weight::from_parts(0, 6326))
// Measured: `618`
// Estimated: `6578`
// Minimum execution time: 83_269_000 picoseconds.
Weight::from_parts(84_088_000, 0)
.saturating_add(Weight::from_parts(0, 6578))
.saturating_add(T::DbWeight::get().reads(6))
.saturating_add(T::DbWeight::get().writes(5))
}
Expand All @@ -142,14 +139,14 @@ impl<T: frame_system::Config> attestation::WeightInfo for WeightInfo<T> {
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(132), added: 2607, mode: `MaxEncodedLen`)
/// Storage: `Balances::Holds` (r:1 w:1)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(193), added: 2668, mode: `MaxEncodedLen`)
/// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(319), added: 2794, mode: `MaxEncodedLen`)
fn update_deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `437`
// Estimated: `3660`
// Minimum execution time: 71_073_000 picoseconds.
Weight::from_parts(71_519_000, 0)
.saturating_add(Weight::from_parts(0, 3660))
// Measured: `474`
// Estimated: `3784`
// Minimum execution time: 73_306_000 picoseconds.
Weight::from_parts(73_956_000, 0)
.saturating_add(Weight::from_parts(0, 3784))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -166,7 +163,7 @@ mod tests {
.max_extrinsic
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
.proof_size()
> 3660
> 3784
);
}
#[test]
Expand All @@ -190,7 +187,7 @@ mod tests {
.max_extrinsic
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
.proof_size()
> 3660
> 3784
);
}
#[test]
Expand All @@ -202,7 +199,7 @@ mod tests {
.max_extrinsic
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
.proof_size()
> 3660
> 3784
);
}
#[test]
Expand All @@ -214,7 +211,7 @@ mod tests {
.max_extrinsic
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
.proof_size()
> 6326
> 6578
);
}
#[test]
Expand All @@ -226,7 +223,7 @@ mod tests {
.max_extrinsic
.unwrap_or_else(<sp_weights::Weight as sp_runtime::traits::Bounded>::max_value)
.proof_size()
> 3660
> 3784
);
}
}
21 changes: 9 additions & 12 deletions runtimes/peregrine/src/weights/ctype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `ctype`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
//! DATE: 2024-06-20, 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: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
Expand All @@ -28,16 +28,13 @@
// ./target/release/kilt-parachain
// benchmark
// pallet
// --template=.maintain/runtime-weight-template.hbs
// --header=HEADER-GPL
// --wasm-execution=compiled
// --heap-pages=4096
// --steps=50
// --repeat=20
// --chain=dev
// --pallet=ctype
// --extrinsic=*
// --output=./runtimes/peregrine/src/weights/ctype.rs
// --header=HEADER-GPL
// --template=.maintain/runtime-weight-template.hbs
// --output=./runtimes/peregrine/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports)]
Expand All @@ -58,11 +55,11 @@ impl<T: frame_system::Config> ctype::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `254`
// Estimated: `6204`
// Minimum execution time: 43_876_000 picoseconds.
Weight::from_parts(44_318_000, 0)
// Minimum execution time: 43_699_000 picoseconds.
Weight::from_parts(44_603_000, 0)
.saturating_add(Weight::from_parts(0, 6204))
// Standard Error: 0
.saturating_add(Weight::from_parts(1_566, 0).saturating_mul(l.into()))
.saturating_add(Weight::from_parts(1_568, 0).saturating_mul(l.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -72,8 +69,8 @@ impl<T: frame_system::Config> ctype::WeightInfo for WeightInfo<T> {
// Proof Size summary in bytes:
// Measured: `158`
// Estimated: `3553`
// Minimum execution time: 15_009_000 picoseconds.
Weight::from_parts(15_716_000, 0)
// Minimum execution time: 15_716_000 picoseconds.
Weight::from_parts(16_082_000, 0)
.saturating_add(Weight::from_parts(0, 3553))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
Expand Down
23 changes: 10 additions & 13 deletions runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
//! Autogenerated weights for `cumulus_pallet_parachain_system`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 33.0.0
//! DATE: 2024-06-20, 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: `eyrie-7`, CPU: `Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz`
//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
Expand All @@ -28,16 +28,13 @@
// ./target/release/kilt-parachain
// benchmark
// pallet
// --template=.maintain/runtime-weight-template.hbs
// --header=HEADER-GPL
// --wasm-execution=compiled
// --heap-pages=4096
// --steps=50
// --repeat=20
// --chain=dev
// --pallet=cumulus_pallet_parachain_system
// --pallet=cumulus-pallet-parachain-system
// --extrinsic=*
// --output=./runtimes/peregrine/src/weights/cumulus_pallet_parachain_system.rs
// --header=HEADER-GPL
// --template=.maintain/runtime-weight-template.hbs
// --output=./runtimes/peregrine/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_imports)]
Expand All @@ -62,13 +59,13 @@ impl<T: frame_system::Config> cumulus_pallet_parachain_system::WeightInfo for We
/// The range of component `n` is `[0, 1000]`.
fn enqueue_inbound_downward_messages(n: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `115`
// Measured: `151`
// Estimated: `3517`
// Minimum execution time: 1_841_000 picoseconds.
Weight::from_parts(1_928_000, 0)
// Minimum execution time: 3_093_000 picoseconds.
Weight::from_parts(3_232_000, 0)
.saturating_add(Weight::from_parts(0, 3517))
// Standard Error: 18_371
.saturating_add(Weight::from_parts(193_473_787, 0).saturating_mul(n.into()))
// Standard Error: 10_919
.saturating_add(Weight::from_parts(191_367_834, 0).saturating_mul(n.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(4))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
Expand Down
Loading

0 comments on commit 1b7012a

Please sign in to comment.