Tests:
-
array.filter
-
for loop
-
array.filter with array.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; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115 on Windows
View result in a separate tab
array.filter with array.includes
7.0M/s
View exact numbers
| Test name |
Executions per second |
|
✓
array.filter
|
13,061,886 Ops/sec |
|
array.filter with array.includes
|
6,979,020 Ops/sec |
|
for loop
|
4,261,948 Ops/sec |
Do you really want to delete benchmark?