Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
RegEx.test vs. String.includes (end of string matching)
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0
Browser:
Firefox 144
Operating system:
Linux
Device Platform:
Desktop
Date tested:
9 months ago
string.includes
2119.1M/s
regex.test
38.0M/s
View exact numbers
Test name
Executions per second
✓
string.includes
2,119,081,728 Ops/sec
regex.test
37,964,440 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
var string = "Hello world!"; var regex = /world/;
Tests:
regex.test
regex.test(string);
string.includes
string.includes("world")