Test case name | Result |
---|---|
for of | |
for in | |
for | |
while | |
forEach() with function | |
forEach() with closure | |
for, reversed | |
for, cached length | |
while, reversed | |
while, cached length |
Test name | Executions per second |
---|---|
for of | 28751.1 Ops/sec |
for in | 9050.6 Ops/sec |
for | 17621.0 Ops/sec |
while | 18495.7 Ops/sec |
forEach() with function | 27712.8 Ops/sec |
forEach() with closure | 31470.1 Ops/sec |
for, reversed | 13056.6 Ops/sec |
for, cached length | 2666.2 Ops/sec |
while, reversed | 67979.2 Ops/sec |
while, cached length | 3160.7 Ops/sec |