JSON vs TypedArray vs dataviewFastest: TypedArray (5.4x faster)
8,664,966 ops/sec
6,998,384 ops/sec
1,609,520 ops/sec
Fastest: dataview (11.3x faster)
4,928,396 ops/sec
4,716,281 ops/sec
435,927 ops/sec
Fastest: TypedArray (4.2x faster)
2,627,846 ops/sec
2,210,336 ops/sec
621,403 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| JSON | |
| TypedArray | |
| dataview |
| Test name | Executions per second |
|---|---|
| ✓ dataview | 5,938,742 Ops/sec |
| TypedArray | 5,418,229 Ops/sec |
| JSON | 640,841 Ops/sec |