mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 07:01:03 +00:00
Fix Crowdloan Dissolve and Add Auction Cancel (#2665)
* Check fund depositor calls dissolve * add auction cancel too * use drain api rather than `iter` + `take` * add test and benchmarks * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
//! Autogenerated weights for auctions
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
||||
//! DATE: 2021-03-14, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2021-03-23, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128
|
||||
|
||||
// Executed Command:
|
||||
@@ -44,18 +44,23 @@ use sp_std::marker::PhantomData;
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> auctions::WeightInfo for WeightInfo<T> {
|
||||
fn new_auction() -> Weight {
|
||||
(24_105_000 as Weight)
|
||||
(24_619_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
fn bid() -> Weight {
|
||||
(110_317_000 as Weight)
|
||||
(113_354_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(7 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||
}
|
||||
fn on_initialize() -> Weight {
|
||||
(602_940_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(75 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(71 as Weight))
|
||||
(3_095_173_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(625 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(621 as Weight))
|
||||
}
|
||||
fn cancel_auction() -> Weight {
|
||||
(841_845_000 as Weight)
|
||||
.saturating_add(T::DbWeight::get().reads(21 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(621 as Weight))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user