mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Extract computation of relative speed
This commit is contained in:
1 parent
06a2885f75
commit
e09707c90f
3 files changed
+87
-27
No files matched your search
+4
-1
@@ -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)?;
|
||||
|
||||
|
||||
Reference in new issue
Block a user