Changed benchmark html and css files to be almost validating HTML 4.01 and CSS.
Review URL: http://codereview.chromium.org/146076 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2259 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
1a12862c9a
commit
54e4562e7d
35
benchmarks/run.html
Normal file → Executable file
35
benchmarks/run.html
Normal file → Executable file
@ -1,5 +1,10 @@
|
||||
<html>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en">
|
||||
<head>
|
||||
<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">
|
||||
<title>V8 Benchmark Suite</title>
|
||||
<script type="text/javascript" src="base.js"></script>
|
||||
<script type="text/javascript" src="richards.js"></script>
|
||||
@ -25,12 +30,12 @@ function ShowProgress(name) {
|
||||
function AddResult(name, result) {
|
||||
var text = name + ': ' + result;
|
||||
var results = document.getElementById("results");
|
||||
results.innerHTML += (text + "<br/>");
|
||||
results.innerHTML += (text + "<br>");
|
||||
}
|
||||
|
||||
|
||||
function AddError(name, error) {
|
||||
AddResult(name, '<b>error</b>');
|
||||
AddResult(name, '<b>error<\/b>');
|
||||
success = false;
|
||||
}
|
||||
|
||||
@ -53,11 +58,11 @@ function Run() {
|
||||
function Load() {
|
||||
var version = BenchmarkSuite.version;
|
||||
document.getElementById("version").innerHTML = version;
|
||||
window.setTimeout(Run, 200);
|
||||
setTimeout(Run, 200);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="Load()">
|
||||
<body onload="Load()">
|
||||
<div>
|
||||
<div class="title"><h1>V8 Benchmark Suite - version <span id="version">?</span></h1></div>
|
||||
<table>
|
||||
@ -71,15 +76,15 @@ the individual benchmarks and of a reference system (score
|
||||
higher scores means better performance: <em>Bigger is better!</em>
|
||||
|
||||
<ul>
|
||||
<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>
|
||||
<li><b>RayTrace</b><br/>Ray tracer benchmark based on code by <a href="http://flog.co.nz/">Adam Burmister</a> (<i>935 lines</i>).</li>
|
||||
<li><b>EarleyBoyer</b><br/>Classic Scheme benchmarks, translated to JavaScript by Florian Loitsch's Scheme2Js compiler (<i>4685 lines</i>).</li>
|
||||
<li><b>RegExp</b><br/>Regular expression benchmark generated by extracting regular expression operations from 50 of the most popular web pages
|
||||
<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>
|
||||
<li><b>RayTrace</b><br>Ray tracer benchmark based on code by <a href="http://flog.co.nz/">Adam Burmister</a> (<i>935 lines</i>).</li>
|
||||
<li><b>EarleyBoyer</b><br>Classic Scheme benchmarks, translated to JavaScript by Florian Loitsch's Scheme2Js compiler (<i>4685 lines</i>).</li>
|
||||
<li><b>RegExp</b><br>Regular expression benchmark generated by extracting regular expression operations from 50 of the most popular web pages
|
||||
(<i>1614 lines</i>).
|
||||
</li>
|
||||
<li><b>Splay</b><br/>Data manipulation benchmark that deals with splay trees and exercises the automatic memory management subsystem (<i>378 lines</i>).</li>
|
||||
<li><b>Splay</b><br>Data manipulation benchmark that deals with splay trees and exercises the automatic memory management subsystem (<i>378 lines</i>).</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
@ -92,9 +97,9 @@ the <a href="http://v8.googlecode.com/svn/data/benchmarks/current/revisions.html
|
||||
|
||||
</td><td style="text-align: center">
|
||||
<div class="run">
|
||||
<div id="status" style="text-align: center; margin-top: 50px; font-size: 120%; font-weight: bold;">Starting...</div>
|
||||
<div style="text-align: left; margin: 30px 0 0 90px;" id="results">
|
||||
<div>
|
||||
<div id="status">Starting...</div>
|
||||
<div id="results">
|
||||
</div>
|
||||
</div>
|
||||
</td></tr></table>
|
||||
|
||||
|
38
benchmarks/style.css
Normal file → Executable file
38
benchmarks/style.css
Normal file → Executable file
@ -1,11 +1,7 @@
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
hr{
|
||||
hr {
|
||||
border: 1px solid;
|
||||
border-color: #36C;
|
||||
margin: 1em 0
|
||||
margin: 1em 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
@ -14,27 +10,17 @@ h1, h2, h3, h4 {
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 190%;
|
||||
font-size: 154%;
|
||||
height: 1.2em;
|
||||
}
|
||||
|
||||
|
||||
h2{
|
||||
font-size: 140%;
|
||||
height: 1.2em;
|
||||
}
|
||||
|
||||
h3{
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
li{
|
||||
li {
|
||||
margin: .3em 0 1em 0;
|
||||
}
|
||||
|
||||
body{
|
||||
body {
|
||||
font-family: Helvetica,Arial,sans-serif;
|
||||
font-size: small;
|
||||
color: #000;
|
||||
background-color: #fff;
|
||||
}
|
||||
@ -54,7 +40,7 @@ div.subtitle {
|
||||
}
|
||||
|
||||
td.contents {
|
||||
text-align: start;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
div.run {
|
||||
@ -68,3 +54,15 @@ div.run {
|
||||
background-repeat: no-repeat;
|
||||
border: 1px solid rgb(51, 102, 204);
|
||||
}
|
||||
|
||||
#status {
|
||||
text-align: center;
|
||||
margin-top: 50px;
|
||||
font-size: 120%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#results {
|
||||
text-align: left;
|
||||
margin: 30px 0 0 90px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user