summaryrefslogtreecommitdiffstats
path: root/recipes/cairo/cairo-1.4.10/stats.patch
blob: 63df25c94246a64771ad8133660e0447c6b1f6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
See cairo mailing list 15-10-2007 patch by Soeren Sandmann.
Fixes unreliable results for cairo-perf.

diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c
index 360f2dd..a8d7abc 100644
--- a/perf/cairo-perf.c
+++ b/perf/cairo-perf.c
@@ -166,22 +166,11 @@ cairo_perf_run (cairo_perf_t		*perf,
 			cairo_perf_ticks_per_second () / 1000.0);
 	    printf (" %lld", times[i]);
 	} else {
-	    if (i > 0) {
-		_cairo_stats_compute (&stats, times, i+1);
-
-		if (stats.std_dev <= CAIRO_PERF_LOW_STD_DEV &&
-		    ! perf->exact_iterations)
-		{
-		    low_std_dev_count++;
-		    if (low_std_dev_count >= CAIRO_PERF_STABLE_STD_DEV_COUNT)
-			break;
-		} else {
-		    low_std_dev_count = 0;
-		}
-	    }
 	}
     }
 
+    _cairo_stats_compute (&stats, times, i+1);
+	    
     if (perf->raw) {
 	printf ("\n");
     } else {
diff --git a/perf/cairo-stats.c b/perf/cairo-stats.c