summaryrefslogtreecommitdiff
path: root/perf/paint.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-10-03 17:27:27 -0700
committerCarl Worth <cworth@cworth.org>2006-10-04 17:14:11 -0700
commit251bed86400f72a4ec90618d0d41566ab9969cfa (patch)
tree1e02ad2688f72ec92d54f1e74f9fa18fa5cc23d8 /perf/paint.c
parent1e0e2075090c181dcd9f431833a8a9c2665d763e (diff)
perf/paint: Make all sizes use a consistent number of iterations
This effectively reverts the change made in: 3c407aa80a43e1724e732482ada5ad6718fe33ae The justification is that we want to be able to see the trends of increasing the image size while keeping the test the same. But changing the number of iterations in a size- specific way interferes with that. Also, the standard deviation is almost always better this way, (though it now varies more by size). And as a bonus, the total time required to run the suite is now less.
Diffstat (limited to 'perf/paint.c')
-rw-r--r--perf/paint.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/perf/paint.c b/perf/paint.c
index 10aacc04..324f397a 100644
--- a/perf/paint.c
+++ b/perf/paint.c
@@ -25,29 +25,12 @@
#include "cairo-perf.h"
-static int
-iters_for_size (int size)
-{
- if (size <= 64)
- return 8;
- else if (size <= 128)
- return 4;
- else if (size <= 256)
- return 2;
- else
- return 1;
-}
-
static cairo_perf_ticks_t
do_paint (cairo_t *cr, int size)
{
- int i;
- int iters = iters_for_size (size);
-
cairo_perf_timer_start ();
- for (i=0; i < iters; i++)
- cairo_paint (cr);
+ cairo_paint (cr);
cairo_perf_timer_stop ();