Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Array().fill()
    Array.from()
    [...Array()]

    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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
Chrome 131 on Windows
View result in a separate tab
new Array().fill()
265K/s
[...Array()]
243K/s
Array.from()
68K/s
View exact numbers
Test name Executions per second
new Array().fill() 264,840 Ops/sec
[...Array()] 243,047 Ops/sec
Array.from() 68,000 Ops/sec