+2012-03-13 Kentaro Hara <haraken@chromium.org>
+
+ Dromaeo perf-tests results are wrong
+ https://bugs.webkit.org/show_bug.cgi?id=80974
+
+ Reviewed by Hajime Morita.
+
+ Dromaeo perf-tests had reported the sum of runs/seconds as "ms".
+ This patch fixes them to report the execution time per run.
+
+ At present, they report "0.0ms" for "stdev". This is because
+ dromaeorunner.js can just know stdev of "runs/seconds"
+ and cannot calculate stdev of "ms" from that. We can fix it later.
+
+ * Dromaeo/resources/dromaeorunner.js:
+ (.):
+
2012-03-12 Ilya Tikhonovsky <loislo@chromium.org>
Web Inspector: chromium: increase heap snapshot performance coverage.
baseURL: "./resources/dromaeo/web/index.html",
computeScores: function (results) {
- var mean = 0, min = 0, max = 0, stdev = 0, varsum = 0;
+ var mean = 0, min = 0, max = 0, median = 0;
for (var i = 0; i < results.length; ++i) {
var item = results[i];
- mean += item.mean;
- min += item.min;
- max += item.max;
- varsum += item.deviation * item.deviation;
+ if (item.mean == 0 || item.max == 0 || item.min == 0 || item.median == 0)
+ return {median: 0, mean: 0, min: 0, max: 0, stdev: 0};
+
+ mean += 1000 / item.mean;
+ min += 1000 / item.max;
+ max += 1000 / item.min;
+ median += 1000 / item.median;
}
return {
- median: 0,
+ median: median,
mean: mean,
min: min,
max: max,
- stdev: Math.sqrt(varsum)
+ stdev: 0
};
},