Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice

  • spread

  • filter

  • concat

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    map
    array.from
    for loop
    foreach
    slice
    spread
    filter
    concat

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36 Edg/105.0.1343.53
Chrome 105 on Windows
View result in a separate tab
Test name Executions per second
map 46589196.0 Ops/sec
array.from 3543141.0 Ops/sec
for loop 30280118.0 Ops/sec
foreach 28612370.0 Ops/sec
slice 87308640.0 Ops/sec
spread 54897560.0 Ops/sec
filter 34008588.0 Ops/sec
concat 47392600.0 Ops/sec