| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 | |
| 5 <meta charset=utf8> | |
| 6 | |
| 7 <!-- | |
| 8 Copyright (C) 2007 Apple Inc. All rights reserved. | |
| 9 Copyright (C) 2010 Mozilla Foundation | |
| 10 | |
| 11 Redistribution and use in source and binary forms, with or without | |
| 12 modification, are permitted provided that the following conditions | |
| 13 are met: | |
| 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. | |
| 19 | |
| 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. | |
| 31 --> | |
| 32 | |
| 33 <title>Kraken JavaScript Benchmark Results (@SUITE@ test suite)</title> | |
| 34 <link rel="stylesheet" href="../kraken.css"> | |
| 35 </head> | |
| 36 | |
| 37 <body> | |
| 38 <div id="content"> | |
| 39 <h2>Kraken JavaScript Benchmark Results</h2> | |
| 40 <div id="results"> | |
| 41 <h3>Content Version: @SUITE@</h3> | |
| 42 | |
| 43 <p><a href="driver.html">Run Again</a></p> | |
| 44 | |
| 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> | |
| 47 | |
| 48 <form onsubmit="event.preventDefault(); compare(other.value);">To compare to ano
ther 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> | |
| 50 </form> | |
| 51 | |
| 52 <pre id="console"></pre> | |
| 53 </div> | |
| 54 </div> | |
| 55 <script src="../json2.js"></script> | |
| 56 <script src="kraken_benchmark_uitest.js"></script> | |
| 57 <script> | |
| 58 | |
| 59 //XXX generate this automatically | |
| 60 var explanations = { | |
| 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" | |
| 71 | |
| 72 } | |
| 73 | |
| 74 var selfUrlInput = document.getElementById("selfUrl"); | |
| 75 selfUrlInput.value = location; | |
| 76 | |
| 77 var outputJSON = JSON.parse(decodeURI(location.search.substring(1))); | |
| 78 var version = outputJSON["v"]; | |
| 79 delete outputJSON["v"]; | |
| 80 var output = pivot(outputJSON); | |
| 81 | |
| 82 function pivot(input) { | |
| 83 var output = []; | |
| 84 for (var test in input) { | |
| 85 for (var i = 0; i < input[test].length; i++) { | |
| 86 if (!output[i]) | |
| 87 output[i] = {}; | |
| 88 output[i][test] = input[test][i]; | |
| 89 } | |
| 90 } | |
| 91 return output; | |
| 92 } | |
| 93 | |
| 94 function print(str) { | |
| 95 var console = document.getElementById("console"); | |
| 96 console.innerHTML += str; | |
| 97 console.innerHTML += "<br>"; | |
| 98 } | |
| 99 </script> | |
| 100 | |
| 101 <script src="test-prefix.js"></script> | |
| 102 <script src="../analyze-results.js"></script> | |
| 103 <script src="../compare-results.js"></script> | |
| 104 | |
| 105 <script> | |
| 106 var output2 = output; | |
| 107 var version2 = version; | |
| 108 | |
| 109 function compare(other) | |
| 110 { | |
| 111 document.getElementById("console").innerHTML = ""; | |
| 112 | |
| 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 ' + v
ersion2); | |
| 118 } else { | |
| 119 var output1 = pivot(output1JSON); | |
| 120 sunspiderCompareResults(output1, output2); | |
| 121 } | |
| 122 } | |
| 123 </script> | |
| 124 | |
| 125 | |
| 126 </body> | |
| 127 </html> | |
| OLD | NEW |