moving array vs slice vs reduceFastest: slice (1.2x faster)
123,761 ops/sec
107,301 ops/sec
104,217 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| moving array | |
| slice | |
| reduce |
| Test name | Executions per second |
|---|---|
| ✓ reduce | 2,358,785 Ops/sec |
| slice | 370,543 Ops/sec |
| moving array | 236,278 Ops/sec |