Test new Uint8Array() vs Test Uint8Array.from()1,150,502 ops/sec
1,081,445 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Test new Uint8Array() | |
| Test Uint8Array.from() |
| Test name | Executions per second |
|---|---|
| ✓ Test Uint8Array.from() | 1,218,778 Ops/sec |
| Test new Uint8Array() | 1,213,124 Ops/sec |