new TypedArray vs new Array vs Direct ArrayFastest: new TypedArray (4.6x faster)
584 ops/sec
151 ops/sec
126 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| new TypedArray | |
| new Array | |
| Direct Array |
| Test name | Executions per second |
|---|---|
| ✓ new TypedArray | 489 Ops/sec |
| Direct Array | 186 Ops/sec |
| new Array | 182 Ops/sec |