Tests:
  • new Array(), size 100

  • new Array(), size 1000

  • new Array(), size 10000

  • Array.from(), size 100

  • Array.from(), size 1000

  • Array.from(), size 10000

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    new Array(), size 100
    new Array(), size 1000
    new Array(), size 10000
    Array.from(), size 100
    Array.from(), size 1000
    Array.from(), size 10000

    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; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113 on Windows
View result in a separate tab
Test name Executions per second
new Array(), size 100 241005.5 Ops/sec
new Array(), size 1000 27219.2 Ops/sec
new Array(), size 10000 2717.7 Ops/sec
Array.from(), size 100 1414579.5 Ops/sec
Array.from(), size 1000 65872.0 Ops/sec
Array.from(), size 10000 6798.1 Ops/sec