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: 2 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:135.0) Gecko/20100101 Firefox/135.0
Firefox 135 on Linux
View result in a separate tab
Test name Executions per second
for 1090847.4 Ops/sec
for (with defined iterator) 1095747.5 Ops/sec
for (with defined iterator and iterator limit) 1143473.8 Ops/sec
for of 146461.5 Ops/sec
for in 65245128.0 Ops/sec
forEach 658591.8 Ops/sec
do while 824391.0 Ops/sec
do while (with defined iterator limit) 1093442.1 Ops/sec
while 1124729.6 Ops/sec
while (with defined iterator limit) 1098405.2 Ops/sec