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
15.4M/s
String.match
6.2M/s
RegEx.test
5.0M/s
View exact numbers
Test name Executions per second
String.includes 15,417,419 Ops/sec
String.match 6,158,920 Ops/sec
RegEx.test 5,036,912 Ops/sec
Script Preparation code:
Tests: