Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: benchmarks/v1/run.html

Issue 149530: Added a warning shown if the viewed version is not the current version of... (Closed) Base URL: http://v8.googlecode.com/svn/data/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>V8 Benchmark Suite</title> 3 <title>V8 Benchmark Suite</title>
4 <script type="text/javascript" src="base.js"></script> 4 <script type="text/javascript" src="base.js"></script>
5 <script type="text/javascript" src="richards.js"></script> 5 <script type="text/javascript" src="richards.js"></script>
6 <script type="text/javascript" src="deltablue.js"></script> 6 <script type="text/javascript" src="deltablue.js"></script>
7 <script type="text/javascript" src="crypto.js"></script> 7 <script type="text/javascript" src="crypto.js"></script>
8 <script type="text/javascript" src="raytrace.js"></script> 8 <script type="text/javascript" src="raytrace.js"></script>
9 <script type="text/javascript" src="earley-boyer.js"></script> 9 <script type="text/javascript" src="earley-boyer.js"></script>
10 <style> 10 <style>
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 margin: 20px; 55 margin: 20px;
56 width: 300px; 56 width: 300px;
57 height: 300px; 57 height: 300px;
58 float: right; 58 float: right;
59 background-color: rgb(229, 236, 249); 59 background-color: rgb(229, 236, 249);
60 background-image: url(v8-logo.png); 60 background-image: url(v8-logo.png);
61 background-position: center center; 61 background-position: center center;
62 background-repeat: no-repeat; 62 background-repeat: no-repeat;
63 border: 1px solid rgb(51, 102, 204); 63 border: 1px solid rgb(51, 102, 204);
64 } 64 }
65
66 div.warning {
67 background: #ffffd9;
68 border: 1px solid #d2d26a;
69 display: none;
70 margin: 1em 0 2em;
71 padding: 8px;
72 text-align: center;
73 }
74
65 </style> 75 </style>
66 76
67 <script type="text/javascript"> 77 <script type="text/javascript">
68 var completed = 0; 78 var completed = 0;
69 var benchmarks = BenchmarkSuite.CountBenchmarks(); 79 var benchmarks = BenchmarkSuite.CountBenchmarks();
70 function ShowProgress(name) { 80 function ShowProgress(name) {
71 var status = document.getElementById("status"); 81 var status = document.getElementById("status");
72 var percentage = ((++completed) / benchmarks) * 100; 82 var percentage = ((++completed) / benchmarks) * 100;
73 status.innerHTML = "Running: " + Math.round(percentage) + "% completed."; 83 status.innerHTML = "Running: " + Math.round(percentage) + "% completed.";
74 } 84 }
(...skipping 11 matching lines...) Expand all
86 status.innerHTML = "Score: " + score; 96 status.innerHTML = "Score: " + score;
87 } 97 }
88 98
89 99
90 function Run() { 100 function Run() {
91 BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress, 101 BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress,
92 NotifyResult: AddResult, 102 NotifyResult: AddResult,
93 NotifyScore: AddScore }); 103 NotifyScore: AddScore });
94 } 104 }
95 105
106 function ShowWarningIfObsolete() {
107 // If anything goes wrong we will just catch the exception and no
108 // warning is shown, i.e., no harm is done.
109 try {
110 var xmlhttp;
111 var next_version = parseInt(BenchmarkSuite.version) + 1;
112 var next_version_url = "../v" + next_version + "/run.html";
113 if (window.XMLHttpRequest) {
114 xmlhttp = new window.XMLHttpRequest();
115 } else if (window.ActiveXObject) {
116 xmlhttp = new window.ActiveXObject("Microsoft.XMLHTTP");
117 }
118 xmlhttp.open('GET', next_version_url, true);
119 xmlhttp.onreadystatechange = function() {
120 if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
121 document.getElementById('obsolete').style.display="block";
122 }
123 };
124 xmlhttp.send(null);
125 } catch(e) {
126 // Ignore exception if check for next version fails.
127 // Hence no warning is displayed.
128 }
129 }
130
96 function Load() { 131 function Load() {
97 var version = BenchmarkSuite.version; 132 var version = BenchmarkSuite.version;
98 document.getElementById("version").innerHTML = version; 133 document.getElementById("version").innerHTML = version;
134 ShowWarningIfObsolete();
99 window.setTimeout(Run, 200); 135 window.setTimeout(Run, 200);
100 } 136 }
101 </script> 137 </script>
102 </head> 138 </head>
103 <body onLoad="Load()"> 139 <body onLoad="Load()">
104 <div> 140 <div>
105 <div class="title"><h1>V8 Benchmark Suite - version <span id="version">?</span ></h1></div> 141 <div class="title"><h1>V8 Benchmark Suite - version <span id="version">?</span ></h1></div>
142 <div class="warning" id="obsolete">
143 Warning! This is not the latest version of V8 benchmark
144 suite. Consider running the
145 <a href="http://v8.googlecode.com/svn/data/benchmarks/current/run.html">
146 latest version</a>.
147 </div>
148
106 <table> 149 <table>
107 <tr> 150 <tr>
108 <td class="contents"> 151 <td class="contents">
109 This page contains a suite of pure JavaScript benchmarks that we have 152 This page contains a suite of pure JavaScript benchmarks that we have
110 used to tune V8. The final score is computed as the geometric mean of 153 used to tune V8. The final score is computed as the geometric mean of
111 the individual results to make it independent of the running times of 154 the individual results to make it independent of the running times of
112 the individual benchmarks and of a reference system (score 155 the individual benchmarks and of a reference system (score
113 100). Scores are not comparable across benchmark suite versions and 156 100). Scores are not comparable across benchmark suite versions and
114 higher scores means better performance: <em>Bigger is better!</em> 157 higher scores means better performance: <em>Bigger is better!</em>
115 158
(...skipping 10 matching lines...) Expand all
126 <div id="status" style="text-align: center; margin-top: 75px; font-size: 120%; font-weight: bold;">Starting...</div> 169 <div id="status" style="text-align: center; margin-top: 75px; font-size: 120%; font-weight: bold;">Starting...</div>
127 <div style="text-align: left; margin: 30px 0 0 90px;" id="results"> 170 <div style="text-align: left; margin: 30px 0 0 90px;" id="results">
128 <div> 171 <div>
129 </div> 172 </div>
130 </td></tr></table> 173 </td></tr></table>
131 174
132 </div> 175 </div>
133 176
134 </body> 177 </body>
135 </html> 178 </html>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698