Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144
Mac OS X 10.15.7
Desktop
6 months ago
Iteration and String.includes
7.9M/s
View exact numbers
| Test name |
Executions per second |
|
✓
RegEx.test
|
47,026,004 Ops/sec |
|
String.match
|
31,970,310 Ops/sec |
|
Iteration and String.includes
|
7,932,546 Ops/sec |
Tests:
-
RegEx.test
-
Iteration and String.includes
-
String.match