Increased benchmark time to 5 seconds per parser to get more realistic numbers.

This commit is contained in:
Ingvar Stepanyan 2014-07-26 21:18:37 +03:00 committed by Marijn Haverbeke
parent 711d21ec5a
commit 9d5e0e7973

View File

@ -18,7 +18,7 @@
<h1>Acorn/Esprima/Traceur speed comparison</h1>
<p>This will run each of the three ES6 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 five seconds, and show a table
indicating the number of lines parsed per second. Note that Traceur
always stores location data, and is thus not fairly compared by the
benchmark <em>without</em> location data.<p>
@ -63,7 +63,7 @@ numbers.</p>
runner(codemirror30, locations);
lines += totalLines;
t1 = nowHost.now();
if (t1 - t0 > 2000) break;
if (t1 - t0 > 5000) break;
}
return lines / ((t1 - t0) / 1000);
}