Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135
Linux
Desktop
one year ago
Benchmark.js
String.includes
230.2M/s
RegEx.test
53.6M/s
String.match
9.8M/s
View exact numbers
Test name Executions per second
String.includes 230,197,568 Ops/sec
RegEx.test 53,576,292 Ops/sec
String.match 9,816,831 Ops/sec
Script Preparation code:
Tests: