Test case name | Result |
---|---|
Array.from on NodeList | |
Spread on NodeList | |
[].slice.call | |
for each push | |
for each cached new Array with know listItems length | |
for loop cached length |
Test name | Executions per second |
---|---|
Array.from on NodeList | 5517.7 Ops/sec |
Spread on NodeList | 5754.1 Ops/sec |
[].slice.call | 8421.5 Ops/sec |
for each push | 8360.5 Ops/sec |
for each cached new Array with know listItems length | 8637.2 Ops/sec |
for loop cached length | 5637.9 Ops/sec |