Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Windows
Desktop
4 months ago
Test name Executions per second
for 13856499.0 Ops/sec
for of 4811342.5 Ops/sec
for in 626762.2 Ops/sec
forEach 13246220.0 Ops/sec
for 2 15686733.0 Ops/sec
while with shift 3367920.5 Ops/sec
while 17184562.0 Ops/sec
while with length reduction 13848479.0 Ops/sec
for reverse 15584661.0 Ops/sec
Tests:
  • for

  • for of

  • for in

  • forEach

  • for 2

  • while with shift

  • while

  • while with length reduction

  • for reverse