Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72
Linux
Desktop
4 years ago
Test name Executions per second
for 63837064.0 Ops/sec
for of 11966525.0 Ops/sec
for in 465166.2 Ops/sec
forEach 52949188.0 Ops/sec
for 2 66864772.0 Ops/sec
Tests:
  • for

  • for of

  • for in

  • forEach

  • for 2

  • while with shift

  • while

  • while with length reduction

  • for reverse