Test name | Executions per second |
---|---|
Push | 604.0 Ops/sec |
Join | 27043.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)