Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
RegEx.test vs. String.includes vs. String.match
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Android 16; Mobile; rv:143.0) Gecko/143.0 Firefox/143.0
Browser:
Firefox Mobile 143
Operating system:
Android
Device Platform:
Mobile
Date tested:
8 months ago
Test name
Executions per second
RegEx.test
19990292.0 Ops/sec
String.includes
1364185216.0 Ops/sec
String.match
14504951.0 Ops/sec
Script Preparation code:
var string = "Hello world!"; var regex = /Hello/;
Tests:
RegEx.test
regex.test(string);
String.includes
string.includes("Hello");
String.match
string.match("Hello");