Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries

  • for..in

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for
    foreach
    for..of
    for..of over entries
    for..in

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Chrome OS 14541.0.0
View result in a separate tab
Test name Executions per second
for 22609.7 Ops/sec
foreach 56426.0 Ops/sec
for..of 57108.9 Ops/sec
for..of over entries 53239.4 Ops/sec
for..in 28845.7 Ops/sec