Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Linux
Desktop
one year ago
Benchmark.js
String.includes
7.9M/s
RegEx.test
4.0M/s
String.match
2.9M/s
View exact numbers
Test name Executions per second
String.includes 7,949,282 Ops/sec
RegEx.test 4,034,673 Ops/sec
String.match 2,859,209 Ops/sec
Script Preparation code:
Tests: