Tests:
-
findIndex
-
for loop
-
Map + IndexOf
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:129.0) Gecko/20100101 Firefox/129.0
Firefox 129 on Windows
View result in a separate tab
View exact numbers
| Test name |
Executions per second |
|
✓
for loop
|
76,016 Ops/sec |
|
findIndex
|
59,375 Ops/sec |
|
Map + IndexOf
|
11,091 Ops/sec |
Do you really want to delete benchmark?