Skip to content

Commit

Permalink
chore: testnet weights
Browse files Browse the repository at this point in the history
  • Loading branch information
sander2 committed Jun 1, 2023
1 parent 8ebbe02 commit 36e4f3b
Show file tree
Hide file tree
Showing 38 changed files with 2,761 additions and 2,449 deletions.
2 changes: 1 addition & 1 deletion crates/democracy/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ pub mod benchmarks {

// This measures the path of `launch_next` public. Not currently used as we simply
// assume the weight is `MaxBlockWeight` when executing.
#[benchmark(extra)]
#[benchmark]
pub fn on_initialize_public(r: Linear<0, 99>) -> Result<(), BenchmarkError> {
for i in 0..r {
add_referendum::<T>(i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
//! Autogenerated weights for annuity
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-14, STEPS: `100`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-01, STEPS: `10`, REPEAT: `5`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `enterprise`, CPU: `Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-testnet-latest"), DB CACHE: 1024
//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/interbtc-parachain
// target/release/interbtc-parachain
// benchmark
// pallet
// --pallet
// annuity
// *
// --extrinsic
// *
// --chain
// interlay-testnet-latest
// kintsugi-dev
// --execution=wasm
// --wasm-execution=compiled
// --steps
// 100
// --repeat
// 10
// --repeat
// 5
// --output
// parachain/runtime/testnet-kintsugi/src/weights
// ../tmp-weight/
// --template
// .deploy/runtime-weight-template.hbs

Expand All @@ -37,18 +37,15 @@ use sp_std::marker::PhantomData;

/// Weights for annuity using the Substrate node and recommended hardware.
pub struct WeightInfo<T>(PhantomData<T>);

impl<T: frame_system::Config> annuity::WeightInfo for WeightInfo<T> {
/// Storage: EscrowAnnuity RewardPerBlock (r:1 w:0)
/// Proof: EscrowAnnuity RewardPerBlock (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: EscrowAnnuity RewardPerWrapped (r:1 w:0)
/// Proof: EscrowAnnuity RewardPerWrapped (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn on_initialize() -> Weight {

fn on_initialize () -> Weight {
// Proof Size summary in bytes:
// Measured: `989`
// Estimated: `1022`
// Minimum execution time: 21_743_000 picoseconds.
Weight::from_parts(23_933_000, 1022)
.saturating_add(T::DbWeight::get().reads(2_u64))
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 17_237_000 picoseconds.
Weight::from_parts(18_217_000, 0)
}
/// Storage: EscrowRewards Stake (r:1 w:0)
/// Proof: EscrowRewards Stake (max_values: None, max_size: Some(64), added: 2539, mode: MaxEncodedLen)
Expand All @@ -62,36 +59,30 @@ impl<T: frame_system::Config> annuity::WeightInfo for WeightInfo<T> {
/// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
fn withdraw_rewards() -> Weight {
fn withdraw_rewards () -> Weight {
// Proof Size summary in bytes:
// Measured: `2313`
// Estimated: `17940`
// Minimum execution time: 95_654_000 picoseconds.
Weight::from_parts(108_964_000, 17940)
// Measured: `747`
// Estimated: `23880`
// Minimum execution time: 154_871_000 picoseconds.
Weight::from_parts(171_710_000, 23880)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(4_u64))
}
/// Storage: Tokens Accounts (r:1 w:0)
/// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)
/// Storage: EscrowAnnuity RewardPerBlock (r:0 w:1)
/// Proof: EscrowAnnuity RewardPerBlock (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn update_rewards() -> Weight {
fn update_rewards () -> Weight {
// Proof Size summary in bytes:
// Measured: `1198`
// Estimated: `2590`
// Minimum execution time: 21_400_000 picoseconds.
Weight::from_parts(27_052_000, 2590)
// Measured: `319`
// Estimated: `3580`
// Minimum execution time: 27_859_000 picoseconds.
Weight::from_parts(32_587_000, 3580)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: EscrowAnnuity RewardPerWrapped (r:0 w:1)
/// Proof: EscrowAnnuity RewardPerWrapped (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_reward_per_wrapped() -> Weight {
fn set_reward_per_wrapped () -> Weight {
// Proof Size summary in bytes:
// Measured: `711`
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_127_000 picoseconds.
Weight::from_parts(12_527_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
// Minimum execution time: 10_992_000 picoseconds.
Weight::from_parts(12_035_000, 0)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
//! Autogenerated weights for annuity
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-14, STEPS: `100`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-01, STEPS: `10`, REPEAT: `5`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `enterprise`, CPU: `Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("interlay-testnet-latest"), DB CACHE: 1024
//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/interbtc-parachain
// target/release/interbtc-parachain
// benchmark
// pallet
// --pallet
// annuity
// *
// --extrinsic
// *
// --chain
// interlay-testnet-latest
// kintsugi-dev
// --execution=wasm
// --wasm-execution=compiled
// --steps
// 100
// --repeat
// 10
// --repeat
// 5
// --output
// parachain/runtime/testnet-kintsugi/src/weights
// ../tmp-weight/
// --template
// .deploy/runtime-weight-template.hbs

Expand All @@ -37,20 +37,17 @@ use sp_std::marker::PhantomData;

/// Weights for annuity using the Substrate node and recommended hardware.
pub struct WeightInfo<T>(PhantomData<T>);

impl<T: frame_system::Config> annuity::WeightInfo for WeightInfo<T> {
/// Storage: VaultAnnuity RewardPerBlock (r:1 w:0)
/// Proof: VaultAnnuity RewardPerBlock (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
/// Storage: VaultAnnuity RewardPerWrapped (r:1 w:0)
/// Proof: VaultAnnuity RewardPerWrapped (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn on_initialize() -> Weight {

fn on_initialize () -> Weight {
// Proof Size summary in bytes:
// Measured: `989`
// Estimated: `1022`
// Minimum execution time: 21_577_000 picoseconds.
Weight::from_parts(23_541_000, 1022)
.saturating_add(T::DbWeight::get().reads(2_u64))
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 17_984_000 picoseconds.
Weight::from_parts(20_888_000, 0)
}
fn withdraw_rewards() -> Weight {
fn withdraw_rewards () -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
Expand All @@ -59,25 +56,19 @@ impl<T: frame_system::Config> annuity::WeightInfo for WeightInfo<T> {
}
/// Storage: Tokens Accounts (r:1 w:0)
/// Proof: Tokens Accounts (max_values: None, max_size: Some(115), added: 2590, mode: MaxEncodedLen)
/// Storage: VaultAnnuity RewardPerBlock (r:0 w:1)
/// Proof: VaultAnnuity RewardPerBlock (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn update_rewards() -> Weight {
fn update_rewards () -> Weight {
// Proof Size summary in bytes:
// Measured: `1194`
// Estimated: `2590`
// Minimum execution time: 19_894_000 picoseconds.
Weight::from_parts(25_259_000, 2590)
// Measured: `319`
// Estimated: `3580`
// Minimum execution time: 27_434_000 picoseconds.
Weight::from_parts(28_780_000, 3580)
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: VaultAnnuity RewardPerWrapped (r:0 w:1)
/// Proof: VaultAnnuity RewardPerWrapped (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen)
fn set_reward_per_wrapped() -> Weight {
fn set_reward_per_wrapped () -> Weight {
// Proof Size summary in bytes:
// Measured: `711`
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_948_000 picoseconds.
Weight::from_parts(12_354_000, 0)
.saturating_add(T::DbWeight::get().writes(1_u64))
// Minimum execution time: 10_729_000 picoseconds.
Weight::from_parts(11_464_000, 0)
}
}
86 changes: 44 additions & 42 deletions parachain/runtime/testnet-kintsugi/src/weights/btc_relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,29 @@
//! Autogenerated weights for btc_relay
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-04-25, STEPS: `100`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-06-01, STEPS: `10`, REPEAT: `5`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `enterprise`, CPU: `Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-testnet-latest"), DB CACHE: 1024
//! HOSTNAME: `dev-benchmark`, CPU: `Intel(R) Xeon(R) CPU @ 2.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kintsugi-dev"), DB CACHE: 1024
// Executed Command:
// ./target/release/interbtc-parachain
// target/release/interbtc-parachain
// benchmark
// pallet
// --pallet
// btc-relay
// *
// --extrinsic
// *
// --chain
// kintsugi-testnet-latest
// kintsugi-dev
// --execution=wasm
// --wasm-execution=compiled
// --steps
// 100
// --repeat
// 10
// --repeat
// 5
// --output
// parachain/runtime/testnet-kintsugi/src/weights/
// ../tmp-weight/
// --template
// .deploy/runtime-weight-template.hbs

Expand All @@ -37,7 +37,9 @@ use sp_std::marker::PhantomData;

/// Weights for btc_relay using the Substrate node and recommended hardware.
pub struct WeightInfo<T>(PhantomData<T>);

impl<T: frame_system::Config> btc_relay::WeightInfo for WeightInfo<T> {

/// Storage: BTCRelay BestBlock (r:1 w:1)
/// Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: BTCRelay DisableDifficultyCheck (r:1 w:0)
Expand All @@ -58,12 +60,12 @@ impl<T: frame_system::Config> btc_relay::WeightInfo for WeightInfo<T> {
/// Proof: BTCRelay ChainsIndex (max_values: None, max_size: Some(32), added: 2507, mode: MaxEncodedLen)
/// Storage: BTCRelay BlockHeaders (r:0 w:1)
/// Proof: BTCRelay BlockHeaders (max_values: None, max_size: Some(200), added: 2675, mode: MaxEncodedLen)
fn initialize() -> Weight {
fn initialize () -> Weight {
// Proof Size summary in bytes:
// Measured: `1449`
// Estimated: `4520`
// Minimum execution time: 58_763_000 picoseconds.
Weight::from_parts(59_663_000, 4520)
// Measured: `430`
// Estimated: `9470`
// Minimum execution time: 86_952_000 picoseconds.
Weight::from_parts(89_803_000, 9470)
.saturating_add(T::DbWeight::get().reads(5_u64))
.saturating_add(T::DbWeight::get().writes(8_u64))
}
Expand All @@ -83,12 +85,12 @@ impl<T: frame_system::Config> btc_relay::WeightInfo for WeightInfo<T> {
/// Proof: BTCRelay BestBlock (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: BTCRelay BestBlockHeight (r:0 w:1)
/// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
fn store_block_header() -> Weight {
fn store_block_header () -> Weight {
// Proof Size summary in bytes:
// Measured: `1951`
// Estimated: `11898`
// Minimum execution time: 67_545_000 picoseconds.
Weight::from_parts(68_537_000, 11898)
// Measured: `901`
// Estimated: `17838`
// Minimum execution time: 105_838_000 picoseconds.
Weight::from_parts(118_428_000, 17838)
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().writes(5_u64))
}
Expand All @@ -109,14 +111,14 @@ impl<T: frame_system::Config> btc_relay::WeightInfo for WeightInfo<T> {
/// Storage: BTCRelay ChainsHashes (r:0 w:1)
/// Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// The range of component `f` is `[1, 6]`.
fn store_block_header_new_fork_sorted(f: u32, ) -> Weight {
fn store_block_header_new_fork_sorted (f: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1892 + f * (92 ±0)`
// Estimated: `9870 + f * (5006 ±0)`
// Minimum execution time: 81_260_000 picoseconds.
Weight::from_parts(71_683_199, 9870)
// Standard Error: 46_691
.saturating_add(Weight::from_parts(11_127_097, 0).saturating_mul(f.into()))
// Measured: `845 + f * (92 ±0)`
// Estimated: `16800 + f * (5006 ±0)`
// Minimum execution time: 126_540_000 picoseconds.
Weight::from_parts(133_244_957, 16800)
// Standard Error: 1_182_683
.saturating_add(Weight::from_parts(11_468_572, 0).saturating_mul(f.into()))
.saturating_add(T::DbWeight::get().reads(7_u64))
.saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(f.into())))
.saturating_add(T::DbWeight::get().writes(5_u64))
Expand All @@ -139,19 +141,19 @@ impl<T: frame_system::Config> btc_relay::WeightInfo for WeightInfo<T> {
/// Storage: BTCRelay ChainsHashes (r:0 w:1)
/// Proof: BTCRelay ChainsHashes (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
/// The range of component `f` is `[1, 6]`.
fn store_block_header_new_fork_unsorted(f: u32, ) -> Weight {
fn store_block_header_new_fork_unsorted (f: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `1971 + f * (98 ±0)`
// Estimated: `12911 + f * (2987 ±22)`
// Minimum execution time: 83_616_000 picoseconds.
Weight::from_parts(66_189_291, 12911)
// Standard Error: 210_135
.saturating_add(Weight::from_parts(16_131_889, 0).saturating_mul(f.into()))
// Measured: `935 + f * (83 ±0)`
// Estimated: `20002 + f * (2922 ±0)`
// Minimum execution time: 132_669_000 picoseconds.
Weight::from_parts(129_360_844, 20002)
// Standard Error: 760_775
.saturating_add(Weight::from_parts(15_106_910, 0).saturating_mul(f.into()))
.saturating_add(T::DbWeight::get().reads(8_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(f.into())))
.saturating_add(T::DbWeight::get().writes(4_u64))
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(f.into())))
.saturating_add(Weight::from_parts(0, 2987).saturating_mul(f.into()))
.saturating_add(Weight::from_parts(0, 2922).saturating_mul(f.into()))
}
/// Storage: BTCRelay ChainCounter (r:1 w:0)
/// Proof: BTCRelay ChainCounter (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
Expand All @@ -174,17 +176,17 @@ impl<T: frame_system::Config> btc_relay::WeightInfo for WeightInfo<T> {
/// Storage: BTCRelay BestBlockHeight (r:0 w:1)
/// Proof: BTCRelay BestBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
/// The range of component `f` is `[3, 6]`.
fn store_block_header_reorganize_chains(f: u32, ) -> Weight {
fn store_block_header_reorganize_chains (f: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `6532 + f * (199 ±0)`
// Estimated: `101752 + f * (1305 ±32)`
// Minimum execution time: 377_359_000 picoseconds.
Weight::from_parts(388_155_022, 101752)
// Standard Error: 591_983
.saturating_add(Weight::from_parts(10_309_741, 0).saturating_mul(f.into()))
// Measured: `4731 + f * (240 ±0)`
// Estimated: `108731 + f * (1562 ±132)`
// Minimum execution time: 669_071_000 picoseconds.
Weight::from_parts(626_541_708, 108731)
// Standard Error: 5_076_642
.saturating_add(Weight::from_parts(25_037_402, 0).saturating_mul(f.into()))
.saturating_add(T::DbWeight::get().reads(42_u64))
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(f.into())))
.saturating_add(T::DbWeight::get().writes(46_u64))
.saturating_add(Weight::from_parts(0, 1305).saturating_mul(f.into()))
.saturating_add(Weight::from_parts(0, 1562).saturating_mul(f.into()))
}
}
Loading

0 comments on commit 36e4f3b

Please sign in to comment.