babel / parser_performance

13 stars 16 forks source link

update benchmark environments #7

Closed JLHwung closed 5 years ago

JLHwung commented 5 years ago

Edits:

Babel always stores location to the nodes and does not offer an option to disable locations store. This operation will have 20% performance impact, so we enable the locations options in other parsers to ensure the informations in the produced AST are comparable.

Babel adopts comment attachment algorithm similar to esprima. So we also enable the comment attachment related options in esprima. Note that both acorn and meriyah does not implement comment attachment.