• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<html>
3<head>
4
5<meta charset=utf8>
6
7<!--
8 Copyright (C) 2007 Apple Inc.  All rights reserved.
9
10 Redistribution and use in source and binary forms, with or without
11 modification, are permitted provided that the following conditions
12 are met:
13 1. Redistributions of source code must retain the above copyright
14    notice, this list of conditions and the following disclaimer.
15 2. Redistributions in binary form must reproduce the above copyright
16    notice, this list of conditions and the following disclaimer in the
17    documentation and/or other materials provided with the distribution.
18
19 THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
20 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
24 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
26 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
27 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30-->
31
32<title>SunSpider 0.9.1 JavaScript Benchmark Results (@SUITE@ test suite)</title>
33<link rel="stylesheet" href="../sunspider.css">
34</head>
35
36<body>
37<h2><span id="logo">&#x2600;</span>SunSpider 0.9.1 JavaScript Benchmark Results</h2>
38
39<h3>Content Version: @SUITE@</h3>
40
41<p><a href="driver.html">Run Again</a></p>
42
43<p><input style="width: 90%;" id="selfUrl" type="text" readonly="readonly"><br>
44<small>(You can bookmark this results URL for later comparison.)</small></p>
45
46<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>
47<input style="width: 90%;" name="other" type="text"><br>
48</form>
49
50<pre id="console">
51</pre>
52
53<script src="../json2.js"></script>
54<script>
55var selfUrlInput = document.getElementById("selfUrl");
56selfUrlInput.value = location;
57
58var outputJSON = JSON.parse(decodeURI(location.search.substring(1)));
59var version = outputJSON["v"];
60delete outputJSON["v"];
61var output = pivot(outputJSON);
62
63function pivot(input) {
64    var output = [];
65    for (var test in input) {
66        for (var i = 0; i < input[test].length; i++) {
67             if (!output[i])
68                 output[i] = {};
69             output[i][test] =  input[test][i];
70        }
71    }
72    return output;
73}
74
75function print(str) {
76    var console = document.getElementById("console");
77    console.appendChild(document.createTextNode(str));
78    console.appendChild(document.createElement("br"));
79}
80</script>
81
82<script src="sunspider-test-prefix.js"></script>
83<script src="../sunspider-analyze-results.js"></script>
84<script src="../sunspider-compare-results.js"></script>
85
86<script>
87var output2 = output;
88var version2 = version;
89
90function compare(other)
91{
92    document.getElementById("console").innerHTML = "";
93
94    var output1JSON = JSON.parse(decodeURI(other.split("?")[1]));
95    var version1 = output1JSON["v"];
96    delete output1JSON["v"];
97    if (version1 != version2) {
98        print("ERROR: cannot compare version " + version1 + ' with version ' + version2);
99    } else {
100        var output1 = pivot(output1JSON);
101        sunspiderCompareResults(output1, output2);
102    }
103}
104</script>
105
106
107</body>
108</html>
109