summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-10-17 19:18:22 -0700
committerCarl Worth <cworth@cworth.org>2006-10-18 12:11:26 -0700
commitbb3d4b2f88dca258389d7ca4cae51a5b64c0dfc9 (patch)
treeaac07897339eefba8b923696f1af8ad956f79e51
parentd8c23d5ed747fa216d8070accdb80d665033233b (diff)
cairo-perf: Remove wasted whitespace in output. Squelch wanring.
-rw-r--r--perf/cairo-perf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 66feafb7..19b7789f 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -143,7 +143,7 @@ cairo_perf_run (cairo_perf_t *perf,
unsigned int i;
cairo_perf_ticks_t *times;
- stats_t stats;
+ stats_t stats = {0.0, 0.0};
int low_std_dev_count;
times = xmalloc (perf->iterations * sizeof (cairo_perf_ticks_t));
@@ -171,18 +171,18 @@ cairo_perf_run (cairo_perf_t *perf,
}
if (first_run) {
- printf ("[ # ] %8s-%-4s %36s %9s %5s %s\n",
- "backend", "content", "test-size", "mean ms",
- "std dev.", "iterations");
+ printf ("[ # ] %8s-%-4s %28s %7s %5s %s\n",
+ "backend", "content", "test-size", "mean(ms)",
+ "stddev.", "iterations");
first_run = FALSE;
}
- printf ("[%3d] %8s-%-4s %34s-%-3d ",
+ printf ("[%3d] %8s-%-4s %26s-%-3d ",
perf->test_number, perf->target->name,
_content_to_string (perf->target->content),
name, perf->size);
- printf ("%#9.3f %#5.2f%% % 5d\n",
+ printf ("%#8.3f %#5.2f%% %3d\n",
(stats.mean * 1000.0) / cairo_perf_ticks_per_second (),
stats.std_dev * 100.0, i);