Tests:
-
Regex
-
.indexOf
-
.includes
-
.startsWith
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
5 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36
Chrome 147 on Windows
View result in a separate tab
View exact numbers
| Test name |
Executions per second |
|
✓
.indexOf
|
19,913 Ops/sec |
|
.includes
|
19,879 Ops/sec |
|
.startsWith
|
1,557 Ops/sec |
|
Regex
|
767 Ops/sec |
Do you really want to delete benchmark?