Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Linux
Desktop
2 years ago
String.includes
21.0M/s
RegEx.test
8.4M/s
String.match
4.4M/s
View exact numbers
Test name Executions per second
String.includes 20,982,472 Ops/sec
RegEx.test 8,439,127 Ops/sec
String.match 4,446,140 Ops/sec
Script Preparation code:
Tests: