|
1 | | -//! Weights for the Auction Module |
| 1 | +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0 |
2 | 2 |
|
3 | | -use frame_support::weights::{ |
4 | | - constants::{RocksDbWeight as DbWeight, WEIGHT_PER_MICROS}, |
5 | | - Weight, |
6 | | -}; |
| 3 | +#![allow(unused_parens)] |
| 4 | +#![allow(unused_imports)] |
| 5 | + |
| 6 | +use frame_support::weights::{constants::RocksDbWeight as DbWeight, Weight}; |
7 | 7 |
|
8 | 8 | impl crate::WeightInfo for () { |
9 | | - fn bid() -> Weight { |
10 | | - WEIGHT_PER_MICROS |
11 | | - .saturating_mul(300) |
12 | | - .saturating_add(DbWeight::get().reads_writes(14, 14)) |
| 9 | + fn bid_collateral_auction() -> Weight { |
| 10 | + (493_957_000 as Weight) |
| 11 | + .saturating_add(DbWeight::get().reads(12 as Weight)) |
| 12 | + .saturating_add(DbWeight::get().writes(12 as Weight)) |
13 | 13 | } |
14 | | - |
15 | | - fn on_finalize(_a: u32) -> Weight { |
16 | | - 0 |
| 14 | + fn bid_surplus_auction() -> Weight { |
| 15 | + (257_830_000 as Weight) |
| 16 | + .saturating_add(DbWeight::get().reads(6 as Weight)) |
| 17 | + .saturating_add(DbWeight::get().writes(5 as Weight)) |
| 18 | + } |
| 19 | + fn bid_debit_auction() -> Weight { |
| 20 | + (287_271_000 as Weight) |
| 21 | + .saturating_add(DbWeight::get().reads(7 as Weight)) |
| 22 | + .saturating_add(DbWeight::get().writes(8 as Weight)) |
| 23 | + } |
| 24 | + fn on_finalize(c: u32) -> Weight { |
| 25 | + (50_992_000 as Weight) |
| 26 | + .saturating_add((171_653_000 as Weight).saturating_mul(c as Weight)) |
| 27 | + .saturating_add(DbWeight::get().reads(3 as Weight)) |
| 28 | + .saturating_add(DbWeight::get().reads((4 as Weight).saturating_mul(c as Weight))) |
| 29 | + .saturating_add(DbWeight::get().writes(2 as Weight)) |
| 30 | + .saturating_add(DbWeight::get().writes((3 as Weight).saturating_mul(c as Weight))) |
17 | 31 | } |
18 | 32 | } |
0 commit comments