Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice

  • spread

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130 on Windows
View result in a separate tab
Test name Executions per second
map 6649.0 Ops/sec
array.from 5831.3 Ops/sec
for loop 7422.1 Ops/sec
foreach 5350.7 Ops/sec
slice 10598.6 Ops/sec
spread 5956.4 Ops/sec


;