-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re2j runs 5x slower than java.util.regex #162
Comments
I get similar results (RE2 is 3x slower):
Note: I tested on sample (16MB book) from https:/rust-leipzig/regex-performance and pattern On the other hand, RE2 is tremendously faster for regex with 100 alternations (first names) on the same sample, which is consistent with https:/google/re2j#why-should-i-switch:
Note: length of input text also matters Code: RG9/rg-regex-demo@209d9b4#diff-fe662066dca41f899d163250973f0db8e950953eb9b03a7d08c71f5fdb6a0d70 |
Here is my benchmark:
here is the result:
The text was updated successfully, but these errors were encountered: