Uint8Array by byte vs Uint8Array with setFastest: Uint8Array by byte (22.0x faster)
18,007,732 ops/sec
817,024 ops/sec
Fastest: Uint8Array by byte (1509.2x faster)
1,384,860,416 ops/sec
917,607 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Uint8Array by byte | |
| Uint8Array with set |
| Test name | Executions per second |
|---|---|
| ✓ Uint8Array by byte | 96,664,152 Ops/sec |
| Uint8Array with set | 1,018,248 Ops/sec |