Test case name | Result |
---|---|
for | |
for..of | |
NodeList.forEach | |
Array.forEach | |
jQuery.each | |
for 2 |
Test name | Executions per second |
---|---|
for | 272.4 Ops/sec |
for..of | 195.8 Ops/sec |
NodeList.forEach | 236.6 Ops/sec |
Array.forEach | 200.3 Ops/sec |
jQuery.each | 255.3 Ops/sec |
for 2 | 267.4 Ops/sec |