Script Preparation code:
Tests:
  • for

  • for (with defined iterator)

  • for (with defined iterator and iterator limit)

  • for of

  • for in

  • forEach

  • do while

  • do while (with defined iterator limit)

  • while

  • while (with defined iterator limit)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for
    for (with defined iterator)
    for (with defined iterator and iterator limit)
    for of
    for in
    forEach
    do while
    do while (with defined iterator limit)
    while
    while (with defined iterator limit)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 hours ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
for 6509.0 Ops/sec
for (with defined iterator) 6534.2 Ops/sec
for (with defined iterator and iterator limit) 12944.3 Ops/sec
for of 11749.3 Ops/sec
for in 1208958.4 Ops/sec
forEach 1154055.0 Ops/sec
do while 6452.0 Ops/sec
do while (with defined iterator limit) 12748.7 Ops/sec
while 6376.8 Ops/sec
while (with defined iterator limit) 12895.0 Ops/sec


;