TLDR Web Dev · MISCELLANEOUS
BENCHMARKING RUBY PARSERS
Summary from the TLDR Web Dev newsletter
Prism is a new Ruby parser that is much faster than other parsers. It's tested against other parsers like RubyParser, Ripper, and the Parser gem in different scenarios like parsing and walking the Abstract Syntax Tree (AST) and parsing directly to C structs. Prism is more than 10 times faster than the Parser gem and RubyParser when parsing and walking the AST, and it is 2.56 times faster than the traditional parse.y when parsing to C structs.