The repository is a fork of https://github.com/KvanTTT/AntlrBenchmarks to measure the perfomance loss of the antlr parsers in Javascript relative to Java ones, from antlr 4.8 to antlr 4.13.
Install Powershell and run the script ./benchmark.ps1
in Benchmark
directory
For antlr 4.8:
Runtime | Mean [ns] | Ratio |
---|---|---|
JavaStandard_NotLeftRecursion | 171426 | 1.00 |
JavaScriptStandard_NotLeftRecursion | 678276 | 3.96 |
JavaStandard_LeftRecursion | 211838 | 1.24 |
JavaScriptStandard_LeftRecursion | 736566 | 4.30 |
For antlr 4.13:
Runtime | Mean [ns] | Ratio |
---|---|---|
JavaStandard_NotLeftRecursion | 166219 | 1.00 |
JavaScriptStandard_NotLeftRecursion | 38756208 | 233.16 |
JavaStandard_LeftRecursion | 257626 | 1.55 |
JavaScriptStandard_LeftRecursion | 35087463 | 211.09 |