Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_16_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Chrome 84
Mac OS X 10.16.0
Desktop
4 years ago
Test name Executions per second
for 73033.5 Ops/sec
foreach 3592210.0 Ops/sec
some 3668294.5 Ops/sec
for..of 117424.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;