Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Chrome 62
Mac OS X 10.11.6
Other
6 years ago
Test name Executions per second
forEach 10531.7 Ops/sec
for 5849.7 Ops/sec
for of 1896.7 Ops/sec
arrowForEach 10548.2 Ops/sec
forBackward 5865.6 Ops/sec
reverse while 5885.8 Ops/sec
Script Preparation code:
Tests:
  • forEach

  • for

  • for of

  • arrowForEach

  • forBackward

  • reverse while


;