Skip to content

Commit

Permalink
Auto-update pallet weights
Browse files Browse the repository at this point in the history
  • Loading branch information
gluwa-bot authored and atodorov committed Nov 9, 2022
1 parent 9dc3738 commit 0e59254
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 38 deletions.
70 changes: 37 additions & 33 deletions pallets/creditcoin/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `super`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-08, STEPS: `8`, REPEAT: 8, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-11-09, STEPS: `8`, REPEAT: 8, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -39,16 +39,20 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin AskOrders (r:0 w:31)
fn on_initialize(a: u32, b: u32, o: u32, d: u32, f: u32, u: u32, c: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 18_012_000
.saturating_add((26_459_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 18_012_000
.saturating_add((42_487_000 as Weight).saturating_mul(o as Weight))
// Standard Error: 18_012_000
.saturating_add((54_240_000 as Weight).saturating_mul(d as Weight))
// Standard Error: 18_012_000
.saturating_add((49_082_000 as Weight).saturating_mul(f as Weight))
// Standard Error: 18_012_000
.saturating_add((26_692_000 as Weight).saturating_mul(c as Weight))
// Standard Error: 20_580_000
.saturating_add((41_853_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 20_580_000
.saturating_add((42_567_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 20_580_000
.saturating_add((68_676_000 as Weight).saturating_mul(o as Weight))
// Standard Error: 20_580_000
.saturating_add((80_742_000 as Weight).saturating_mul(d as Weight))
// Standard Error: 20_580_000
.saturating_add((62_392_000 as Weight).saturating_mul(f as Weight))
// Standard Error: 20_580_000
.saturating_add((65_465_000 as Weight).saturating_mul(u as Weight))
// Standard Error: 20_580_000
.saturating_add((71_023_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(d as Weight)))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(f as Weight)))
Expand All @@ -62,15 +66,15 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
}
// Storage: Creditcoin Addresses (r:1 w:1)
fn register_address() -> Weight {
(275_401_000 as Weight)
(280_902_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Creditcoin LegacyWallets (r:1 w:1)
// Storage: Creditcoin LegacyBalanceKeeper (r:1 w:0)
// Storage: System Account (r:1 w:1)
fn claim_legacy_wallet() -> Weight {
(74_701_000 as Weight)
(73_100_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -79,7 +83,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Currencies (r:1 w:0)
// Storage: Creditcoin UsedGuids (r:1 w:1)
fn add_ask_order() -> Weight {
(48_600_000 as Weight)
(48_500_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -88,7 +92,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Currencies (r:1 w:0)
// Storage: Creditcoin UsedGuids (r:1 w:1)
fn add_bid_order() -> Weight {
(45_600_000 as Weight)
(48_100_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -97,7 +101,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Addresses (r:2 w:0)
// Storage: Creditcoin Offers (r:1 w:1)
fn add_offer() -> Weight {
(54_000_000 as Weight)
(60_700_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -107,29 +111,29 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin BidOrders (r:1 w:0)
// Storage: Timestamp Now (r:1 w:0)
fn add_deal_order() -> Weight {
(53_900_000 as Weight)
(54_900_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Creditcoin Authorities (r:1 w:1)
fn add_authority() -> Weight {
(8_100_000 as Weight)
(7_300_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Creditcoin Authorities (r:1 w:0)
// Storage: Creditcoin Transfers (r:1 w:1)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn persist_transfer() -> Weight {
(41_300_000 as Weight)
(39_600_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Creditcoin Authorities (r:1 w:0)
// Storage: Creditcoin Transfers (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn fail_transfer() -> Weight {
(31_500_000 as Weight)
(31_100_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -138,13 +142,13 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Timestamp Now (r:1 w:0)
// Storage: Creditcoin Transfers (r:1 w:1)
fn fund_deal_order() -> Weight {
(56_900_000 as Weight)
(57_200_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Creditcoin DealOrders (r:1 w:1)
fn lock_deal_order() -> Weight {
(29_600_000 as Weight)
(32_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -154,7 +158,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Currencies (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn register_funding_transfer() -> Weight {
(57_900_000 as Weight)
(59_300_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -164,7 +168,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Currencies (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn register_repayment_transfer() -> Weight {
(58_200_000 as Weight)
(57_500_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -173,7 +177,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Transfers (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn register_funding_transfer_legacy() -> Weight {
(54_800_000 as Weight)
(56_701_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -182,7 +186,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Transfers (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn register_repayment_transfer_legacy() -> Weight {
(55_701_000 as Weight)
(57_600_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -191,15 +195,15 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Timestamp Now (r:1 w:0)
// Storage: Creditcoin Transfers (r:1 w:1)
fn close_deal_order() -> Weight {
(57_800_000 as Weight)
(59_601_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Creditcoin DealOrders (r:1 w:1)
// Storage: Creditcoin Addresses (r:1 w:0)
// Storage: Timestamp Now (r:1 w:0)
fn exempt() -> Weight {
(43_400_000 as Weight)
(42_400_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -211,7 +215,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin DealOrders (r:1 w:1)
// Storage: Timestamp Now (r:1 w:0)
fn register_deal_order() -> Weight {
(338_301_000 as Weight)
(339_301_000 as Weight)
.saturating_add(T::DbWeight::get().reads(8 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
Expand All @@ -220,15 +224,15 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin PendingTasks (r:1 w:1)
// Storage: Creditcoin Addresses (r:1 w:0)
fn request_collect_coins() -> Weight {
(41_501_000 as Weight)
(43_001_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Creditcoin Authorities (r:1 w:0)
// Storage: Creditcoin CollectedCoins (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn fail_collect_coins() -> Weight {
(23_700_000 as Weight)
(23_900_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -237,7 +241,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: Creditcoin Addresses (r:1 w:0)
// Storage: Creditcoin PendingTasks (r:0 w:1)
fn persist_collect_coins() -> Weight {
(75_601_000 as Weight)
(77_800_000 as Weight)
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
Expand All @@ -249,7 +253,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
}
// Storage: Creditcoin Currencies (r:1 w:1)
fn register_currency() -> Weight {
(23_400_000 as Weight)
(20_700_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand Down
4 changes: 2 additions & 2 deletions pallets/difficulty/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `super`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-08, STEPS: `50`, REPEAT: 30, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-11-09, STEPS: `50`, REPEAT: 30, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -39,7 +39,7 @@ impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
}
// Storage: Difficulty DifficultyAdjustmentPeriod (r:0 w:1)
fn set_adjustment_period() -> Weight {
(2_400_000 as Weight)
(2_500_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}
6 changes: 3 additions & 3 deletions pallets/rewards/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//! Autogenerated weights for `super`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-11-08, STEPS: `50`, REPEAT: 30, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-11-09, STEPS: `50`, REPEAT: 30, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024

// Executed Command:
Expand Down Expand Up @@ -34,12 +34,12 @@ pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> {
// Storage: System Digest (r:1 w:0)
fn on_initialize() -> Weight {
(3_300_000 as Weight)
(3_400_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
}
// Storage: System Account (r:1 w:1)
fn on_finalize() -> Weight {
(49_801_000 as Weight)
(49_800_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand Down

0 comments on commit 0e59254

Please sign in to comment.