Has anyone seen a good comparison of parser generators' performance?
I'm particularly interested in: 1) recursive ascent parser generators for LALR(1) grammars; 2) parser generators which produce C/C++ based parsers.
Has anyone seen a good comparison of parser generators' performance?
I'm particularly interested in: 1) recursive ascent parser generators for LALR(1) grammars; 2) parser generators which produce C/C++ based parsers.
Are you interested in how fast the parser generators run? Depends of the type of technology of the parsing engine it supports, and the care of the guy who implemented the parser generator. See this answer for some numbers about LALR/GLR parser generators for real languages: https://stackoverflow.com/a/14151966/120163 IMHO, this isn't very important; parser generators are mostly a lot faster than the guy using them.
If the question is, how fast are the generated parsers? you get different answers. LALR parsers can be implemented with a few machine instructions per GOTO transition (using directly-indexed GOTO tables), and a few per reduction. That's pretty hard to beat.