Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Linux
Desktop
one year ago
text.includes()
137.9M/s
string.indexOf()
133.9M/s
regex.test()
23.0M/s
string.match()
14.5M/s
View exact numbers
Test name Executions per second
text.includes() 137,897,680 Ops/sec
string.indexOf() 133,921,008 Ops/sec
regex.test() 22,985,188 Ops/sec
string.match() 14,487,749 Ops/sec
Script Preparation code:
Tests: