2009-06-24 10:10:49 +00:00
< !DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
< html lang = "en" >
2008-09-02 11:06:49 +00:00
< head >
2009-06-24 10:10:49 +00:00
< 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" >
2008-09-02 11:06:49 +00:00
< 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 >
2009-01-30 11:35:15 +00:00
< script type = "text/javascript" src = "regexp.js" > < / script >
2009-05-12 08:23:11 +00:00
< script type = "text/javascript" src = "splay.js" > < / script >
2012-02-14 15:07:15 +00:00
< script type = "text/javascript" src = "navier-stokes.js" > < / script >
2009-06-23 08:07:12 +00:00
< link type = "text/css" rel = "stylesheet" href = "style.css" / >
2008-09-02 11:06:49 +00:00
< script type = "text/javascript" >
var completed = 0;
var benchmarks = BenchmarkSuite.CountBenchmarks();
2008-10-22 11:55:08 +00:00
var success = true;
2008-09-02 11:06:49 +00:00
function ShowProgress(name) {
var status = document.getElementById("status");
var percentage = ((++completed) / benchmarks) * 100;
status.innerHTML = "Running: " + Math.round(percentage) + "% completed.";
}
function AddResult(name, result) {
2009-01-13 09:27:47 +00:00
var text = name + ': ' + result;
2008-09-02 11:06:49 +00:00
var results = document.getElementById("results");
2009-06-24 10:10:49 +00:00
results.innerHTML += (text + "< br > ");
2008-09-02 11:06:49 +00:00
}
2008-10-22 11:55:08 +00:00
function AddError(name, error) {
2009-06-24 10:10:49 +00:00
AddResult(name, '< b > error< \/b>');
2008-10-22 11:55:08 +00:00
success = false;
}
2008-09-02 11:06:49 +00:00
function AddScore(score) {
var status = document.getElementById("status");
2008-10-22 11:55:08 +00:00
if (success) {
2009-01-13 09:27:47 +00:00
status.innerHTML = "Score: " + score;
2008-10-22 11:55:08 +00:00
}
2008-09-02 11:06:49 +00:00
}
function Run() {
BenchmarkSuite.RunSuites({ NotifyStep: ShowProgress,
2008-10-22 11:55:08 +00:00
NotifyError: AddError,
2008-09-02 11:06:49 +00:00
NotifyResult: AddResult,
2012-03-15 17:13:50 +00:00
NotifyScore: AddScore });
2008-09-02 11:06:49 +00:00
}
2009-07-15 08:47:51 +00:00
function ShowWarningIfObsolete() {
2012-03-15 17:13:50 +00:00
// If anything goes wrong we will just catch the exception and no
2009-07-15 08:47:51 +00:00
// warning is shown, i.e., no harm is done.
try {
var xmlhttp;
2012-03-15 17:13:50 +00:00
var next_version = parseInt(BenchmarkSuite.version) + 1;
var next_version_url = "../v" + next_version + "/run.html";
2009-07-15 08:47:51 +00:00
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) {
2012-03-15 17:13:50 +00:00
// Ignore exception if check for next version fails.
2009-07-15 08:47:51 +00:00
// Hence no warning is displayed.
}
}
2008-09-02 11:06:49 +00:00
function Load() {
var version = BenchmarkSuite.version;
document.getElementById("version").innerHTML = version;
2012-03-15 17:13:50 +00:00
ShowWarningIfObsolete();
2009-06-24 10:10:49 +00:00
setTimeout(Run, 200);
2008-09-02 11:06:49 +00:00
}
< / script >
< / head >
2009-06-24 10:10:49 +00:00
< body onload = "Load()" >
2008-09-02 11:06:49 +00:00
< div >
< div class = "title" > < h1 > V8 Benchmark Suite - version < span id = "version" > ?< / span > < / h1 > < / div >
2012-03-15 17:13:50 +00:00
< div class = "warning" id = "obsolete" >
2009-07-15 09:35:04 +00:00
Warning! This is not the latest version of the V8 benchmark
2012-03-15 17:13:50 +00:00
suite. Consider running the
2009-07-15 08:47:51 +00:00
< a href = "http://v8.googlecode.com/svn/data/benchmarks/current/run.html" >
2012-03-15 17:13:50 +00:00
latest version< / a > .
2009-07-15 08:47:51 +00:00
< / div >
2008-09-02 11:06:49 +00:00
< 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 >
2009-06-24 10:10:49 +00:00
< 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 >
2010-05-17 05:59:20 +00:00
< 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 >
2009-06-24 10:10:49 +00:00
< li > < b > RegExp< / b > < br > Regular expression benchmark generated by extracting regular expression operations from 50 of the most popular web pages
2010-09-20 10:36:21 +00:00
(< i > 1761 lines< / i > ).
2009-01-30 11:35:15 +00:00
< / li >
2010-06-28 12:28:37 +00:00
< 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 >
2012-03-15 17:13:50 +00:00
< 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 >
2008-09-02 11:06:49 +00:00
< / ul >
2008-12-02 10:08:39 +00:00
< 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 >
2008-09-25 13:48:27 +00:00
2008-09-02 11:06:49 +00:00
< / td > < td style = "text-align: center" >
< div class = "run" >
2009-06-24 10:10:49 +00:00
< div id = "status" > Starting...< / div >
< div id = "results" >
< / div >
2008-09-02 11:06:49 +00:00
< / div >
< / td > < / tr > < / table >
< / div >
< / body >
< / html >