8 Copyright (C) 2007 Apple Inc. All rights reserved.
9 Copyright (C) 2010 Mozilla Foundation
11 Redistribution and use in source and binary forms, with or without
12 modification, are permitted provided that the following conditions
14 1. Redistributions of source code must retain the above copyright
15 notice, this list of conditions and the following disclaimer.
16 2. Redistributions in binary form must reproduce the above copyright
17 notice, this list of conditions and the following disclaimer in the
18 documentation and/or other materials provided with the distribution.
20 THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
21 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
24 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
28 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 <title>Kraken JavaScript Benchmark Results (kraken-
1.1 test suite)
</title>
34 <link rel=
"stylesheet" href=
"../kraken.css">
39 <h2>Kraken JavaScript Benchmark Results
</h2>
41 <h3>Content Version: kraken-
1.1</h3>
43 <p><a href=
"driver.html">Run Again
</a></p>
45 <p><input style=
"width: 100%;" id=
"selfUrl" type=
"text" readonly=
"readonly"><br>
46 <small>(You can bookmark this results URL for later comparison.)
</small></p>
48 <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>
49 <input style=
"width: 100%;" name=
"other" type=
"text"><br>
52 <pre id=
"console"></pre>
55 <script src=
"../json2.js"></script>
56 <script src=
"../../../../../perf/kraken_benchmark_uitest.js"></script>
59 //XXX generate this automatically
61 "astar":"../explanations/astar.html",
62 "gaussian-blur":"../explanations/gaussian-blur.html",
63 "darkroom":"../explanations/darkroom.html",
64 "desaturate":"../explanations/desaturate.html",
65 "beat-detection":"../explanations/beat-detection.html",
66 "dft":"../explanations/dft.html",
67 "fft":"../explanations/fft.html",
68 "oscillator":"../explanations/oscillator.html",
69 "parse-financial":"../explanations/parse-financial.html",
70 "stringify-tinderbox":"../explanations/stringify-tinderbox.html"
74 var selfUrlInput
= document
.getElementById("selfUrl");
75 selfUrlInput
.value
= location
;
77 var outputJSON
= JSON
.parse(decodeURI(location
.search
.substring(1)));
78 var version
= outputJSON
["v"];
79 delete outputJSON
["v"];
80 var output
= pivot(outputJSON
);
82 function pivot(input
) {
84 for (var test
in input
) {
85 for (var i
= 0; i
< input
[test
].length
; i
++) {
88 output
[i
][test
] = input
[test
][i
];
95 var console
= document
.getElementById("console");
96 console
.innerHTML
+= str
;
97 console
.innerHTML
+= "<br>";
101 <script src=
"test-prefix.js"></script>
102 <script src=
"../analyze-results.js"></script>
103 <script src=
"../compare-results.js"></script>
106 var output2
= output
;
107 var version2
= version
;
109 function compare(other
)
111 document
.getElementById("console").innerHTML
= "";
113 var output1JSON
= JSON
.parse(decodeURI(other
.split("?")[1]));
114 var version1
= output1JSON
["v"];
115 delete output1JSON
["v"];
116 if (version1
!= version2
) {
117 print("ERROR: cannot compare version " + version1
+ ' with version ' + version2
);
119 var output1
= pivot(output1JSON
);
120 sunspiderCompareResults(output1
, output2
);