Skip to content

Commit

Permalink
rebenchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
Roznovjak committed Jan 9, 2025
1 parent 1c3699b commit 153c4b7
Show file tree
Hide file tree
Showing 77 changed files with 3,686 additions and 4,254 deletions.
71 changes: 20 additions & 51 deletions pallets/asset-registry/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// This file is part of HydraDX.

// Copyright (C) 2020-2023 Intergalactic, Limited (GIB).
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


//! Autogenerated weights for `pallet_asset_registry`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-09-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// target/release/hydradx
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --wasm-execution=compiled
// --pallet=pallet-asset-registry
// --extrinsic=*
// --template=scripts/pallet-weight-template.hbs
// --output=./weights/pallet_asset_registry.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
Expand Down Expand Up @@ -64,16 +25,20 @@ impl WeightInfo for () {
/// Proof: `AssetRegistry::AssetIds` (`max_values`: None, `max_size`: Some(53), added: 2528, mode: `MaxEncodedLen`)
/// Storage: `AssetRegistry::LocationAssets` (r:1 w:1)
/// Proof: `AssetRegistry::LocationAssets` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`)
/// Storage: `EVM::AccountCodesMetadata` (r:0 w:1)
/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountCodes` (r:0 w:1)
/// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetRegistry::AssetLocations` (r:0 w:1)
/// Proof: `AssetRegistry::AssetLocations` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`)
fn register() -> Weight {
// Proof Size summary in bytes:
// Measured: `388`
// Estimated: `4087`
// Minimum execution time: 33_913_000 picoseconds.
Weight::from_parts(34_365_000, 4087)
// Minimum execution time: 46_614_000 picoseconds.
Weight::from_parts(46_973_000, 4087)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `AssetRegistry::Assets` (r:1 w:1)
/// Proof: `AssetRegistry::Assets` (`max_values`: None, `max_size`: Some(125), added: 2600, mode: `MaxEncodedLen`)
Expand All @@ -87,15 +52,19 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `617`
// Estimated: `4087`
// Minimum execution time: 41_632_000 picoseconds.
Weight::from_parts(42_099_000, 4087)
// Minimum execution time: 48_110_000 picoseconds.
Weight::from_parts(48_686_000, 4087)
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(5_u64))
}
/// Storage: `AssetRegistry::NextAssetId` (r:1 w:1)
/// Proof: `AssetRegistry::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
/// Storage: `AssetRegistry::LocationAssets` (r:1 w:1)
/// Proof: `AssetRegistry::LocationAssets` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`)
/// Storage: `EVM::AccountCodesMetadata` (r:0 w:1)
/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountCodes` (r:0 w:1)
/// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `AssetRegistry::AssetLocations` (r:0 w:1)
/// Proof: `AssetRegistry::AssetLocations` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`)
/// Storage: `AssetRegistry::Assets` (r:0 w:1)
Expand All @@ -104,10 +73,10 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `301`
// Estimated: `4087`
// Minimum execution time: 24_252_000 picoseconds.
Weight::from_parts(24_741_000, 4087)
// Minimum execution time: 35_103_000 picoseconds.
Weight::from_parts(35_530_000, 4087)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(4_u64))
.saturating_add(RocksDbWeight::get().writes(6_u64))
}
/// Storage: `AssetRegistry::Assets` (r:1 w:0)
/// Proof: `AssetRegistry::Assets` (`max_values`: None, `max_size`: Some(125), added: 2600, mode: `MaxEncodedLen`)
Expand All @@ -117,8 +86,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `427`
// Estimated: `3590`
// Minimum execution time: 17_713_000 picoseconds.
Weight::from_parts(17_997_000, 3590)
// Minimum execution time: 22_926_000 picoseconds.
Weight::from_parts(23_349_000, 3590)
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand All @@ -128,8 +97,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `320`
// Estimated: `3485`
// Minimum execution time: 14_812_000 picoseconds.
Weight::from_parts(15_117_000, 3485)
// Minimum execution time: 19_167_000 picoseconds.
Weight::from_parts(19_460_000, 3485)
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
Expand Down
61 changes: 13 additions & 48 deletions pallets/bonds/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// This file is part of HydraDX.

// Copyright (C) 2020-2023 Intergalactic, Limited (GIB).
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


//! Autogenerated weights for `pallet_bonds`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-09-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// target/release/hydradx
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --wasm-execution=compiled
// --pallet=pallet-bonds
// --extrinsic=*
// --template=scripts/pallet-weight-template.hbs
// --output=./weights/pallet_bonds.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
Expand Down Expand Up @@ -86,25 +47,29 @@ impl WeightInfo for () {
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `MultiTransactionPayment::AcceptedCurrencies` (r:1 w:0)
/// Proof: `MultiTransactionPayment::AcceptedCurrencies` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `EVM::AccountCodesMetadata` (r:0 w:1)
/// Proof: `EVM::AccountCodesMetadata` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `EVM::AccountCodes` (r:0 w:1)
/// Proof: `EVM::AccountCodes` (`max_values`: None, `max_size`: None, mode: `Measured`)
/// Storage: `Bonds::Bonds` (r:0 w:1)
/// Proof: `Bonds::Bonds` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
fn issue() -> Weight {
// Proof Size summary in bytes:
// Measured: `1393`
// Measured: `1459`
// Estimated: `8799`
// Minimum execution time: 238_932_000 picoseconds.
Weight::from_parts(240_147_000, 8799)
// Minimum execution time: 266_962_000 picoseconds.
Weight::from_parts(268_610_000, 8799)
.saturating_add(RocksDbWeight::get().reads(16_u64))
.saturating_add(RocksDbWeight::get().writes(12_u64))
.saturating_add(RocksDbWeight::get().writes(14_u64))
}
/// Storage: `Bonds::Bonds` (r:1 w:0)
/// Proof: `Bonds::Bonds` (`max_values`: None, `max_size`: Some(32), added: 2507, mode: `MaxEncodedLen`)
/// Storage: `Timestamp::Now` (r:1 w:0)
/// Proof: `Timestamp::Now` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
/// Storage: `Tokens::Accounts` (r:1 w:1)
/// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
/// Storage: `AssetRegistry::Assets` (r:1 w:0)
/// Proof: `AssetRegistry::Assets` (`max_values`: None, `max_size`: Some(125), added: 2600, mode: `MaxEncodedLen`)
/// Storage: `Tokens::Accounts` (r:1 w:1)
/// Proof: `Tokens::Accounts` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
/// Storage: `Tokens::TotalIssuance` (r:1 w:1)
/// Proof: `Tokens::TotalIssuance` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
/// Storage: `System::Account` (r:3 w:3)
Expand All @@ -121,10 +86,10 @@ impl WeightInfo for () {
/// Proof: `Balances::Freezes` (`max_values`: None, `max_size`: Some(49), added: 2524, mode: `MaxEncodedLen`)
fn redeem() -> Weight {
// Proof Size summary in bytes:
// Measured: `2018`
// Measured: `2084`
// Estimated: `8799`
// Minimum execution time: 180_029_000 picoseconds.
Weight::from_parts(181_146_000, 8799)
// Minimum execution time: 198_931_000 picoseconds.
Weight::from_parts(200_162_000, 8799)
.saturating_add(RocksDbWeight::get().reads(13_u64))
.saturating_add(RocksDbWeight::get().writes(7_u64))
}
Expand Down
89 changes: 25 additions & 64 deletions pallets/circuit-breaker/src/weights.rs
Original file line number Diff line number Diff line change
@@ -1,42 +1,3 @@
// This file is part of HydraDX.

// Copyright (C) 2020-2023 Intergalactic, Limited (GIB).
// SPDX-License-Identifier: Apache-2.0

// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.


//! Autogenerated weights for `pallet_circuit_breaker`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
//! DATE: 2024-09-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bench-bot`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
// Executed Command:
// target/release/hydradx
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --wasm-execution=compiled
// --pallet=pallet-circuit-breaker
// --extrinsic=*
// --template=scripts/pallet-weight-template.hbs
// --output=./weights/pallet_circuit_breaker.rs

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
Expand Down Expand Up @@ -64,48 +25,48 @@ pub trait WeightInfo {

// For backwards compatibility and tests
impl WeightInfo for () {
/// The range of component `n` is `[0, 400]`.
/// The range of component `n` is `[0, 400]`.
/// The range of component `m` is `[0, 400]`.
fn on_finalize(n: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `64 + m * (113 ±0) + n * (56 ±0)`
// Estimated: `0`
// Minimum execution time: 316_267_000 picoseconds.
Weight::from_parts(317_103_000, 0)
// Standard Error: 9_174
.saturating_add(Weight::from_parts(277_948, 0).saturating_mul(n.into()))
// Standard Error: 9_174
.saturating_add(Weight::from_parts(1_071_388, 0).saturating_mul(m.into()))
// Minimum execution time: 382_902_000 picoseconds.
Weight::from_parts(384_768_000, 0)
// Standard Error: 11_644
.saturating_add(Weight::from_parts(337_059, 0).saturating_mul(n.into()))
// Standard Error: 11_644
.saturating_add(Weight::from_parts(1_228_732, 0).saturating_mul(m.into()))
}
fn on_finalize_single_liquidity_limit_entry() -> Weight {
// Proof Size summary in bytes:
// Measured: `208`
// Estimated: `0`
// Minimum execution time: 8_606_000 picoseconds.
Weight::from_parts(8_803_000, 0)
// Minimum execution time: 8_784_000 picoseconds.
Weight::from_parts(8_921_000, 0)
}
fn on_finalize_single_trade_limit_entry() -> Weight {
// Proof Size summary in bytes:
// Measured: `208`
// Estimated: `0`
// Minimum execution time: 8_600_000 picoseconds.
Weight::from_parts(8_907_000, 0)
// Minimum execution time: 8_748_000 picoseconds.
Weight::from_parts(8_886_000, 0)
}
fn on_finalize_empty() -> Weight {
// Proof Size summary in bytes:
// Measured: `208`
// Estimated: `0`
// Minimum execution time: 8_524_000 picoseconds.
Weight::from_parts(8_933_000, 0)
// Minimum execution time: 8_809_000 picoseconds.
Weight::from_parts(8_951_000, 0)
}
/// Storage: `CircuitBreaker::TradeVolumeLimitPerAsset` (r:0 w:1)
/// Proof: `CircuitBreaker::TradeVolumeLimitPerAsset` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
fn set_trade_volume_limit() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 9_168_000 picoseconds.
Weight::from_parts(9_490_000, 0)
// Minimum execution time: 10_099_000 picoseconds.
Weight::from_parts(10_316_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `CircuitBreaker::LiquidityAddLimitPerAsset` (r:0 w:1)
Expand All @@ -114,8 +75,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_747_000 picoseconds.
Weight::from_parts(9_167_000, 0)
// Minimum execution time: 10_077_000 picoseconds.
Weight::from_parts(10_248_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `CircuitBreaker::LiquidityRemoveLimitPerAsset` (r:0 w:1)
Expand All @@ -124,8 +85,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 8_922_000 picoseconds.
Weight::from_parts(9_161_000, 0)
// Minimum execution time: 10_037_000 picoseconds.
Weight::from_parts(10_242_000, 0)
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: `CircuitBreaker::LiquidityAddLimitPerAsset` (r:1 w:0)
Expand All @@ -140,8 +101,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `262`
// Estimated: `3517`
// Minimum execution time: 20_217_000 picoseconds.
Weight::from_parts(20_416_000, 3517)
// Minimum execution time: 22_877_000 picoseconds.
Weight::from_parts(23_259_000, 3517)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
Expand All @@ -157,8 +118,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `208`
// Estimated: `3517`
// Minimum execution time: 17_362_000 picoseconds.
Weight::from_parts(17_585_000, 3517)
// Minimum execution time: 19_486_000 picoseconds.
Weight::from_parts(19_647_000, 3517)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
Expand All @@ -170,8 +131,8 @@ impl WeightInfo for () {
// Proof Size summary in bytes:
// Measured: `208`
// Estimated: `6076`
// Minimum execution time: 17_624_000 picoseconds.
Weight::from_parts(17_932_000, 6076)
// Minimum execution time: 19_731_000 picoseconds.
Weight::from_parts(19_901_000, 6076)
.saturating_add(RocksDbWeight::get().reads(4_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
Expand Down
Loading

0 comments on commit 153c4b7

Please sign in to comment.