Compact output, add -s color option, closes #70

Strip the empty lines within the results for each benchmark, but keep
the empty line between each benchmark, and before the summary.

Add `color` style option to show color but not be interactive (no
progress bar).
This commit is contained in:
Jason Peacock authored and David Peter committed 2018-09-28 21:57:53 +02:00
1 parent 4b8f47d6f2
commit 3246ec27e1
5 files changed
+14 -10

No files matched your search

-2
View File
@@ -164,7 +164,6 @@ pub fn run_benchmark(
(num + 1).to_string().bold(),
cmd
);
println!();
let mut times_real: Vec<Second> = vec![];
let mut times_user: Vec<Second> = vec![];
@@ -293,7 +292,6 @@ pub fn run_benchmark(
user_str.blue(),
system_str.blue()
);
println!(" ");
println!(
" Range ({} … {}): {:>8} … {:>8}",