OLD | NEW |
1 (function(){ | 1 (function(){ |
2 | 2 |
3 // Populated from: http://www.medcalc.be/manual/t-distribution.php | 3 // Populated from: http://www.medcalc.be/manual/t-distribution.php |
4 // 95% confidence for N - 1 = 4 | 4 // 95% confidence for N - 1 = 4 |
5 var tDistribution = 2.776; | 5 var tDistribution = 2.776; |
6 | 6 |
7 // The number of individual test iterations to do | 7 // The number of individual test iterations to do |
8 var numTests = 5; | 8 var numTests = 5; |
9 | 9 |
10 // The type of run that we're doing (options are "runs/s" or "ms") | 10 // The type of run that we're doing (options are "runs/s" or "ms") |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 next.css("display", display == 'none' ? 'block'
: 'none'); | 802 next.css("display", display == 'none' ? 'block'
: 'none'); |
803 }); | 803 }); |
804 | 804 |
805 updateTestPos({curID: testID, collection: tests[testID] ? tests[
testID].name : testID, version: testVersions[testID]}, true); | 805 updateTestPos({curID: testID, collection: tests[testID] ? tests[
testID].name : testID, version: testVersions[testID]}, true); |
806 } | 806 } |
807 | 807 |
808 if (automated) { | 808 if (automated) { |
809 // Add some more stuff if running in automated mode. | 809 // Add some more stuff if running in automated mode. |
810 window.automation = {} | 810 window.automation = {} |
811 window.automation.SetDone = function() { | 811 window.automation.SetDone = function() { |
| 812 console.log("Total: " + this.GetScore()); |
812 window.document.cookie = "__done=1; path=/"; | 813 window.document.cookie = "__done=1; path=/"; |
813 } | 814 } |
814 window.automation.GetScore = function() { | 815 window.automation.GetScore = function() { |
815 return (runStyle === "runs/s" ? Math.pow(Math.E, maxTota
l / maxTotalNum) : maxTotal).toString(); | 816 return (runStyle === "runs/s" ? Math.pow(Math.E, maxTota
l / maxTotalNum) : maxTotal).toString(); |
816 } | 817 } |
817 window.automation.GetResults = function() { | 818 window.automation.GetResults = function() { |
818 var results = {}; | 819 var results = {}; |
819 var aggregated = {}; | 820 var aggregated = {}; |
820 function normalizeName(name) { | 821 function normalizeName(name) { |
821 // At least for ui_tests, dots are not allowed. | 822 // At least for ui_tests, dots are not allowed. |
(...skipping 16 matching lines...) Expand all Loading... |
838 var means = aggregated[name]; | 839 var means = aggregated[name]; |
839 var sum = 0; | 840 var sum = 0; |
840 for (var i = 0; i < means.length; i++) sum += me
ans[i]; | 841 for (var i = 0; i < means.length; i++) sum += me
ans[i]; |
841 results[name] = Math.pow(Math.E, sum/means.lengt
h).toString(); | 842 results[name] = Math.pow(Math.E, sum/means.lengt
h).toString(); |
842 } | 843 } |
843 | 844 |
844 return results; | 845 return results; |
845 } | 846 } |
846 } | 847 } |
847 })(); | 848 })(); |
OLD | NEW |