Array.prototype.slice vs spread operatorFastest: Array.prototype.slice (1.4x faster)
108,407,800 ops/sec
75,874,488 ops/sec
Fastest: Array.prototype.slice (2.3x faster)
49,086 ops/sec
20,936 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Array.prototype.slice | |
| spread operator |
| Test name | Executions per second |
|---|---|
| ✓ Array.prototype.slice | 516,704 Ops/sec |
| spread operator | 63,803 Ops/sec |