Rename Runs to RunBounds

This commit is contained in:
David Peter authored and David Peter committed 2022-02-22 09:07:40 +01:00
1 parent 250db61fa0
commit bea0cfab30
2 files changed
+16 -16

No files matched your search

+3 -3
View File
@@ -311,7 +311,7 @@ pub fn run_benchmark(
// Set up progress bar (and spinner for initial measurement)
let progress_bar = if options.output_style != OutputStyleOption::Disabled {
Some(get_progress_bar(
options.runs.min,
options.run_bounds.min,
"Initial time measurement",
options.output_style,
))
@@ -337,10 +337,10 @@ pub fn run_benchmark(
as u64;
let count = {
let min = cmp::max(runs_in_min_time, options.runs.min);
let min = cmp::max(runs_in_min_time, options.run_bounds.min);
options
.runs
.run_bounds
.max
.as_ref()
.map(|max| cmp::min(min, *max))