Test case name | Result |
---|---|
For i++ (const size) | |
For i++ (.length) | |
For ... in | |
for ... of | |
indexOf | |
findIndex | |
Includes | |
Some ? | |
forEach | |
set has |
Test name | Executions per second |
---|---|
For i++ (const size) | 1097.5 Ops/sec |
For i++ (.length) | 796.8 Ops/sec |
For ... in | 1000.2 Ops/sec |
for ... of | 2123.0 Ops/sec |
indexOf | 70193.6 Ops/sec |
findIndex | 2056.2 Ops/sec |
Includes | 147328.5 Ops/sec |
Some ? | 2119.3 Ops/sec |
forEach | 1212.4 Ops/sec |
set has | 2457.0 Ops/sec |