Script Preparation code:
Tests:
  • spread / map

  • Array.from / entries() / map

  • Array.from / direct / map

  • Array.from / direct / nomap

  • for loop

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    spread / map
    Array.from / entries() / map
    Array.from / direct / map
    Array.from / direct / nomap
    for loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111 on Windows
View result in a separate tab
Test name Executions per second
spread / map 14364.9 Ops/sec
Array.from / entries() / map 11339.5 Ops/sec
Array.from / direct / map 14688.1 Ops/sec
Array.from / direct / nomap 18936.6 Ops/sec
for loop 20038.0 Ops/sec