Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36
Chrome 63
Mac OS X 10.13.2
Other
6 years ago
Test name Executions per second
forEach 10793.0 Ops/sec
for 5395.2 Ops/sec
for of 1814.8 Ops/sec
arrowForEach 10569.7 Ops/sec
forBackward 5551.7 Ops/sec
reverse while 5451.1 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • for

  • for of

  • arrowForEach

  • forBackward

  • reverse while


;