TLDR Web Dev · ARTICLES & TUTORIALS

FAST(ER) REGULAR EXPRESSION ENGINES IN RUBY

serpapi.com18 min read

Summary from the TLDR Web Dev newsletter

This article compares the performance of different regular expression engines in Ruby, including the default Onigmo, re2 (Google), rust/regex, and pcre2. Benchmarks show that rust/regex is the fastest overall, while re2 is generally faster than Ruby's default, except when dealing with Unicode text.