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.map((a) => a).join('')
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Concat
    Join

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36
Chrome 88 on Linux
View result in a separate tab
Test name Executions per second
Concat 256.4 Ops/sec
Join 1922.6 Ops/sec