Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Chrome 142
Linux
Desktop
10 months ago
Benchmark.js
String.includes
190.9M/s
RegEx.test
52.5M/s
String.match
10.7M/s
View exact numbers
Test name Executions per second
String.includes 190,895,536 Ops/sec
RegEx.test 52,480,416 Ops/sec
String.match 10,717,719 Ops/sec
Script Preparation code:
Tests: