Tests:
  • new Array().map()

    AخA
     
    new Array(500).fill(0).map((_, i) => i)
  • Array.from()

     
    Array.from({ length: 500 }, (_, i) => i)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    new Array().map()
    Array.from()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118 on Ubuntu
View result in a separate tab
Test name Executions per second
new Array().map() 125639.0 Ops/sec
Array.from() 200741.1 Ops/sec