Skip to content
Myr

address the comment

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by rleungx · committed by David Peter · parent a08ab7c · Browse files · 1 file+7 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−7 removed

  • other:+7 added−7 removed

1 file+7 added−7 removed

modified:src/hyperfine/benchmark.rs+7 added-7 removed
191 unmodified lines
192193 let count_remaining = count - 1;194195 // Save the first result196 times_real.push(res.time_real + prepare_res.time_real);197 times_user.push(res.time_user + prepare_res.time_user);198 times_system.push(res.time_system + prepare_res.time_system);196 times_real.push(res.time_real);197 times_user.push(res.time_user);198 times_system.push(res.time_system);199200 all_succeeded = all_succeeded && success;201202 // Re-configure the progress bar203 progress_bar.set_length(count_remaining);204205 // Gather statistics206 for _ in 0..count_remaining {207 let prepare_res = run_preparation_command(&options.preparation_command)?;207 run_preparation_command(&options.preparation_command)?;208209 let msg = {210 let mean = format_duration(mean(&times_real), None);211 format!("Current estimate: {}", mean.to_string().green())
2 unmodified lines
214215 let (res, success) =216 time_shell_command(cmd, options.failure_action, Some(shell_spawning_time))?;217218 times_real.push(res.time_real + prepare_res.time_real);219 times_user.push(res.time_user + prepare_res.time_user);220 times_system.push(res.time_system + prepare_res.time_system);218 times_real.push(res.time_real);219 times_user.push(res.time_user);220 times_system.push(res.time_system);221222 all_succeeded = all_succeeded && success;223224 progress_bar.inc(1);
73 unmodified lines