Script Preparation code:
Tests:
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 year 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
for in
65.2M/s
for (with defined iterator and iterator limit)
1.1M/s
while
1.1M/s
while (with defined iterator limit)
1.1M/s
for (with defined iterator)
1.1M/s
do while (with defined iterator limit)
1.1M/s
for
1.1M/s
do while
824K/s
forEach
659K/s
for of
146K/s
View exact numbers
Test name Executions per second
for in 65,245,128 Ops/sec
for (with defined iterator and iterator limit) 1,143,474 Ops/sec
while 1,124,730 Ops/sec
while (with defined iterator limit) 1,098,405 Ops/sec
for (with defined iterator) 1,095,748 Ops/sec
do while (with defined iterator limit) 1,093,442 Ops/sec
for 1,090,847 Ops/sec
do while 824,391 Ops/sec
forEach 658,592 Ops/sec
for of 146,461 Ops/sec