Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
2 years ago
Benchmark.js
String.includes
20.0M/s
RegEx.test
5.2M/s
String.match
3.5M/s
View exact numbers
Test name Executions per second
String.includes 20,025,030 Ops/sec
RegEx.test 5,216,738 Ops/sec
String.match 3,508,298 Ops/sec
Script Preparation code:
Tests: