Test case name | Result |
---|---|
.unshift() | |
.push() | |
.push() preallocated array | |
.unshift() preallocated array |
Test name | Executions per second |
---|---|
.unshift() | 16642.7 Ops/sec |
.push() | 6036818.5 Ops/sec |
.push() preallocated array | 5977727.0 Ops/sec |
.unshift() preallocated array | 32.1 Ops/sec |