From 9d5e0e7973d6172756a521678b721bdd4a0898cd Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Sat, 26 Jul 2014 21:18:37 +0300 Subject: [PATCH] Increased benchmark time to 5 seconds per parser to get more realistic numbers. --- test/bench.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bench.html b/test/bench.html index 9b07d3b917..543057cb92 100644 --- a/test/bench.html +++ b/test/bench.html @@ -18,7 +18,7 @@

Acorn/Esprima/Traceur speed comparison

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 without location data.

@@ -63,7 +63,7 @@ numbers.

runner(codemirror30, locations); lines += totalLines; t1 = nowHost.now(); - if (t1 - t0 > 2000) break; + if (t1 - t0 > 5000) break; } return lines / ((t1 - t0) / 1000); }