Changeset 28828 in webkit
- Timestamp:
- Dec 18, 2007 1:27:00 AM (16 years ago)
- Location:
- trunk/SunSpider
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SunSpider/ChangeLog
r28825 r28828 1 2007-12-18 Maciej Stachowiak <mjs@apple.com> 2 3 Reviewed by Eric. 4 5 - give an extra digit of precision for small differences. 6 7 * resources/sunspider-compare-results.js: 8 1 9 2007-12-17 Maciej Stachowiak <mjs@apple.com> 2 10 -
trunk/SunSpider/resources/sunspider-compare-results.js
r28669 r28828 307 307 var probablySame = (percentage < 0.1) && !statisticallySignificant; 308 308 var ratio = isFaster ? (mean1 / mean2) : (mean2 / mean1); 309 var fixedRatio = (ratio < 1 0) ? ratio.toFixed(2).toString() : ratio.toFixed(1).toString();309 var fixedRatio = (ratio < 1.2) ? ratio.toFixed(3).toString() : ((ratio < 10) ? ratio.toFixed(2).toString() : ratio.toFixed(1).toString()); 310 310 var formattedRatio = isFaster ? fixedRatio + "x as fast" : "*" + fixedRatio + "x as slow*"; 311 311
Note: See TracChangeset
for help on using the changeset viewer.