Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36
Chrome 87
Mac OS X 11.0.1
Desktop
3 years ago
Test name Executions per second
for 81255.9 Ops/sec
foreach 3797375.0 Ops/sec
some 4241107.0 Ops/sec
for..of 130969.0 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;