Test name | Executions per second |
---|---|
Push | 2514.4 Ops/sec |
Join | 7561.5 Ops/sec |
var strs = Array.from(new Array(10000)).map(() => 'String concat. ')
var result = []
for (let i = 0; i < strs.length; i++) {
result.push(strs[i])
}
result = strs.map((a) => a)