Run details:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4096.0 Safari/537.36 OPR/69.0.3653.0 (Edition developer)
Opera 69
Windows 8.1
Desktop
4 years ago
Test name Executions per second
for 32939.3 Ops/sec
foreach 2349118.0 Ops/sec
some 2340123.2 Ops/sec
for..of 56936.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;