mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-29 06:59:49 +00:00
Repair and extend some benchmarks (#5648)
This commit is contained in:
1 parent
000c924b62
commit
2fb22de02e
10 files changed
+1187
-333
No files matched your search
@@ -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