Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Linux
Desktop
one year ago
Benchmark.js
String.includes
37.7M/s
RegEx.test
16.4M/s
String.match
9.3M/s
View exact numbers
Test name Executions per second
String.includes 37,734,544 Ops/sec
RegEx.test 16,391,118 Ops/sec
String.match 9,324,153 Ops/sec
Script Preparation code:
Tests: