Uint8Array.subarray vs Uint8Array.sliceFastest: Uint8Array.slice (1.2x faster)
19,680,396 ops/sec
16,501,719 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Uint8Array.subarray | |
| Uint8Array.slice |
| Test name | Executions per second |
|---|---|
| ✓ Uint8Array.slice | 4,135,539 Ops/sec |
| Uint8Array.subarray | 3,788,178 Ops/sec |