Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9157)

Unified Diff: chrome/test/data/sunspider/sunspider-1.0/driver.html

Issue 14863013: Update SunSpider benchmark from 0.9.1 to 1.0. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing files Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/sunspider/sunspider.html ('k') | chrome/test/data/sunspider/sunspider-1.0/results.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/sunspider/sunspider-1.0/driver.html
diff --git a/chrome/test/data/sunspider/sunspider-driver.html b/chrome/test/data/sunspider/sunspider-1.0/driver.html
similarity index 84%
rename from chrome/test/data/sunspider/sunspider-driver.html
rename to chrome/test/data/sunspider/sunspider-1.0/driver.html
index 551bfeeefa9ee7f01e6d7cada88ca36f98d625f1..5f2305126010873feb5e1b0ddbebbcc59dcb840b 100644
--- a/chrome/test/data/sunspider/sunspider-driver.html
+++ b/chrome/test/data/sunspider/sunspider-1.0/driver.html
@@ -29,14 +29,14 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
-<title>SunSpider 0.9.1 JavaScript Benchmark (sunspider-0.9.1 test suite - In Progress...)</title>
-<link rel="stylesheet" href="sunspider.css">
+<title>SunSpider 1.0 JavaScript Benchmark (sunspider-1.0 test suite - In Progress...)</title>
+<link rel="stylesheet" href="../sunspider.css">
</head>
<body onload="start()">
<h2><span id="logo">&#x2600;</span>SunSpider JavaScript Benchmark <small>(In Progress...)</small></h2>
-<h3>Content Version: sunspider-0.9.1</h3>
+<h3>Content Version: sunspider-1.0</h3>
<script src="sunspider-test-prefix.js"></script>
<script src="sunspider-test-contents.js"></script>
@@ -58,7 +58,7 @@ function start()
function next()
{
- window.setTimeout(reallyNext, 10);
+ window.setTimeout(reallyNext, 0);
}
function reallyNext()
@@ -70,12 +70,12 @@ function reallyNext()
if (testIndex < tests.length) {
testFrame.contentDocument.open();
testFrame.contentDocument.write(testContents[testIndex]);
- testFrame.contentDocument.close;
+ testFrame.contentDocument.close();
} else if (++currentRepeat < repeatCount) {
testIndex = 0;
testFrame.contentDocument.open();
testFrame.contentDocument.write(testContents[testIndex]);
- testFrame.contentDocument.close;
+ testFrame.contentDocument.close();
} else {
finish();
}
@@ -91,11 +91,14 @@ function recordResult(time)
function finish()
{
var outputString = "{";
-// outputString += '"v": "sunspider-0.9.1", ';
+ outputString += '"v": "sunspider-1.0", ';
for (var test in output[0]) {
outputString += '"' + test + '":[';
for (var i = 0; i < output.length; i++) {
- outputString += output[i][test] + ",";
+ var time = output[i][test];
+ if (time != time)
+ time = "\"NaN\"";
+ outputString += time + ",";
}
outputString = outputString.substring(0, outputString.length - 1);
outputString += "],";
@@ -103,7 +106,7 @@ function finish()
outputString = outputString.substring(0, outputString.length - 1);
outputString += "}";
- location = "sunspider-results.html?" + encodeURI(outputString);
+ location = "results.html?" + encodeURI(outputString);
}
</script>
« no previous file with comments | « chrome/test/data/sunspider/sunspider.html ('k') | chrome/test/data/sunspider/sunspider-1.0/results.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698