Test name | Executions per second |
---|---|
Push | 928.7 Ops/sec |
Join | 45283.3 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)