Tests:
-
if indexof
-
function some array
-
if includes
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Windows
View result in a separate tab
function some array
12.7M/s
View exact numbers
| Test name |
Executions per second |
|
✓
function some array
|
12,717,188 Ops/sec |
|
if includes
|
563,508 Ops/sec |
|
if indexof
|
562,578 Ops/sec |
Do you really want to delete benchmark?