Tests:
  • new Array()

  • Array.from()

  • [] + length

  • [] + fill undefined

  • [] + fill void

  • new Array() zeroed

  • Array.from zeroes

  • [] + fill zeroes

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Array()
    Array.from()
    [] + length
    [] + fill undefined
    [] + fill void
    new Array() zeroed
    Array.from zeroes
    [] + fill zeroes

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117 on Linux
View result in a separate tab
Test name Executions per second
new Array() 1778515328.0 Ops/sec
Array.from() 903696.9 Ops/sec
[] + length 91637984.0 Ops/sec
[] + fill undefined 107701344.0 Ops/sec
[] + fill void 132005272.0 Ops/sec
new Array() zeroed 93331232.0 Ops/sec
Array.from zeroes 818759.8 Ops/sec
[] + fill zeroes 131934096.0 Ops/sec