Tests:

Historical Performance Data aggregated from 219 community runs

Desktop Results:
Chrome 172 runs
new Array()
1.9M/s
Array.from()
70K/s

Fastest: new Array() (27.3x faster)

View exact numbers
  • new Array(): 1,912,112 ops/sec
  • Array.from(): 70,106 ops/sec
Firefox 40 runs
new Array()
662K/s
Array.from()
371K/s

Fastest: new Array() (1.8x faster)

View exact numbers
  • new Array(): 662,500 ops/sec
  • Array.from(): 371,389 ops/sec
Safari 7 runs
new Array()
1.7M/s
Array.from()
822K/s

Fastest: new Array() (2.1x faster)

View exact numbers
  • new Array(): 1,686,720 ops/sec
  • Array.from(): 821,940 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36
Chrome 149 on Windows
View result in a separate tab
new Array()
2.7M/s
Array.from()
73K/s
View exact numbers
Test name Executions per second
new Array() 2,677,257 Ops/sec
Array.from() 73,448 Ops/sec