Regex With Nested Quantifiers

Benchmark created by Regex performance on


Test runner

Ready to run.

Testing in
TestOps/sec
Performance of nested quantifiers
n = 15
str = Array(n).join("A")
res = str.match(/(A+A+)+B/)
ready
Performance - rewritten
n = 15
str = Array(n).join("A")
res = str.match(/AA+B/)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.

  • Revision 1: published by Regex performance on