diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-02 13:08:25 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-06-02 15:13:47 +0100 |
commit | 7ed050fd435f17d25c7b757b02cfe200f8779fc2 (patch) | |
tree | d47e21dd695950f91231786ab3329b98f02d4273 /perf/cairo-perf-compare-backends.c | |
parent | 403f780b292762aa45056c2fb5a48bb806521173 (diff) |
[perf] Benchmark traces
Add a variant of cairo-perf that measures the time to replay traces.
Diffstat (limited to 'perf/cairo-perf-compare-backends.c')
-rw-r--r-- | perf/cairo-perf-compare-backends.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/perf/cairo-perf-compare-backends.c b/perf/cairo-perf-compare-backends.c index 3f280ce9..5c8d2fc4 100644 --- a/perf/cairo-perf-compare-backends.c +++ b/perf/cairo-perf-compare-backends.c @@ -122,9 +122,13 @@ test_diff_print (test_diff_t *diff, double test_time; double change; - printf ("(%s, size: %d)\n", - diff->tests[0]->name, - diff->tests[0]->size); + if (diff->tests[0]->size != 0) { + printf ("(%s, size: %d)\n", + diff->tests[0]->name, + diff->tests[0]->size); + } else { + printf ("(%s\n", diff->tests[0]->name); + } for (i = 0; i < diff->num_tests; i++) { test_time = diff->tests[i]->stats.min_ticks; |