Script Preparation code:
AخA
 
var strs = Array.from(new Array(10000)).map(() => 'String concat. ')
var result = []
Tests:
  • Push

    x
     
    strs.forEach(s => result.push(s))
  • Join

     
    result = strs.map((a) => a)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Push
    Join

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
Test name Executions per second
Push 3593.0 Ops/sec
Join 20778.8 Ops/sec