Test name | Executions per second |
---|---|
Array join | 79505.2 Ops/sec |
String concat | 6511.2 Ops/sec |
let values = []
for (let i = 0; i < 1000; ++i) {
values.push('Concatenation. ')
}
values.join('\n')
value = ''
for (let i = 0; i < 1000; ++i) {
value += 'Concatenation. '
}
value