diff options
author | Carl Worth <cworth@cworth.org> | 2006-10-18 12:10:00 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-10-18 12:11:26 -0700 |
commit | 5c7798a646ecad59dfabac1f9afb96006470054e (patch) | |
tree | 2b7158d478e09579f4214a8eec777b90a8169c67 /perf | |
parent | bb3d4b2f88dca258389d7ca4cae51a5b64c0dfc9 (diff) | |
download | cairo-5c7798a646ecad59dfabac1f9afb96006470054e.tar.gz |
perf: Print ticks as well as ms in output.
The ticks value is a bit more reliable since it won't exhibit
variation due to estimating the CPU frequency like the ms value
will.
Diffstat (limited to 'perf')
-rw-r--r-- | perf/cairo-perf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index 19b7789f4..d9734c4ff 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -171,8 +171,8 @@ cairo_perf_run (cairo_perf_t *perf, } if (first_run) { - printf ("[ # ] %8s-%-4s %28s %7s %5s %s\n", - "backend", "content", "test-size", "mean(ms)", + printf ("[ # ] %8s-%-4s %28s %10s %8s %5s %s\n", + "backend", "content", "test-size", "mean(ticks)", "mean(ms)", "stddev.", "iterations"); first_run = FALSE; } @@ -182,7 +182,8 @@ cairo_perf_run (cairo_perf_t *perf, _content_to_string (perf->target->content), name, perf->size); - printf ("%#8.3f %#5.2f%% %3d\n", + printf ("%12.2f %#8.3f %#5.2f%% %3d\n", + stats.mean, (stats.mean * 1000.0) / cairo_perf_ticks_per_second (), stats.std_dev * 100.0, i); |