Test case name | Result |
---|---|
for | |
for..of | |
for+cache | |
for+cache+cache | |
for+cache+cache+cache | |
for..of+cache | |
foreach + cache+ arrow | |
foreach + cache+ func | |
foreach |
Test name | Executions per second |
---|---|
for | 30108.5 Ops/sec |
for..of | 275717.8 Ops/sec |
for+cache | 30456.0 Ops/sec |
for+cache+cache | 54023.9 Ops/sec |
for+cache+cache+cache | 281866.7 Ops/sec |
for..of+cache | 276825.2 Ops/sec |
foreach + cache+ arrow | 278367.5 Ops/sec |
foreach + cache+ func | 272885.3 Ops/sec |
foreach | 277493.4 Ops/sec |