Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127
Linux
Desktop
one year ago
String.includes
7.7M/s
RegEx.test
3.2M/s
String.match
2.0M/s
View exact numbers
Test name Executions per second
String.includes 7,703,498 Ops/sec
RegEx.test 3,229,848 Ops/sec
String.match 1,971,612 Ops/sec
Script Preparation code:
Tests: