Tests:
  • array 1

    AخA
     
    const test = Array.from({ length: 10 }, () => 0)
  • array 2

     
    const test = new Array(10).fill(0, 0, 10)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array 1
    array 2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.83 Safari/537.36
Chrome 85 on Mac OS X 10.14.0
View result in a separate tab
Test name Executions per second
array 1 1042146.8 Ops/sec
array 2 3920998.2 Ops/sec