Reviewed by Eric.
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2007 09:27:00 +0000 (09:27 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Dec 2007 09:27:00 +0000 (09:27 +0000)
        - give an extra digit of precision for small differences.

        * resources/sunspider-compare-results.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28828 268f45cc-cd09-0410-ab3c-d52691b4dbfc

SunSpider/ChangeLog
SunSpider/resources/sunspider-compare-results.js

index b2314ef..97d3aa7 100644 (file)
@@ -1,3 +1,11 @@
+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.
index b7b9d1f..887b8db 100644 (file)
@@ -306,7 +306,7 @@ function sunspiderCompareResults(output1, output2)
         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;