Skip to content
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

Display execution time required to find all matches #9

Open
GoogleCodeExporter opened this issue May 19, 2015 · 1 comment
Open

Display execution time required to find all matches #9

GoogleCodeExporter opened this issue May 19, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I'd like to see the amount of time the regex engine spent processing my test 
regex on the test text. it doesn't need to be anything precise, just a means of 
comparing the performance of one regular expression in relation to another. 
Perhaps it could be displayed in the yellow bar in bold.

Something like this,

Execution Time : (~12ms for 100 runs) 

Original issue reported on code.google.com by [email protected] on 19 Oct 2011 at 6:12

@GoogleCodeExporter
Copy link
Author

This is generally a bad idea because comparing regexes against each other is 
more difficult than most people realize. You have to account for various 
lengths of subject text that match, don't match, and nearly match. Also, 
internal regex engine optimizations can change between browsers and browser 
versions. I'm not ruling out a feature like this, but it sounds like a footgun 
that would mostly be used to spread misinformation about regex performance.

Original comment by [email protected] on 30 Aug 2012 at 8:07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant