Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Class Action Testing
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Browser:
Chrome 138
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
one year ago
String.includes
151.6M/s
RegEx.test
33.2M/s
String.match
7.0M/s
View exact numbers
Test name
Executions per second
✓
String.includes
151,586,720 Ops/sec
RegEx.test
33,210,616 Ops/sec
String.match
7,035,095 Ops/sec
Script Preparation code:
var string = "Sarepta Therapeutics (SRPT) Announces Restructuring and ELEVIDYS Black Box Warning, EMA Recommends Refusal of Marketing Authorization, Securities Class Action Pending – Hagens Berman!"; var regex = /Class Action/;
Tests:
RegEx.test
regex.test(string);
String.includes
string.includes("Class Action");
String.match
string.match("Class Action");