Upgrade Esprima and UglifyJS in benchmark comparison

This commit is contained in:
Marijn Haverbeke 2012-10-12 23:27:59 +02:00
parent eb888141fd
commit d198b7ed64
3 changed files with 3251 additions and 641 deletions

View File

@ -4,7 +4,7 @@
<title>Acorn benchmark</title> <title>Acorn benchmark</title>
<script src="../acorn.js"></script> <script src="../acorn.js"></script>
<script src="compare/esprima.js"></script> <script src="compare/esprima.js"></script>
<script src="compare/uglifyjs.js"></script> <script src="compare/uglifyjs2.js"></script>
<script src="jquery-string.js"></script> <script src="jquery-string.js"></script>
<script src="codemirror-string.js"></script> <script src="codemirror-string.js"></script>
<style> <style>
@ -15,7 +15,7 @@
</style> </style>
</head> </head>
<h1>Acorn/Esprima/UglifyJS speed comparison</h1> <h1>Acorn/Esprima/UglifyJS2 speed comparison</h1>
<p>This will run each of the three parsers on the source code of <p>This will run each of the three parsers on the source code of
jQuery 1.6.4 and CodeMirror 3.0b1 for two seconds, and show a table jQuery 1.6.4 and CodeMirror 3.0b1 for two seconds, and show a table
@ -74,7 +74,7 @@ numbers.</p>
running.innerHTML = "Running benchmark..."; running.innerHTML = "Running benchmark...";
var data = [{name: "Acorn", runner: runAcorn}, var data = [{name: "Acorn", runner: runAcorn},
{name: "Esprima", runner: runEsprima}, {name: "Esprima", runner: runEsprima},
{name: "UglifyJS", runner: runUglifyJS}]; {name: "UglifyJS2", runner: runUglifyJS}];
var pos = 0; var pos = 0;
function next() { function next() {
data[pos].score = benchmark(data[pos].runner, locations); data[pos].score = benchmark(data[pos].runner, locations);

File diff suppressed because it is too large Load Diff

2494
test/compare/uglifyjs2.js Normal file

File diff suppressed because it is too large Load Diff