Benchmarking Regex Library

Is there a modern test of modern regex libraries? I'm interested in re2 , pcre with jit, NSRegularExpression , Irregexp , etc.

I found http://lh3lh3.users.sourceforge.net/reb.shtml and regex library tests that are pretty dated.

Edit:

I found another link: https://github.com/axiak/pyre2#id6 (chapter "Performance")

+6
source share
1 answer

I took some measurements before http://sljit.sourceforge.net/regex_perf.html

Regex engines have improved significantly over the past few years, and now you can get high performance regardless of your choice. Although each engine has weaknesses (cases when they do not work well in terms of performance or memory consumption), you get similar performance in regular regular expressions.

+2
source

Source: https://habr.com/ru/post/918093/


All Articles