Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
capturing and non capturing regex
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Browser:
Chrome 134
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
non capturing
16.6M/s
capturing
15.3M/s
View exact numbers
Test name
Executions per second
✓
non capturing
16,613,423 Ops/sec
capturing
15,344,823 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
let string = 'hello123' let f = /(hello|hi)123/ let n = /(?:hello|hi)123/
Tests:
capturing
string.match(f)
non capturing
string.match(n)