Tests:
  • map

  • array.from

  • for loop

  • foreach

  • slice

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 days ago)
Mozilla/5.0 (X11; Linux x86_64; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Linux
View result in a separate tab
Test name Executions per second
map 43738492.0 Ops/sec
array.from 18894488.0 Ops/sec
for loop 68345480.0 Ops/sec
foreach 59533124.0 Ops/sec
slice 54676392.0 Ops/sec


;