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