Speed Comparison keeps everything in perspective

Please wait...

Warning: Since each parser may have a different format for the syntax tree, the speed is not fully comparable (the cost of constructing different result is obviously varying). These tests exist only to ensure that Esprima parser is not ridiculously slow compare to other parsers.

More info on the parsers:
github.com/google/traceur-compiler
github.com/mishoo/UglifyJS2
github.com/marijnh/acorn

Each parser produces the syntax tree with location marking in every syntax node.

Note: Esprima is not completely optimized for location tracking parsing yet. It still receives on-going, continuous performance tweaks.

Time measurement is carried out using Benchmark.js.