Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36
Chrome Mobile 122
Android
Mobile
2 years ago
Benchmark.js
String.includes
16.8M/s
RegEx.test
7.2M/s
String.match
3.3M/s
View exact numbers
Test name Executions per second
String.includes 16,841,610 Ops/sec
RegEx.test 7,156,284 Ops/sec
String.match 3,330,708 Ops/sec
Script Preparation code:
Tests: