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

Side by Side Diff: benchmarks/run.html

Issue 8053: Improve error reporting in benchmarks. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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 | « benchmarks/base.js ('k') | benchmarks/run.js » ('j') | 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 background-image: url(v8-logo.png); 56 background-image: url(v8-logo.png);
57 background-position: center center; 57 background-position: center center;
58 background-repeat: no-repeat; 58 background-repeat: no-repeat;
59 border: 1px solid rgb(51, 102, 204); 59 border: 1px solid rgb(51, 102, 204);
60 } 60 }
61 </style> 61 </style>
62 62
63 <script type="text/javascript"> 63 <script type="text/javascript">
64 var completed = 0; 64 var completed = 0;
65 var benchmarks = BenchmarkSuite.CountBenchmarks(); 65 var benchmarks = BenchmarkSuite.CountBenchmarks();
66 var success = true;
67
66 function ShowProgress(name) { 68 function ShowProgress(name) {
67 var status = document.getElementById("status"); 69 var status = document.getElementById("status");
68 var percentage = ((++completed) / benchmarks) * 100; 70 var percentage = ((++completed) / benchmarks) * 100;
69 status.innerHTML = "Running: " + Math.round(percentage) + "% completed."; 71 status.innerHTML = "Running: " + Math.round(percentage) + "% completed.";
70 } 72 }
71 73
72 74
73 function AddResult(name, result) { 75 function AddResult(name, result) {
74 var text = name + ': ' + result; 76 var text = name + ': ' + result;
75 var results = document.getElementById("results"); 77 var results = document.getElementById("results");
76 results.innerHTML += (text + "<br/>"); 78 results.innerHTML += (text + "<br/>");
77 } 79 }
78 80
79 81
82 function AddError(name, error) {
83 AddResult(name, '<b>error</b>');
84 success = false;
85 }
86
87
80 function AddScore(score) { 88 function AddScore(score) {
81 var status = document.getElementById("status"); 89 var status = document.getElementById("status");
82 status.innerHTML = "Score: " + score; 90 if (success) {
91 status.innerHTML = "Score: " + score;
92 }
83 } 93 }
84 94
85 95
86 function Run() { 96 function Run() {
87 BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress, 97 BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress,
98 NotifyError: AddError,
88 NotifyResult: AddResult, 99 NotifyResult: AddResult,
89 NotifyScore: AddScore }); 100 NotifyScore: AddScore });
90 } 101 }
91 102
92 function Load() { 103 function Load() {
93 var version = BenchmarkSuite.version; 104 var version = BenchmarkSuite.version;
94 document.getElementById("version").innerHTML = version; 105 document.getElementById("version").innerHTML = version;
95 window.setTimeout(Run, 200); 106 window.setTimeout(Run, 200);
96 } 107 }
97 </script> 108 </script>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 <div id="status" style="text-align: center; margin-top: 75px; font-size: 120%; font-weight: bold;">Starting...</div> 162 <div id="status" style="text-align: center; margin-top: 75px; font-size: 120%; font-weight: bold;">Starting...</div>
152 <div style="text-align: left; margin: 30px 0 0 90px;" id="results"> 163 <div style="text-align: left; margin: 30px 0 0 90px;" id="results">
153 <div> 164 <div>
154 </div> 165 </div>
155 </td></tr></table> 166 </td></tr></table>
156 167
157 </div> 168 </div>
158 169
159 </body> 170 </body>
160 </html> 171 </html>
OLDNEW
« no previous file with comments | « benchmarks/base.js ('k') | benchmarks/run.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698