Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Linux
Desktop
one year ago
Benchmark.js
String.includes
204.5M/s
RegEx.test
52.7M/s
String.match
9.9M/s
View exact numbers
Test name Executions per second
String.includes 204,502,192 Ops/sec
RegEx.test 52,668,540 Ops/sec
String.match 9,949,877 Ops/sec
Script Preparation code:
Tests: