Script Preparation code:
Tests:
  • for

  • foreach

  • some

  • for..of

  • reverse for

  • map

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    for
    foreach
    some
    for..of
    reverse for
    map

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.55
Chrome 109 on Windows
View result in a separate tab
Test name Executions per second
for 6492.6 Ops/sec
foreach 581213.6 Ops/sec
some 564019.5 Ops/sec
for..of 12230.8 Ops/sec
reverse for 13123.9 Ops/sec
map 528674.0 Ops/sec