Index: chrome/content/tests/performance/common.js |
=================================================================== |
--- a/chrome/content/tests/performance/common.js |
+++ b/chrome/content/tests/performance/common.js |
@@ -44,17 +44,17 @@ function runTests(testFunc, cleanupFunc, |
setTimeout(runNextTest, 0); |
} |
function getConfidenceInterval(results) |
{ |
let sum = 0; |
let sqrsum = 0; |
- for each (let result in results) |
+ for (let result of results) |
{ |
sum += result; |
sqrsum += result * result; |
} |
let avg = sum / results.length; |
let stddev = Math.sqrt((sqrsum - 2 * sum * avg + avg * avg * results.length) / results.length); |
let confidence = 1.96 * stddev; // 95% confidence, assuming Gaussian distribution |