Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of

  • for with cached length

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for
    foreach
    some
    for..of
    for with cached length

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Chrome 138 on Linux
View result in a separate tab
Test name Executions per second
for 4947943.5 Ops/sec
foreach 3822214.0 Ops/sec
some 3799700.2 Ops/sec
for..of 4279565.5 Ops/sec
for with cached length 6645368.5 Ops/sec