Skip to content

Commit

Permalink
updagte zenlink benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Georgi Zlatarev <georgi.zlatarev@manta.network>
  • Loading branch information
ghzlatarev committed Jul 11, 2023
1 parent daa63bf commit 35075ed
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 106 deletions.
106 changes: 53 additions & 53 deletions runtime/calamari/src/weights/zenlink_protocol.rs
Expand Up @@ -17,7 +17,7 @@
//! Autogenerated weights for zenlink_protocol
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-07-07, STEPS: `50`, REPEAT: 40, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-07-11, STEPS: `50`, REPEAT: 40, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("/home/runner/runners/2.280.1/_work/Manta/Manta/tests/data/fork.json"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -66,15 +66,15 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T> {
// Storage: ZenlinkProtocol FeeMeta (r:1 w:1)
fn set_fee_receiver() -> Weight {
// Minimum execution time: 7_870 nanoseconds.
Weight::from_ref_time(8_202_000)
// Minimum execution time: 7_753 nanoseconds.
Weight::from_ref_time(8_045_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: ZenlinkProtocol FeeMeta (r:1 w:1)
fn set_fee_point() -> Weight {
// Minimum execution time: 7_468 nanoseconds.
Weight::from_ref_time(7_732_000)
// Minimum execution time: 7_232 nanoseconds.
Weight::from_ref_time(7_540_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
Expand All @@ -83,17 +83,17 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol LiquidityPairs (r:0 w:1)
fn create_pair() -> Weight {
// Minimum execution time: 40_796 nanoseconds.
Weight::from_ref_time(42_016_000)
// Minimum execution time: 29_470 nanoseconds.
Weight::from_ref_time(32_130_000)
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapLimits (r:0 w:1)
// Storage: ZenlinkProtocol BootstrapRewards (r:0 w:1)
fn bootstrap_create() -> Weight {
// Minimum execution time: 24_286 nanoseconds.
Weight::from_ref_time(25_607_000)
// Minimum execution time: 22_982 nanoseconds.
Weight::from_ref_time(25_660_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -103,8 +103,8 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapPersonalSupply (r:1 w:1)
fn bootstrap_contribute() -> Weight {
// Minimum execution time: 65_180 nanoseconds.
Weight::from_ref_time(69_190_000)
// Minimum execution time: 64_517 nanoseconds.
Weight::from_ref_time(65_317_000)
.saturating_add(T::DbWeight::get().reads(8))
.saturating_add(T::DbWeight::get().writes(6))
}
Expand All @@ -123,8 +123,8 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: ZenlinkProtocol ForeignLedger (r:2 w:2)
// Storage: AssetManager AssetIdMetadata (r:0 w:4)
fn bootstrap_claim() -> Weight {
// Minimum execution time: 253_274 nanoseconds.
Weight::from_ref_time(266_628_000)
// Minimum execution time: 253_726 nanoseconds.
Weight::from_ref_time(256_141_000)
.saturating_add(T::DbWeight::get().reads(24))
.saturating_add(T::DbWeight::get().writes(20))
}
Expand All @@ -142,17 +142,17 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: ZenlinkProtocol LiquidityPairs (r:0 w:1)
// Storage: ZenlinkProtocol BootstrapEndStatus (r:0 w:1)
fn bootstrap_end() -> Weight {
// Minimum execution time: 227_976 nanoseconds.
Weight::from_ref_time(243_089_000)
// Minimum execution time: 230_524 nanoseconds.
Weight::from_ref_time(233_518_000)
.saturating_add(T::DbWeight::get().reads(23))
.saturating_add(T::DbWeight::get().writes(32))
}
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapRewards (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapLimits (r:0 w:1)
fn bootstrap_update() -> Weight {
// Minimum execution time: 29_541 nanoseconds.
Weight::from_ref_time(31_770_000)
// Minimum execution time: 31_760 nanoseconds.
Weight::from_ref_time(32_326_000)
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(3))
}
Expand All @@ -161,8 +161,8 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: ZenlinkProtocol ForeignLedger (r:4 w:4)
fn bootstrap_refund() -> Weight {
// Minimum execution time: 65_667 nanoseconds.
Weight::from_ref_time(69_653_000)
// Minimum execution time: 64_871 nanoseconds.
Weight::from_ref_time(70_596_000)
.saturating_add(T::DbWeight::get().reads(7))
.saturating_add(T::DbWeight::get().writes(6))
}
Expand All @@ -180,8 +180,8 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: AssetManager AssetIdMetadata (r:0 w:5)
// Storage: AssetManager AssetIdLocation (r:0 w:3)
fn add_liquidity() -> Weight {
// Minimum execution time: 236_324 nanoseconds.
Weight::from_ref_time(249_001_000)
// Minimum execution time: 238_430 nanoseconds.
Weight::from_ref_time(259_648_000)
.saturating_add(T::DbWeight::get().reads(25))
.saturating_add(T::DbWeight::get().writes(29))
}
Expand All @@ -198,26 +198,26 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
// Storage: Assets Account (r:1 w:1)
// Storage: AssetManager AssetIdMetadata (r:0 w:2)
fn remove_liquidity() -> Weight {
// Minimum execution time: 174_439 nanoseconds.
Weight::from_ref_time(185_116_000)
// Minimum execution time: 174_527 nanoseconds.
Weight::from_ref_time(176_416_000)
.saturating_add(T::DbWeight::get().reads(19))
.saturating_add(T::DbWeight::get().writes(14))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: ZenlinkProtocol ForeignLedger (r:6 w:6)
// Storage: ZenlinkProtocol PairStatuses (r:2 w:0)
fn swap_exact_assets_for_assets() -> Weight {
// Minimum execution time: 102_445 nanoseconds.
Weight::from_ref_time(103_807_000)
// Minimum execution time: 102_847 nanoseconds.
Weight::from_ref_time(103_961_000)
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(6))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: ZenlinkProtocol ForeignLedger (r:6 w:6)
// Storage: ZenlinkProtocol PairStatuses (r:2 w:0)
fn swap_assets_for_exact_assets() -> Weight {
// Minimum execution time: 102_448 nanoseconds.
Weight::from_ref_time(103_698_000)
// Minimum execution time: 102_805 nanoseconds.
Weight::from_ref_time(104_156_000)
.saturating_add(T::DbWeight::get().reads(9))
.saturating_add(T::DbWeight::get().writes(6))
}
Expand All @@ -227,15 +227,15 @@ impl<T: frame_system::Config> zenlink_protocol::WeightInfo for SubstrateWeight<T
impl WeightInfo for () {
// Storage: ZenlinkProtocol FeeMeta (r:1 w:1)
fn set_fee_receiver() -> Weight {
// Minimum execution time: 7_870 nanoseconds.
Weight::from_ref_time(8_202_000)
// Minimum execution time: 7_753 nanoseconds.
Weight::from_ref_time(8_045_000)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
// Storage: ZenlinkProtocol FeeMeta (r:1 w:1)
fn set_fee_point() -> Weight {
// Minimum execution time: 7_468 nanoseconds.
Weight::from_ref_time(7_732_000)
// Minimum execution time: 7_232 nanoseconds.
Weight::from_ref_time(7_540_000)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(1))
}
Expand All @@ -244,17 +244,17 @@ impl WeightInfo for () {
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol LiquidityPairs (r:0 w:1)
fn create_pair() -> Weight {
// Minimum execution time: 40_796 nanoseconds.
Weight::from_ref_time(42_016_000)
// Minimum execution time: 29_470 nanoseconds.
Weight::from_ref_time(32_130_000)
.saturating_add(RocksDbWeight::get().reads(3))
.saturating_add(RocksDbWeight::get().writes(2))
}
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapLimits (r:0 w:1)
// Storage: ZenlinkProtocol BootstrapRewards (r:0 w:1)
fn bootstrap_create() -> Weight {
// Minimum execution time: 24_286 nanoseconds.
Weight::from_ref_time(25_607_000)
// Minimum execution time: 22_982 nanoseconds.
Weight::from_ref_time(25_660_000)
.saturating_add(RocksDbWeight::get().reads(1))
.saturating_add(RocksDbWeight::get().writes(3))
}
Expand All @@ -264,8 +264,8 @@ impl WeightInfo for () {
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapPersonalSupply (r:1 w:1)
fn bootstrap_contribute() -> Weight {
// Minimum execution time: 65_180 nanoseconds.
Weight::from_ref_time(69_190_000)
// Minimum execution time: 64_517 nanoseconds.
Weight::from_ref_time(65_317_000)
.saturating_add(RocksDbWeight::get().reads(8))
.saturating_add(RocksDbWeight::get().writes(6))
}
Expand All @@ -284,8 +284,8 @@ impl WeightInfo for () {
// Storage: ZenlinkProtocol ForeignLedger (r:2 w:2)
// Storage: AssetManager AssetIdMetadata (r:0 w:4)
fn bootstrap_claim() -> Weight {
// Minimum execution time: 253_274 nanoseconds.
Weight::from_ref_time(266_628_000)
// Minimum execution time: 253_726 nanoseconds.
Weight::from_ref_time(256_141_000)
.saturating_add(RocksDbWeight::get().reads(24))
.saturating_add(RocksDbWeight::get().writes(20))
}
Expand All @@ -303,17 +303,17 @@ impl WeightInfo for () {
// Storage: ZenlinkProtocol LiquidityPairs (r:0 w:1)
// Storage: ZenlinkProtocol BootstrapEndStatus (r:0 w:1)
fn bootstrap_end() -> Weight {
// Minimum execution time: 227_976 nanoseconds.
Weight::from_ref_time(243_089_000)
// Minimum execution time: 230_524 nanoseconds.
Weight::from_ref_time(233_518_000)
.saturating_add(RocksDbWeight::get().reads(23))
.saturating_add(RocksDbWeight::get().writes(32))
}
// Storage: ZenlinkProtocol PairStatuses (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapRewards (r:1 w:1)
// Storage: ZenlinkProtocol BootstrapLimits (r:0 w:1)
fn bootstrap_update() -> Weight {
// Minimum execution time: 29_541 nanoseconds.
Weight::from_ref_time(31_770_000)
// Minimum execution time: 31_760 nanoseconds.
Weight::from_ref_time(32_326_000)
.saturating_add(RocksDbWeight::get().reads(2))
.saturating_add(RocksDbWeight::get().writes(3))
}
Expand All @@ -322,8 +322,8 @@ impl WeightInfo for () {
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: ZenlinkProtocol ForeignLedger (r:4 w:4)
fn bootstrap_refund() -> Weight {
// Minimum execution time: 65_667 nanoseconds.
Weight::from_ref_time(69_653_000)
// Minimum execution time: 64_871 nanoseconds.
Weight::from_ref_time(70_596_000)
.saturating_add(RocksDbWeight::get().reads(7))
.saturating_add(RocksDbWeight::get().writes(6))
}
Expand All @@ -341,8 +341,8 @@ impl WeightInfo for () {
// Storage: AssetManager AssetIdMetadata (r:0 w:5)
// Storage: AssetManager AssetIdLocation (r:0 w:3)
fn add_liquidity() -> Weight {
// Minimum execution time: 236_324 nanoseconds.
Weight::from_ref_time(249_001_000)
// Minimum execution time: 238_430 nanoseconds.
Weight::from_ref_time(259_648_000)
.saturating_add(RocksDbWeight::get().reads(25))
.saturating_add(RocksDbWeight::get().writes(29))
}
Expand All @@ -359,26 +359,26 @@ impl WeightInfo for () {
// Storage: Assets Account (r:1 w:1)
// Storage: AssetManager AssetIdMetadata (r:0 w:2)
fn remove_liquidity() -> Weight {
// Minimum execution time: 174_439 nanoseconds.
Weight::from_ref_time(185_116_000)
// Minimum execution time: 174_527 nanoseconds.
Weight::from_ref_time(176_416_000)
.saturating_add(RocksDbWeight::get().reads(19))
.saturating_add(RocksDbWeight::get().writes(14))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: ZenlinkProtocol ForeignLedger (r:6 w:6)
// Storage: ZenlinkProtocol PairStatuses (r:2 w:0)
fn swap_exact_assets_for_assets() -> Weight {
// Minimum execution time: 102_445 nanoseconds.
Weight::from_ref_time(103_807_000)
// Minimum execution time: 102_847 nanoseconds.
Weight::from_ref_time(103_961_000)
.saturating_add(RocksDbWeight::get().reads(9))
.saturating_add(RocksDbWeight::get().writes(6))
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: ZenlinkProtocol ForeignLedger (r:6 w:6)
// Storage: ZenlinkProtocol PairStatuses (r:2 w:0)
fn swap_assets_for_exact_assets() -> Weight {
// Minimum execution time: 102_448 nanoseconds.
Weight::from_ref_time(103_698_000)
// Minimum execution time: 102_805 nanoseconds.
Weight::from_ref_time(104_156_000)
.saturating_add(RocksDbWeight::get().reads(9))
.saturating_add(RocksDbWeight::get().writes(6))
}
Expand Down

0 comments on commit 35075ed

Please sign in to comment.