Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Linux
Desktop
3 years ago
Test name Executions per second
for 16471846.0 Ops/sec
foreach 2499476.5 Ops/sec
some 2466587.8 Ops/sec
for..of 134228.3 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of


;