Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36
Chrome 88
Linux
Desktop
4 years ago
Test name Executions per second
Concat 153.1 Ops/sec
Join 1838.5 Ops/sec
Script Preparation code:
AخA
 
var strs = Array.from(new Array(10000)).map(() => 'String concat. ')
var result = ''
Tests:
  • Concat

     
    for (let i = 0; i < strs.length; i++) {
      result += strs[i]
    }
  • Join

     
    result = strs.join('')