[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

mjs at apple.com mjs at apple.com
Thu Apr 8 00:34:30 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit 58eaf24f823b1d24159a5146ef588d1e641da37c
Author: mjs at apple.com <mjs at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Sun Dec 13 04:26:23 2009 +0000

    2009-12-12  Maciej Stachowiak  <mjs at apple.com>
    
            Reviewed by Oliver Hunt.
    
            Enable Web-hosted version of SunSpider to handle multiple versions
            https://bugs.webkit.org/show_bug.cgi?id=32478
    
            * make-hosted: Now generate the hosted version to be able to run both the
            0.9 and the 0.9.1 test suites.
            * hosted: Modified property svn:ignore.
            * hosted/sunspider-driver.html: Removed.
            * hosted/sunspider-results.html: Removed.
            * hosted/sunspider.html:
            * hosted/versions.html: Added.
            * resources/TEMPLATE.html:
            * resources/driver-TEMPLATE.html: Copied from hosted/sunspider-driver.html.
            * resources/driver-TEMPLATE.html: Copied from hosted/sunspider-results.html.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@52062 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/SunSpider/ChangeLog b/SunSpider/ChangeLog
index 5ff139e..5885cd3 100644
--- a/SunSpider/ChangeLog
+++ b/SunSpider/ChangeLog
@@ -2,6 +2,24 @@
 
         Reviewed by Oliver Hunt.
 
+        Enable Web-hosted version of SunSpider to handle multiple versions
+        https://bugs.webkit.org/show_bug.cgi?id=32478
+
+        * make-hosted: Now generate the hosted version to be able to run both the
+        0.9 and the 0.9.1 test suites.
+        * hosted: Modified property svn:ignore.
+        * hosted/sunspider-driver.html: Removed.
+        * hosted/sunspider-results.html: Removed.
+        * hosted/sunspider.html:
+        * hosted/versions.html: Added.
+        * resources/TEMPLATE.html:
+        * resources/driver-TEMPLATE.html: Copied from hosted/sunspider-driver.html.
+        * resources/driver-TEMPLATE.html: Copied from hosted/sunspider-results.html.
+
+2009-12-12  Maciej Stachowiak  <mjs at apple.com>
+
+        Reviewed by Oliver Hunt.
+
         Give command-line sunspider the ability to handle multiple suites and versions
         https://bugs.webkit.org/show_bug.cgi?id=32477
         
diff --git a/SunSpider/hosted/sunspider-driver.html b/SunSpider/hosted/sunspider-driver.html
deleted file mode 100644
index 16fbca9..0000000
--- a/SunSpider/hosted/sunspider-driver.html
+++ /dev/null
@@ -1,96 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<!--
- Copyright (C) 2007 Apple Inc.  All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source code must retain the above copyright
-    notice, this list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the
-    documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
--->
-
-<title>SunSpider JavaScript Benchmark (In Progress...)</title>
-<link rel="stylesheet" href="sunspider.css"></link>
-</head>
-
-<body onload="next()">
-
-<h2><span id="logo">&#x2600;</span>SunSpider JavaScript Benchmark <small>(In Progress...)</small></h2>
-
-<script src="sunspider-test-prefix.js"></script>
-<script>
-var testIndex = -1;
-var currentRepeat = 0;
-var repeatCount = 5;
-
-var output = [];
-output.length = repeatCount;
-for (var i = 0; i < output.length; i++) {
-    output[i] = {};
-}
-
-function next() 
-{
-    window.setTimeout(reallyNext, 500);
-}
-
-function reallyNext() 
-{
-    testIndex++;
-    if (testIndex < tests.length) {
-        document.getElementById("testframe").src = tests[testIndex] + ".html";
-    } else if (++currentRepeat < repeatCount) { 
-        testIndex = 0;
-        document.getElementById("testframe").src = tests[testIndex] + ".html";
-    } else {
-        finish();
-    }
-}
-
-function recordResult(time)
-{
-    output[currentRepeat][tests[testIndex]] = time;
-    next();
-}
-
-function finish()
-{
-    var outputString = "{";
-    for (var test in output[0]) {
-        outputString += '"' + test + '":[';
-        for (var i = 0; i < output.length; i++) {
-             outputString += output[i][test] + ",";
-        }
-        outputString = outputString.substring(0, outputString.length - 1);
-        outputString += "],";
-    }
-    outputString = outputString.substring(0, outputString.length - 1);
-    outputString += "}";
-
-    location = "sunspider-results.html?" + encodeURI(outputString);
-}
-
-</script>
-
-<iframe id="testframe">
-</iframe>
-
-</body>
-</html>
diff --git a/SunSpider/hosted/sunspider-results.html b/SunSpider/hosted/sunspider-results.html
deleted file mode 100644
index cc74938..0000000
--- a/SunSpider/hosted/sunspider-results.html
+++ /dev/null
@@ -1,91 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<!--
- Copyright (C) 2007 Apple Inc.  All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source code must retain the above copyright
-    notice, this list of conditions and the following disclaimer.
- 2. Redistributions in binary form must reproduce the above copyright
-    notice, this list of conditions and the following disclaimer in the
-    documentation and/or other materials provided with the distribution.
-
- THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
--->
-
-<title>SunSpider JavaScript Benchmark Results</title>
-<link rel="stylesheet" href="sunspider.css"></link>
-</head>
-
-<body>
-<h2><span id="logo">&#x2600;</span>SunSpider JavaScript Benchmark Results</h2>
-
-<p><a href="sunspider-driver.html">Run Again</a></p>
-
-<p><input style="width: 90%;" id="selfUrl" type="text" readonly="readonly"></input><br>
-<small>(You can bookmark this results URL for later comparison.)</small></p>
-
-<form onsubmit="event.preventDefault(); compare(other.value);">To compare to another run, paste a saved result URL in the text field below and press enter:<br>
-<input style="width: 90%;" name="other" type="text"></input><br>
-</form>
-
-<pre id="console">
-</pre>
-
-
-<script>
-var selfUrlInput = document.getElementById("selfUrl");
-selfUrlInput.value = location;
-
-var output = pivot(eval("(" + decodeURI(location.search.substring(1)) + ")"));
-
-function pivot(input) {
-    var output = [];
-    for (var test in input) {
-        for (var i = 0; i < input[test].length; i++) {
-             if (!output[i])
-                 output[i] = {};
-             output[i][test] =  input[test][i];
-        }
-    }
-    return output;
-}
-
-function print(str) {
-    var console = document.getElementById("console");
-    console.appendChild(document.createTextNode(str));
-    console.appendChild(document.createElement("br"));
-}
-</script>
-
-<script src="sunspider-test-prefix.js"></script>
-<script src="sunspider-analyze-results.js"></script>
-<script src="sunspider-compare-results.js"></script>
-
-<script>
-var output2 = output;
-
-function compare(other)
-{
-    document.getElementById("console").innerHTML = "";
-    var output1 = pivot(eval("(" + decodeURI(other.split("?")[1]) + ")"));
-    sunspiderCompareResults(output1, output2);
-}
-</script>
-
-
-</body>
-</html>
diff --git a/SunSpider/hosted/sunspider.html b/SunSpider/hosted/sunspider.html
index f7dfd42..9e7101e 100644
--- a/SunSpider/hosted/sunspider.html
+++ b/SunSpider/hosted/sunspider.html
@@ -69,10 +69,12 @@ significant.</dd>
 
 </dl>
 
-<p><a href="sunspider-driver.html">Start Now!</a><br>
+<p><b>Current version - sunspider-0.9:</b> <a href="sunspider-0.9/driver.html">Start Now!</a><br>
 <small>(When you run the benchmark, be patient - it loops through all of the
 test cases five times and can take a minute or longer to complete.)</small></p>
 
+<a href="versions.html">All versions.</a>
+
 </body>
 
 </html>
diff --git a/SunSpider/hosted/versions.html b/SunSpider/hosted/versions.html
new file mode 100644
index 0000000..f5a43bb
--- /dev/null
+++ b/SunSpider/hosted/versions.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html>
+<head>
+
+<!--
+ Copyright (C) 2007 Apple Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+-->
+
+<title>SunSpider JavaScript Benchmark</title>
+<link rel="stylesheet" href="sunspider.css"></link>
+</head>
+
+<body>
+
+<h2><span id="logo">&#x2600;</span>SunSpider JavaScript Benchmark</h2>
+
+<p>This is SunSpider, a JavaScript benchmark. This benchmark tests the
+core JavaScript language only, not the DOM or other browser APIs. It
+is designed to compare different versions of the same browser, and
+different browsers to each other. This page lists all versions:</p>
+
+<ul>
+<li><a href="sunspider-0.9/driver.html">Version 0.9</a></li>
+<ul><a href="sunspider-0.9.1/driver.html">Version 0.9.1</a></li>
+
+</body>
+<html>
diff --git a/SunSpider/make-hosted b/SunSpider/make-hosted
index 946c0f4..e4531a4 100755
--- a/SunSpider/make-hosted
+++ b/SunSpider/make-hosted
@@ -29,49 +29,79 @@ open TEMPLATE, "<resources/TEMPLATE.html";
 my $template = do { local $/; <TEMPLATE> };
 close TEMPLATE;
 
+open DRIVER_TEMPLATE, "<resources/driver-TEMPLATE.html";
+my $driverTemplate = do { local $/; <DRIVER_TEMPLATE> };
+close DRIVER_TEMPLATE;
+
+open RESULTS_TEMPLATE, "<resources/results-TEMPLATE.html";
+my $resultsTemplate = do { local $/; <RESULTS_TEMPLATE> };
+close RESULTS_TEMPLATE;
+
 my @tests = ();
 my @categories = ();
 my %uniqueCategories = ();
 
-open TESTLIST, "<./tests/sunspider-0.9/LIST";
-while (<TESTLIST>) {
-    chomp;
-    next unless $_;
-    push @tests, $_;
-    my $category = $_;
-    $category =~ s/-.*//;
-    if (!$uniqueCategories{$category}) {
-        push @categories, $category;
-        $uniqueCategories{$category} = $category;
+my @suites = ("sunspider-0.9", "sunspider-0.9.1");
+
+foreach my $suite (@suites) {
+
+    mkdir "hosted/${suite}";
+
+    open TESTLIST, "<./tests/${suite}/LIST";
+    while (<TESTLIST>) {
+	chomp;
+	next unless $_;
+	push @tests, $_;
+	my $category = $_;
+	$category =~ s/-.*//;
+	if (!$uniqueCategories{$category}) {
+	    push @categories, $category;
+	    $uniqueCategories{$category} = $category;
+	}
     }
-}
-close TESTLIST;
+    close TESTLIST;
+
+    for my $test (@tests) {
+	my $name = "${test}";
 
-for my $test (@tests) {
-    my $name = "${test}";
+	open SCRIPT, "<tests/${suite}/${test}.js";
+	my $script = do { local $/; <SCRIPT> };
+	close SCRIPT;
 
-    open SCRIPT, "<tests/sunspider-0.9/${test}.js";
-    my $script = do { local $/; <SCRIPT> };
-    close SCRIPT;
+	my $output = $template;
+	$output =~ s/\@NAME\@/${name}/g;
+	$output =~ s/\@SCRIPT\@/${script}/g;
+
+	open OUTPUT, ">hosted/${suite}/${test}.html";
+	print OUTPUT $output;
+	close OUTPUT;
+    }
 
-    my $output = $template;
-    $output =~ s/\@NAME\@/${name}/g;
-    $output =~ s/\@SCRIPT\@/${script}/g;
+    my $output = $driverTemplate;
+    $output =~ s/\@SUITE\@/${suite}/g;
 
-    open OUTPUT, ">hosted/${test}.html";
+    open OUTPUT, ">hosted/${suite}/driver.html";
     print OUTPUT $output;
     close OUTPUT;
-}
 
+    $output = $resultsTemplate;
+    $output =~ s/\@SUITE\@/${suite}/g;
+
+    open OUTPUT, ">hosted/${suite}/results.html";
+    print OUTPUT $output;
+    close OUTPUT;
+
+
+    my $prefix = "var tests = [ " . join(", ", map { '"' . $_ . '"' } @tests) . " ];\n";
+    $prefix .= "var categories = [ " . join(", ", map { '"' . $_ . '"' } @categories) . " ];\n";
 
-my $prefix = "var tests = [ " . join(", ", map { '"' . $_ . '"' } @tests) . " ];\n";
-$prefix .= "var categories = [ " . join(", ", map { '"' . $_ . '"' } @categories) . " ];\n";
+    open PREFIX, ">hosted/${suite}/sunspider-test-prefix.js";
+    print PREFIX $prefix;
+    close PREFIX;
 
-open PREFIX, ">hosted/sunspider-test-prefix.js";
-print PREFIX $prefix;
-close PREFIX;
+    
+}
 
 system("cp resources/sunspider-analyze-results.js hosted");
 system("cp resources/sunspider-compare-results.js hosted");
-
 print "hosted/sunspider.html is ready to use.\n";
diff --git a/SunSpider/resources/TEMPLATE.html b/SunSpider/resources/TEMPLATE.html
index 098d0ed..7259e0f 100644
--- a/SunSpider/resources/TEMPLATE.html
+++ b/SunSpider/resources/TEMPLATE.html
@@ -26,14 +26,14 @@
 -->
 
 <title>SunSpider @NAME@</title>
-<link rel="stylesheet" href="sunspider.css">
+<link rel="stylesheet" href="../sunspider.css">
 </head>
 
 <body>
 <h3>@NAME@</h3>
 <div id="console">
 </div>
-<script src="sunspider-record-result.js"></script>
+<script src="../sunspider-record-result.js"></script>
 <script>
 
 var _sunSpiderStartDate = new Date();
diff --git a/SunSpider/resources/driver-TEMPLATE.html b/SunSpider/resources/driver-TEMPLATE.html
new file mode 100644
index 0000000..6a5e4af
--- /dev/null
+++ b/SunSpider/resources/driver-TEMPLATE.html
@@ -0,0 +1,97 @@
+<!DOCTYPE html>
+<html>
+<head>
+<!--
+ Copyright (C) 2007 Apple Inc.  All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+-->
+
+<title>SunSpider JavaScript Benchmark (In Progress...)</title>
+<link rel="stylesheet" href="../sunspider.css"></link>
+</head>
+
+<body onload="next()">
+
+<h2><span id="logo">&#x2600;</span>SunSpider JavaScript Benchmark <small>(In Progress...)</small></h2>
+<h4>Version: @SUITE@</h4>
+
+<script src="sunspider-test-prefix.js"></script>
+<script>
+var testIndex = -1;
+var currentRepeat = 0;
+var repeatCount = 5;
+
+var output = [];
+output.length = repeatCount;
+for (var i = 0; i < output.length; i++) {
+    output[i] = {};
+}
+
+function next() 
+{
+    window.setTimeout(reallyNext, 500);
+}
+
+function reallyNext() 
+{
+    testIndex++;
+    if (testIndex < tests.length) {
+        document.getElementById("testframe").src = tests[testIndex] + ".html";
+    } else if (++currentRepeat < repeatCount) { 
+        testIndex = 0;
+        document.getElementById("testframe").src = tests[testIndex] + ".html";
+    } else {
+        finish();
+    }
+}
+
+function recordResult(time)
+{
+    output[currentRepeat][tests[testIndex]] = time;
+    next();
+}
+
+function finish()
+{
+    var outputString = "{";
+    for (var test in output[0]) {
+        outputString += '"' + test + '":[';
+        for (var i = 0; i < output.length; i++) {
+             outputString += output[i][test] + ",";
+        }
+        outputString = outputString.substring(0, outputString.length - 1);
+        outputString += "],";
+    }
+    outputString = outputString.substring(0, outputString.length - 1);
+    outputString += "}";
+
+    location = "results.html?" + encodeURI(outputString);
+}
+
+</script>
+
+<iframe id="testframe">
+</iframe>
+
+</body>
+</html>
diff --git a/SunSpider/resources/results-TEMPLATE.html b/SunSpider/resources/results-TEMPLATE.html
new file mode 100644
index 0000000..8ebb11b
--- /dev/null
+++ b/SunSpider/resources/results-TEMPLATE.html
@@ -0,0 +1,93 @@
+<!DOCTYPE html>
+<html>
+<head>
+<!--
+ Copyright (C) 2007 Apple Inc.  All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+ OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+-->
+
+<title>SunSpider JavaScript Benchmark Results</title>
+<link rel="stylesheet" href="../sunspider.css"></link>
+</head>
+
+<body>
+<h2><span id="logo">&#x2600;</span>SunSpider JavaScript Benchmark Results</h2>
+
+<h4>Version: @SUITE@</h4>
+
+<p><a href="driver.html">Run Again</a></p>
+
+<p><input style="width: 90%;" id="selfUrl" type="text" readonly="readonly"></input><br>
+<small>(You can bookmark this results URL for later comparison.)</small></p>
+
+<form onsubmit="event.preventDefault(); compare(other.value);">To compare to another run, paste a saved result URL in the text field below and press enter:<br>
+<input style="width: 90%;" name="other" type="text"></input><br>
+</form>
+
+<pre id="console">
+</pre>
+
+
+<script>
+var selfUrlInput = document.getElementById("selfUrl");
+selfUrlInput.value = location;
+
+var output = pivot(eval("(" + decodeURI(location.search.substring(1)) + ")"));
+
+function pivot(input) {
+    var output = [];
+    for (var test in input) {
+        for (var i = 0; i < input[test].length; i++) {
+             if (!output[i])
+                 output[i] = {};
+             output[i][test] =  input[test][i];
+        }
+    }
+    return output;
+}
+
+function print(str) {
+    var console = document.getElementById("console");
+    console.appendChild(document.createTextNode(str));
+    console.appendChild(document.createElement("br"));
+}
+</script>
+
+<script src="sunspider-test-prefix.js"></script>
+<script src="../sunspider-analyze-results.js"></script>
+<script src="../sunspider-compare-results.js"></script>
+
+<script>
+var output2 = output;
+
+function compare(other)
+{
+    document.getElementById("console").innerHTML = "";
+    var output1 = pivot(eval("(" + decodeURI(other.split("?")[1]) + ")"));
+    sunspiderCompareResults(output1, output2);
+}
+</script>
+
+
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list