Script Preparation code:
Tests:
  • foreach

  • for

  • map

  • for...of

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    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 (Macintosh; Intel Mac OS X 10.15; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
foreach 240366.5 Ops/sec
for 1204594.0 Ops/sec
map 163445.5 Ops/sec
for...of 230848.6 Ops/sec