Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.0.0 Safari/537.36 Edg/75.0.131.0
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
for 511.1 Ops/sec
for cached length 1019.5 Ops/sec
some 19633.2 Ops/sec
for..of 80048.9 Ops/sec
foreach 10138.8 Ops/sec
Script Preparation code:
Tests:
  • for

  • for cached length

  • some

  • for..of

  • foreach