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

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

     
    result = Array.apply(null, Array(strs.length)).map(function (x, i) { return strs[i]; })
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Push
    Map

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103 on Windows 8
View result in a separate tab
Test name Executions per second
Push 2603.5 Ops/sec
Map 7595.5 Ops/sec