Skip to content

Collection of benchmarks that reveal the performance of some lexing and parsing issues (mostly C# runtime)

License

Notifications You must be signed in to change notification settings

ncordon/AntlrBenchmarks

 
 

Repository files navigation

ANTLR Benchmarks

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.

How to run

Install Powershell and run the script ./benchmark.ps1 in Benchmark directory

Results

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

About

Collection of benchmarks that reveal the performance of some lexing and parsing issues (mostly C# runtime)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 25.5%
  • Python 23.0%
  • C# 22.5%
  • Go 14.7%
  • Java 9.9%
  • PowerShell 2.7%
  • Other 1.7%