Test case name | Result |
---|---|
Array.from | |
Array.slice | |
Array.push | |
Array[index] | |
Array spread |
Test name | Executions per second |
---|---|
Array.from | 430017.1 Ops/sec |
Array.slice | 461547.2 Ops/sec |
Array.push | 1692551.0 Ops/sec |
Array[index] | 1461277.0 Ops/sec |
Array spread | 486036.5 Ops/sec |