mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 05:21:08 +00:00
Repair and extend some benchmarks (#5648)
This commit is contained in:
@@ -723,6 +723,9 @@ macro_rules! impl_benchmark {
|
||||
let steps = steps.get(idx).cloned().unwrap_or(prev_steps);
|
||||
prev_steps = steps;
|
||||
|
||||
// Skip this loop if steps is zero
|
||||
if steps == 0 { continue }
|
||||
|
||||
let lowest = lowest_range_values.get(idx).cloned().unwrap_or(*low);
|
||||
let highest = highest_range_values.get(idx).cloned().unwrap_or(*high);
|
||||
|
||||
@@ -828,6 +831,9 @@ macro_rules! impl_benchmark {
|
||||
let steps = steps.get(idx).cloned().unwrap_or(prev_steps);
|
||||
prev_steps = steps;
|
||||
|
||||
// Skip this loop if steps is zero
|
||||
if steps == 0 { continue }
|
||||
|
||||
let lowest = lowest_range_values.get(idx).cloned().unwrap_or(*low);
|
||||
let highest = highest_range_values.get(idx).cloned().unwrap_or(*high);
|
||||
|
||||
@@ -1036,7 +1042,7 @@ macro_rules! add_benchmark {
|
||||
&steps[..],
|
||||
repeat,
|
||||
)?,
|
||||
pallet: pallet.to_vec(),
|
||||
pallet: $name.to_vec(),
|
||||
benchmark: benchmark.to_vec(),
|
||||
});
|
||||
}
|
||||
@@ -1049,7 +1055,7 @@ macro_rules! add_benchmark {
|
||||
&steps[..],
|
||||
repeat,
|
||||
)?,
|
||||
pallet: pallet.to_vec(),
|
||||
pallet: $name.to_vec(),
|
||||
benchmark: benchmark.clone(),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user