Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array(length).fill()
    Array.from({ length: length })

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Mac OS X 10.15
View result in a separate tab
Array(length).fill()
7.9M/s
Array.from({ length: length })
6.1M/s
View exact numbers
Test name Executions per second
Array(length).fill() 7,942,634 Ops/sec
Array.from({ length: length }) 6,051,346 Ops/sec