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: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Windows
View result in a separate tab
Test name Executions per second
for 1277126.4 Ops/sec
for (with defined iterator) 974951.1 Ops/sec
for (with defined iterator and iterator limit) 1305879.2 Ops/sec
for of 139566.1 Ops/sec
for in 63762584.0 Ops/sec
forEach 964478.1 Ops/sec
do while 1131533.5 Ops/sec
do while (with defined iterator limit) 1111608.9 Ops/sec
while 1301794.6 Ops/sec
while (with defined iterator limit) 1302924.5 Ops/sec