Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Linux
Desktop
one year ago
Benchmark.js
String.includes
9.5M/s
RegEx.test
4.1M/s
String.match
2.4M/s
View exact numbers
Test name Executions per second
String.includes 9,528,968 Ops/sec
RegEx.test 4,075,126 Ops/sec
String.match 2,443,108 Ops/sec
Script Preparation code:
Tests: