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:
googlebot
Browser:
Other
Operating system:
Other
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
RegEx.test
42961368.0 Ops/sec
String.includes
151077600.0 Ops/sec
String.match
7970295.5 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");