readUint8() with for loop vs slice() with map() vs slice() with Array.from()Fastest: slice() with map() (44.7x faster)
128,872 ops/sec
117,505 ops/sec
2,884 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| readUint8() with for loop | |
| slice() with map() | |
| slice() with Array.from() |
| Test name | Executions per second |
|---|---|
| ✓ slice() with Array.from() | 153,413 Ops/sec |
| slice() with map() | 137,949 Ops/sec |
| readUint8() with for loop | 22,900 Ops/sec |