Tests:

Historical Performance Data aggregated from 47 community runs

Desktop Results:
Chrome 22 runs
new TypedArray
126/s
new Array
122/s
Direct Array
91/s

Fastest: new TypedArray (1.4x faster)

View exact numbers
  • new TypedArray: 126 ops/sec
  • new Array: 122 ops/sec
  • Direct Array: 91 ops/sec
Firefox 11 runs
new TypedArray
210/s
new Array
68/s
Direct Array
67/s

Fastest: new TypedArray (3.1x faster)

View exact numbers
  • new TypedArray: 210 ops/sec
  • new Array: 68 ops/sec
  • Direct Array: 67 ops/sec
Safari 5 runs
new Array
551/s
Direct Array
336/s
new TypedArray
115/s

Fastest: new Array (4.8x faster)

View exact numbers
  • new Array: 551 ops/sec
  • Direct Array: 336 ops/sec
  • new TypedArray: 115 ops/sec
Mobile Results:
Chrome 9 runs
new TypedArray
64/s
Direct Array
47/s
new Array
39/s

Fastest: new TypedArray (1.6x faster)

View exact numbers
  • new TypedArray: 64 ops/sec
  • Direct Array: 47 ops/sec
  • new Array: 39 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 TypedArray
    new Array
    Direct Array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147 on Windows
View result in a separate tab
new TypedArray
232/s
Direct Array
104/s
new Array
104/s
View exact numbers
Test name Executions per second
new TypedArray 232 Ops/sec
Direct Array 104 Ops/sec
new Array 104 Ops/sec