Repair and extend some benchmarks (#5648)

This commit is contained in:
Shawn Tabrizi
2020-04-24 11:40:28 +02:00
committed by GitHub
parent 000c924b62
commit 2fb22de02e
10 changed files with 1187 additions and 333 deletions
+8 -2
View File
@@ -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(),
});
}