mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 19:17:58 +00:00
Force base weights to be the minimum only when the intercept is negative (#12482)
* Force base weights to be the minimum only when the intercept is negative; emit minimum execution times * Add an `assert` making sure the intercept is zero when it's supposed to be zero * Fix template Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * ".git/.scripts/bench-bot.sh" pallet dev pallet_assets * ".git/.scripts/bench-bot.sh" pallet dev pallet_uniques Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: command-bot <>
This commit is contained in:
@@ -69,6 +69,8 @@ struct BenchmarkData {
|
||||
component_writes: Vec<ComponentSlope>,
|
||||
component_ranges: Vec<ComponentRange>,
|
||||
comments: Vec<String>,
|
||||
#[serde(serialize_with = "string_serialize")]
|
||||
min_execution_time: u128,
|
||||
}
|
||||
|
||||
// This forwards some specific metadata from the `PalletCmd`
|
||||
@@ -257,6 +259,7 @@ fn get_benchmark_data(
|
||||
component_writes: used_writes,
|
||||
component_ranges,
|
||||
comments,
|
||||
min_execution_time: extrinsic_time.minimum,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user