Script Preparation code:
Tests:
  • for i

  • for i no count length

  • for i no count length ++i

  • for of

  • forEach =>

  • forEach no =>

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for i
    for i no count length
    for i no count length ++i
    for of
    forEach =>
    forEach no =>

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108 on Windows
View result in a separate tab
Test name Executions per second
for i 5628.8 Ops/sec
for i no count length 5096.6 Ops/sec
for i no count length ++i 4791.9 Ops/sec
for of 1696.3 Ops/sec
forEach => 2089.3 Ops/sec
forEach no => 1924.6 Ops/sec