- give an extra digit of precision for small differences.
* resources/sunspider-compare-results.js:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28828
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-18 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Eric.
+
+ - give an extra digit of precision for small differences.
+
+ * resources/sunspider-compare-results.js:
+
2007-12-17 Maciej Stachowiak <mjs@apple.com>
Reviewed by Eric.
var isFaster = diff < 0;
var probablySame = (percentage < 0.1) && !statisticallySignificant;
var ratio = isFaster ? (mean1 / mean2) : (mean2 / mean1);
- var fixedRatio = (ratio < 10) ? ratio.toFixed(2).toString() : ratio.toFixed(1).toString();
+ var fixedRatio = (ratio < 1.2) ? ratio.toFixed(3).toString() : ((ratio < 10) ? ratio.toFixed(2).toString() : ratio.toFixed(1).toString());
var formattedRatio = isFaster ? fixedRatio + "x as fast" : "*" + fixedRatio + "x as slow*";
var diffSummary;