Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Mobile Safari/537.36
Chrome Mobile 126
Android
Mobile
2 years ago
Benchmark.js
String.includes()
545K/s
String.matchAll()
415K/s
View exact numbers
Test name Executions per second
String.includes() 545,288 Ops/sec
String.matchAll() 414,872 Ops/sec
Script Preparation code:
Tests: