Script Preparation code:
AخA
 
let i, length = 1_000
Tests:
  • fill index

     
    const a = new Array(length)
    for(i = 0; i < length; i++) a[i] = 0
  • fill from

     
    const a = Array.from({length}).fill(0)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    fill index
    fill from

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
Chrome 119 on Windows
View result in a separate tab
Test name Executions per second
fill index 1461358.1 Ops/sec
fill from 1704043.0 Ops/sec