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> |
| 57 |
| 58 //XXX generate this automatically |
| 59 var explanations = { |
| 60 "astar":"../explanations/astar.html", |
| 61 "gaussian-blur":"../explanations/gaussian-blur.html", |
| 62 "darkroom":"../explanations/darkroom.html", |
| 63 "desaturate":"../explanations/desaturate.html", |
| 64 "beat-detection":"../explanations/beat-detection.html", |
| 65 "dft":"../explanations/dft.html", |
| 66 "fft":"../explanations/fft.html", |
| 67 "oscillator":"../explanations/oscillator.html", |
| 68 "parse-financial":"../explanations/parse-financial.html", |
| 69 "stringify-tinderbox":"../explanations/stringify-tinderbox.html" |
| 70 |
| 71 } |
| 72 |
| 73 var selfUrlInput = document.getElementById("selfUrl"); |
| 74 selfUrlInput.value = location; |
| 75 |
| 76 var outputJSON = JSON.parse(decodeURI(location.search.substring(1))); |
| 77 var version = outputJSON["v"]; |
| 78 delete outputJSON["v"]; |
| 79 var output = pivot(outputJSON); |
| 80 |
| 81 function pivot(input) { |
| 82 var output = []; |
| 83 for (var test in input) { |
| 84 for (var i = 0; i < input[test].length; i++) { |
| 85 if (!output[i]) |
| 86 output[i] = {}; |
| 87 output[i][test] = input[test][i]; |
| 88 } |
| 89 } |
| 90 return output; |
| 91 } |
| 92 |
| 93 function print(str) { |
| 94 var console = document.getElementById("console"); |
| 95 console.innerHTML += str; |
| 96 console.innerHTML += "<br>"; |
| 97 } |
| 98 </script> |
| 99 |
| 100 <script src="test-prefix.js"></script> |
| 101 <script src="../analyze-results.js"></script> |
| 102 <script src="../compare-results.js"></script> |
| 103 |
| 104 <script> |
| 105 var output2 = output; |
| 106 var version2 = version; |
| 107 |
| 108 function compare(other) |
| 109 { |
| 110 document.getElementById("console").innerHTML = ""; |
| 111 |
| 112 var output1JSON = JSON.parse(decodeURI(other.split("?")[1])); |
| 113 var version1 = output1JSON["v"]; |
| 114 delete output1JSON["v"]; |
| 115 if (version1 != version2) { |
| 116 print("ERROR: cannot compare version " + version1 + ' with version ' + v
ersion2); |
| 117 } else { |
| 118 var output1 = pivot(output1JSON); |
| 119 sunspiderCompareResults(output1, output2); |
| 120 } |
| 121 } |
| 122 </script> |
| 123 |
| 124 |
| 125 </body> |
| 126 </html> |
OLD | NEW |