Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0
Firefox 115
Windows
Desktop
2 years ago
Benchmark.js
array.filter with array.includes
6.8M/s
View exact numbers
| Test name |
Executions per second |
|
✓
array.filter
|
13,527,018 Ops/sec |
|
array.filter with array.includes
|
6,799,108 Ops/sec |
|
for loop
|
4,199,690 Ops/sec |
Tests:
-
array.filter
-
for loop
-
array.filter with array.includes