Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for
    for of
    for in
    forEach
    for 2
    while with shift
    while
    while with length reduction
    for reverse

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
Chrome 127 on Windows
View result in a separate tab
while
27.3M/s
forEach
25.7M/s
for 2
25.6M/s
for reverse
23.2M/s
for of
22.8M/s
while with length reduction
20.2M/s
for
19.3M/s
while with shift
2.0M/s
for in
817K/s
View exact numbers
Test name Executions per second
while 27,336,246 Ops/sec
forEach 25,731,544 Ops/sec
for 2 25,599,286 Ops/sec
for reverse 23,216,702 Ops/sec
for of 22,831,210 Ops/sec
while with length reduction 20,193,752 Ops/sec
for 19,339,656 Ops/sec
while with shift 2,010,042 Ops/sec
for in 816,928 Ops/sec