OLD | NEW |
| (Empty) |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
2 "http://www.w3.org/TR/html4/strict.dtd"> | |
3 <html lang="en"> | |
4 <head> | |
5 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> | |
6 <meta http-equiv="Content-Script-Type" content="text/javascript"> | |
7 <meta http-equiv="Content-Style-Type" content="text/css"> | |
8 <title>V8 Benchmark Suite</title> | |
9 <script type="text/javascript" src="../json2.js"></script> | |
10 <script type="text/javascript" src="../../perf/v8_benchmark_uitest.js"></script> | |
11 <script type="text/javascript" src="base.js"></script> | |
12 <script type="text/javascript" src="richards.js"></script> | |
13 <script type="text/javascript" src="deltablue.js"></script> | |
14 <script type="text/javascript" src="crypto.js"></script> | |
15 <script type="text/javascript" src="raytrace.js"></script> | |
16 <script type="text/javascript" src="earley-boyer.js"></script> | |
17 <script type="text/javascript" src="regexp.js"></script> | |
18 <script type="text/javascript" src="splay.js"></script> | |
19 <link type="text/css" rel="stylesheet" href="style.css" /> | |
20 <script type="text/javascript"> | |
21 var completed = 0; | |
22 var benchmarks = BenchmarkSuite.CountBenchmarks(); | |
23 var success = true; | |
24 | |
25 function ShowProgress(name) { | |
26 var status = document.getElementById("status"); | |
27 var percentage = ((++completed) / benchmarks) * 100; | |
28 status.innerHTML = "Running: " + Math.round(percentage) + "% completed."; | |
29 } | |
30 | |
31 | |
32 function AddResult(name, result) { | |
33 automation.AddResult(name, result); | |
34 var text = name + ': ' + result; | |
35 var results = document.getElementById("results"); | |
36 results.innerHTML += (text + "<br>"); | |
37 } | |
38 | |
39 | |
40 function AddError(name, error) { | |
41 AddResult(name, '<b>error<\/b>'); | |
42 success = false; | |
43 } | |
44 | |
45 | |
46 function AddScore(score) { | |
47 automation.SetScore(score); | |
48 automation.SetDone(); | |
49 var status = document.getElementById("status"); | |
50 if (success) { | |
51 status.innerHTML = "Score: " + score; | |
52 } | |
53 } | |
54 | |
55 | |
56 function Run() { | |
57 BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress, | |
58 NotifyError: AddError, | |
59 NotifyResult: AddResult, | |
60 NotifyScore: AddScore }); | |
61 } | |
62 | |
63 function ShowWarningIfObsolete() { | |
64 // If anything goes wrong we will just catch the exception and no | |
65 // warning is shown, i.e., no harm is done. | |
66 try { | |
67 var xmlhttp; | |
68 var next_version = parseInt(BenchmarkSuite.version) + 1; | |
69 var next_version_url = "../v" + next_version + "/run.html"; | |
70 if (window.XMLHttpRequest) { | |
71 xmlhttp = new window.XMLHttpRequest(); | |
72 } else if (window.ActiveXObject) { | |
73 xmlhttp = new window.ActiveXObject("Microsoft.XMLHTTP"); | |
74 } | |
75 xmlhttp.open('GET', next_version_url, true); | |
76 xmlhttp.onreadystatechange = function() { | |
77 if (xmlhttp.readyState == 4 && xmlhttp.status == 200) { | |
78 document.getElementById('obsolete').style.display="block"; | |
79 } | |
80 }; | |
81 xmlhttp.send(null); | |
82 } catch(e) { | |
83 // Ignore exception if check for next version fails. | |
84 // Hence no warning is displayed. | |
85 } | |
86 } | |
87 | |
88 function Load() { | |
89 var version = BenchmarkSuite.version; | |
90 document.getElementById("version").innerHTML = version; | |
91 ShowWarningIfObsolete(); | |
92 setTimeout(Run, 200); | |
93 } | |
94 </script> | |
95 </head> | |
96 <body onload="Load()"> | |
97 <div> | |
98 <div class="title"><h1>V8 Benchmark Suite - version <span id="version">?</span
></h1></div> | |
99 <div class="warning" id="obsolete"> | |
100 Warning! This is not the latest version of the V8 benchmark | |
101 suite. Consider running the | |
102 <a href="http://v8.googlecode.com/svn/data/benchmarks/current/run.html"> | |
103 latest version</a>. | |
104 </div> | |
105 <table> | |
106 <tr> | |
107 <td class="contents"> | |
108 This page contains a suite of pure JavaScript benchmarks that we have | |
109 used to tune V8. The final score is computed as the geometric mean of | |
110 the individual results to make it independent of the running times of | |
111 the individual benchmarks and of a reference system (score | |
112 100). Scores are not comparable across benchmark suite versions and | |
113 higher scores means better performance: <em>Bigger is better!</em> | |
114 | |
115 <ul> | |
116 <li><b>Richards</b><br>OS kernel simulation benchmark, originally written in BCP
L by Martin Richards (<i>539 lines</i>).</li> | |
117 <li><b>DeltaBlue</b><br>One-way constraint solver, originally written in Smallta
lk by John Maloney and Mario Wolczko (<i>880 lines</i>).</li> | |
118 <li><b>Crypto</b><br>Encryption and decryption benchmark based on code by Tom Wu
(<i>1698 lines</i>).</li> | |
119 <li><b>RayTrace</b><br>Ray tracer benchmark based on code by <a href="http://flo
g.co.nz/">Adam Burmister</a> (<i>904 lines</i>).</li> | |
120 <li><b>EarleyBoyer</b><br>Classic Scheme benchmarks, translated to JavaScript by
Florian Loitsch's Scheme2Js compiler (<i>4684 lines</i>).</li> | |
121 <li><b>RegExp</b><br>Regular expression benchmark generated by extracting regula
r expression operations from 50 of the most popular web pages | |
122 (<i>1761 lines</i>). | |
123 </li> | |
124 <li><b>Splay</b><br>Data manipulation benchmark that deals with splay trees and
exercises the automatic memory management subsystem (<i>394 lines</i>).</li> | |
125 </ul> | |
126 | |
127 <p> | |
128 Note that benchmark results are not comparable unless both results are | |
129 run with the same revision of the benchmark suite. We will be making | |
130 revisions from time to time in order to fix bugs or expand the scope | |
131 of the benchmark suite. For previous revisions and the change log see | |
132 the <a href="http://v8.googlecode.com/svn/data/benchmarks/current/revisions.html
">revisions</a> page. | |
133 </p> | |
134 | |
135 </td><td style="text-align: center"> | |
136 <div class="run"> | |
137 <div id="status">Starting...</div> | |
138 <div id="results"> | |
139 </div> | |
140 </div> | |
141 </td></tr></table> | |
142 | |
143 </div> | |
144 | |
145 </body> | |
146 </html> | |
OLD | NEW |