Added regexp benchmark
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1190 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
6e13e8ce37
commit
9083e7e239
@ -73,7 +73,7 @@ BenchmarkSuite.suites = [];
|
||||
// Scores are not comparable across versions. Bump the version if
|
||||
// you're making changes that will affect that scores, e.g. if you add
|
||||
// a new benchmark or change an existing one.
|
||||
BenchmarkSuite.version = '2';
|
||||
BenchmarkSuite.version = '3';
|
||||
|
||||
|
||||
// To make the benchmark results predictable, we replace Math.random
|
||||
|
1614
benchmarks/regexp.js
Normal file
1614
benchmarks/regexp.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -20,6 +20,18 @@ the benchmark suite.
|
||||
|
||||
</p>
|
||||
|
||||
<div class="subtitle"><h3>Version 3 (<a href="http://v8.googlecode.com/svn/data/benchmarks/v3/run.html">link</a>)</h3></div>
|
||||
|
||||
<p>Version 3 adds a new benchmark, <i>RegExp</i>. The RegExp
|
||||
benchmark is generated by loading 50 of the most popular pages on the
|
||||
web and logging all regexp operations performed. Each operation is
|
||||
given a weight that is calculated from an estimate of the popularity
|
||||
of the pages where it occurs and the number of times it is executed
|
||||
while loading each page. Finally the literal letters in the data are
|
||||
encoded using ROT13 in a way that does not affect how the regexps
|
||||
match their input.
|
||||
</p>
|
||||
|
||||
<div class="subtitle"><h3>Version 2 (<a href="http://v8.googlecode.com/svn/data/benchmarks/v2/run.html">link</a>)</h3></div>
|
||||
|
||||
<p>For version 2 the crypto benchmark was fixed. Previously, the
|
||||
|
@ -7,6 +7,7 @@
|
||||
<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>
|
||||
<script type="text/javascript" src="regexp.js"></script>
|
||||
<link type="text/css" rel="stylesheet" href="style.css"></link>
|
||||
<script type="text/javascript">
|
||||
var completed = 0;
|
||||
@ -74,6 +75,9 @@ higher scores means better performance: <em>Bigger is better!</em>
|
||||
<li><b>Crypto</b><br/>Encryption and decryption benchmark based on code by Tom Wu (<i>1689 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>3418 lines</i>).</li>
|
||||
<li><b>EarleyBoyer</b><br/>Classic Scheme benchmarks, translated to JavaScript by Florian Loitsch's Scheme2Js compiler (<i>4682 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>4758 lines</i>)
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
@ -86,7 +90,7 @@ 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: 75px; font-size: 120%; font-weight: bold;">Starting...</div>
|
||||
<div id="status" style="text-align: center; margin-top: 60px; font-size: 120%; font-weight: bold;">Starting...</div>
|
||||
<div style="text-align: left; margin: 30px 0 0 90px;" id="results">
|
||||
<div>
|
||||
</div>
|
||||
|
@ -32,6 +32,7 @@ load('deltablue.js');
|
||||
load('crypto.js');
|
||||
load('raytrace.js');
|
||||
load('earley-boyer.js');
|
||||
load('regexp.js');
|
||||
|
||||
var success = true;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user