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
4.2M/s
View exact numbers
| Test name |
Executions per second |
|
✓
array.filter
|
8,598,303 Ops/sec |
|
array.filter with array.includes
|
4,249,525 Ops/sec |
|
for loop
|
2,517,496 Ops/sec |
Tests:
-
array.filter
-
for loop
-
array.filter with array.includes