[cairo-commit] 3 commits - perf/cairo-perf.c

Carl Worth cworth at kemper.freedesktop.org
Wed Oct 18 12:11:32 PDT 2006


 perf/cairo-perf.c |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

New commits:
diff-tree 5c7798a646ecad59dfabac1f9afb96006470054e (from bb3d4b2f88dca258389d7ca4cae51a5b64c0dfc9)
Author: Carl Worth <cworth at cworth.org>
Date:   Wed Oct 18 12:10:00 2006 -0700

    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.

diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 19b7789..d9734c4 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);
 
diff-tree bb3d4b2f88dca258389d7ca4cae51a5b64c0dfc9 (from d8c23d5ed747fa216d8070accdb80d665033233b)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue Oct 17 19:18:22 2006 -0700

    cairo-perf: Remove wasted whitespace in output. Squelch wanring.

diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 66feafb..19b7789 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);
 
diff-tree d8c23d5ed747fa216d8070accdb80d665033233b (from c1f134fa13928f31c903d513920448b127749a4b)
Author: Carl Worth <cworth at cworth.org>
Date:   Tue Oct 17 17:53:43 2006 -0700

    perf: Change minimum size of paint test to 256
    
    The paint tests at sizes less than 256 were just too fast to be
    significant.

diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index be8a71e..66feafb 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -249,7 +249,7 @@ main (int argc, char *argv[])
 }
 
 cairo_perf_case_t perf_cases[] = {
-    { paint,  64, 512},
+    { paint,  256, 512},
     { fill,   64, 256},
     { stroke, 64, 256},
     { text,   64, 256},


More information about the cairo-commit mailing list