Extract computation of relative speed

This commit is contained in:
sharkdp authored and David Peter committed 2019-06-08 12:29:28 +02:00
1 parent 06a2885f75
commit e09707c90f
3 files changed
+87 -27

No files matched your search

+4 -1
View File
@@ -27,7 +27,10 @@ pub fn error(message: &str) -> ! {
}
/// Runs the benchmark for the given commands
fn run(commands: &Vec<Command<'_>>, options: &HyperfineOptions) -> io::Result<Vec<BenchmarkResult>> {
fn run(
commands: &Vec<Command<'_>>,
options: &HyperfineOptions,
) -> io::Result<Vec<BenchmarkResult>> {
let shell_spawning_time =
mean_shell_spawning_time(&options.shell, &options.output_style, options.show_output)?;