Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Linux
Desktop
2 years ago
Benchmark.js
String.includes
26.4M/s
RegEx.test
11.6M/s
String.match
8.0M/s
View exact numbers
Test name Executions per second
String.includes 26,424,854 Ops/sec
RegEx.test 11,614,547 Ops/sec
String.match 7,968,970 Ops/sec
Script Preparation code:
Tests: