Tests:

Historical Performance Data aggregated from 5 community runs

Desktop Results:
Chrome 5 runs
new Array
15K/s
Array
15K/s
While
14K/s
Array From
14K/s
for push
13K/s
for index
13K/s

Fastest: new Array (1.2x faster)

View exact numbers
  • new Array: 15,044 ops/sec
  • Array: 14,921 ops/sec
  • While: 14,298 ops/sec
  • Array From: 14,243 ops/sec
  • for push: 13,005 ops/sec
  • for index: 12,967 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
    Array From
    new Array
    Array
    for push
    for index
    While

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Windows
View result in a separate tab
new Array
15K/s
Array
15K/s
Array From
14K/s
While
14K/s
for push
13K/s
for index
13K/s
View exact numbers
Test name Executions per second
new Array 15,203 Ops/sec
Array 14,871 Ops/sec
Array From 14,253 Ops/sec
While 14,121 Ops/sec
for push 12,917 Ops/sec
for index 12,759 Ops/sec