Skip to content

Commit 9310694

Browse files
authored
Merge pull request #1497 from nnethercote/adjust-runtime-output
Adjust runtime output
2 parents af0125b + ade0203 commit 9310694

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

collector/src/runtime/mod.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn bench_runtime(
2424
let total_benchmark_count = suite.total_benchmark_count();
2525
let filtered = suite.filtered_benchmark_count(&filter);
2626
println!(
27-
"Executing {} benchmarks ({} filtered out)",
27+
"Executing {} benchmarks ({} filtered out)\n",
2828
filtered,
2929
total_benchmark_count - filtered
3030
);
@@ -120,7 +120,7 @@ fn print_stats(result: &BenchmarkResult) {
120120
.sqrt();
121121

122122
println!(
123-
"{name:>20}: {:>16} (+/- {:>8})",
123+
"{name:>18}: {:>16} (+/- {:>11})",
124124
(mean as u64).separate_with_commas(),
125125
(stddev as u64).separate_with_commas()
126126
);
@@ -131,9 +131,10 @@ fn print_stats(result: &BenchmarkResult) {
131131

132132
print_metric(result, "Instructions", |m| m.instructions);
133133
print_metric(result, "Cycles", |m| m.cycles);
134-
print_metric(result, "Wall time [us]", |m| {
134+
print_metric(result, "Wall time [µs]", |m| {
135135
Some(m.wall_time.as_micros() as u64)
136136
});
137137
print_metric(result, "Branch misses", |m| m.branch_misses);
138138
print_metric(result, "Cache misses", |m| m.cache_misses);
139+
println!();
139140
}

0 commit comments

Comments
 (0)