Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0
Firefox 66
Ubuntu
Desktop
5 years ago
Test name Executions per second
for 35123.3 Ops/sec
forEach 63951.1 Ops/sec
for optimized 1 3736555.5 Ops/sec
for optimized 2 39266.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • forEach

  • for optimized 1

  • for optimized 2


;