run.html 5.36 KB
Newer Older
1 2 3
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
  "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
4
<head>
5 6 7
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
8 9 10 11 12 13 14
<title>V8 Benchmark Suite</title>
<script type="text/javascript" src="base.js"></script>
<script type="text/javascript" src="richards.js"></script>
<script type="text/javascript" src="deltablue.js"></script>
<script type="text/javascript" src="crypto.js"></script>
<script type="text/javascript" src="raytrace.js"></script>
<script type="text/javascript" src="earley-boyer.js"></script>
15
<script type="text/javascript" src="regexp.js"></script>
16
<script type="text/javascript" src="splay.js"></script>
17
<script type="text/javascript" src="navier-stokes.js"></script>
18
<link type="text/css" rel="stylesheet" href="style.css" />
19 20 21
<script type="text/javascript">
var completed = 0;
var benchmarks = BenchmarkSuite.CountBenchmarks();
22 23
var success = true;

24 25 26 27 28 29 30 31
function ShowProgress(name) {
  var status = document.getElementById("status");
  var percentage = ((++completed) / benchmarks) * 100;
  status.innerHTML = "Running: " + Math.round(percentage) + "% completed.";
}


function AddResult(name, result) {
32
  var text = name + ': ' + result;
33
  var results = document.getElementById("results");
34
  results.innerHTML += (text + "<br>");
35 36 37
}


38
function AddError(name, error) {
39
  AddResult(name, '<b>error<\/b>');
40 41 42 43
  success = false;
}


44 45
function AddScore(score) {
  var status = document.getElementById("status");
46
  if (success) {
47
    status.innerHTML = "Score: " + score;
48
  }
49 50 51 52 53
}


function Run() {
  BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress,
54
                             NotifyError: AddError,
55
                             NotifyResult: AddResult,
56
                             NotifyScore: AddScore });
57 58
}

59
function ShowWarningIfObsolete() {
60
  // If anything goes wrong we will just catch the exception and no
61 62 63
  // warning is shown, i.e., no harm is done.
  try {
    var xmlhttp;
64 65
    var next_version = parseInt(BenchmarkSuite.version) + 1;
    var next_version_url = "../v" + next_version + "/run.html";
66 67 68 69 70 71 72 73 74 75 76 77 78
    if (window.XMLHttpRequest) {
      xmlhttp = new window.XMLHttpRequest();
    } else if (window.ActiveXObject) {
      xmlhttp = new window.ActiveXObject("Microsoft.XMLHTTP");
    }
    xmlhttp.open('GET', next_version_url, true);
    xmlhttp.onreadystatechange = function() {
      if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
        document.getElementById('obsolete').style.display="block";
      }
    };
    xmlhttp.send(null);
  } catch(e) {
79
    // Ignore exception if check for next version fails.
80 81 82 83
    // Hence no warning is displayed.
  }
}

84 85 86
function Load() {
  var version = BenchmarkSuite.version;
  document.getElementById("version").innerHTML = version;
87
  ShowWarningIfObsolete();
88
  setTimeout(Run, 200);
89 90 91
}
</script>
</head>
92
<body onload="Load()">
93 94
<div>
  <div class="title"><h1>V8 Benchmark Suite - version <span id="version">?</span></h1></div>
95
  <div class="warning" id="obsolete">
96
Warning! This is not the latest version of the V8 benchmark
97
suite. Consider running the
98
<a href="http://v8.googlecode.com/svn/data/benchmarks/current/run.html">
99
latest version</a>.
100
  </div>
101 102 103 104 105 106 107 108 109 110 111
  <table>
    <tr>
      <td class="contents">
This page contains a suite of pure JavaScript benchmarks that we have
used to tune V8. The final score is computed as the geometric mean of
the individual results to make it independent of the running times of
the individual benchmarks and of a reference system (score
100). Scores are not comparable across benchmark suite versions and
higher scores means better performance: <em>Bigger is better!</em>

<ul>
112 113 114
<li><b>Richards</b><br>OS kernel simulation benchmark, originally written in BCPL by Martin Richards (<i>539 lines</i>).</li>
<li><b>DeltaBlue</b><br>One-way constraint solver, originally written in Smalltalk by John Maloney and Mario Wolczko (<i>880 lines</i>).</li>
<li><b>Crypto</b><br>Encryption and decryption benchmark based on code by Tom Wu (<i>1698 lines</i>).</li>
115 116
<li><b>RayTrace</b><br>Ray tracer benchmark based on code by <a href="http://flog.co.nz/">Adam Burmister</a> (<i>904 lines</i>).</li>
<li><b>EarleyBoyer</b><br>Classic Scheme benchmarks, translated to JavaScript by Florian Loitsch's Scheme2Js compiler (<i>4684 lines</i>).</li>
117
<li><b>RegExp</b><br>Regular expression benchmark generated by extracting regular expression operations from 50 of the most popular web pages
118
(<i>1761 lines</i>).
119
</li>
120
<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>
121
<li><b>NavierStokes</b><br>Solves NavierStokes equations in 2D, heavily manipulating double precision arrays. Based on Oliver Hunt's code (<i>387 lines</i>).</li>
122 123
</ul>

124 125 126 127 128 129 130
<p>
Note that benchmark results are not comparable unless both results are
run with the same revision of the benchmark suite.  We will be making
revisions from time to time in order to fix bugs or expand the scope
of the benchmark suite.  For previous revisions and the change log see
the <a href="http://v8.googlecode.com/svn/data/benchmarks/current/revisions.html">revisions</a> page.
</p>
131

132 133
</td><td style="text-align: center">
<div class="run">
134 135 136
  <div id="status">Starting...</div>
  <div id="results">
  </div>
137 138 139 140 141 142 143
</div>
</td></tr></table>

</div>

</body>
</html>