Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36
Chrome 74
Linux
Desktop
5 years ago
Test name Executions per second
for 4194.4 Ops/sec
forEach 36444.2 Ops/sec
for optimized 1 5941.6 Ops/sec
for optimized 2 10137.9 Ops/sec
Script Preparation code:
Tests:
  • for

  • forEach

  • for optimized 1

  • for optimized 2


;