Script Preparation code:
Tests:
  • new Array().fill()

  • Array.from()

  • [...Array()]

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 month ago)
Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120 on Chrome OS 14541.0.0
View result in a separate tab
Test name Executions per second
new Array().fill() 53103.1 Ops/sec
Array.from() 15240.6 Ops/sec
[...Array()] 51991.4 Ops/sec


;