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