Can someone please explain the following output:
Why did the weights generate a zero input?
- Weight::from_ref_time(0 as u64)
What is the fastest way to eyeball this and conclude whether these weights are within reason or telling me I need to rethink my implementation?
fn on_initialize(m: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 5_000
.saturating_add(Weight::from_ref_time(1_242_000 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(m as u64)))
}
0 + 124200 * m + <db_write_wight> * m
. Doesn't it make sense in your case that weight is entirely dependent onm
?m
is zero, it does nothing?