Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
new Array()
1.2M/s
push
561K/s
Array.from()
42K/s

Fastest: new Array() (29.8x faster)

View exact numbers
  • new Array(): 1,247,286 ops/sec
  • push: 560,997 ops/sec
  • Array.from(): 41,791 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()
    push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Mac OS X 10.15.7
View result in a separate tab
new Array()
2.6M/s
push
1.0M/s
Array.from()
72K/s
View exact numbers
Test name Executions per second
new Array() 2,608,327 Ops/sec
push 1,024,216 Ops/sec
Array.from() 71,890 Ops/sec