Test case name | Result |
---|---|
Array.from | |
Map | |
Loop | |
Loop push | |
Array.from and Map |
Test name | Executions per second |
---|---|
Array.from | 39673.4 Ops/sec |
Map | 550555.2 Ops/sec |
Loop | 990645.6 Ops/sec |
Loop push | 458526.6 Ops/sec |
Array.from and Map | 41811.5 Ops/sec |