Script Preparation code:
AخA
 
var array = [1,2,3,4,5,6,7,8,9];
var array2 = [1,1,1];
Tests:
  • arrayUnshift123

     
    array.unshift(...array2);
  • arrayConcat123

     
    array = array.concat(array2)
  • arraySpread123

     
    array = [...array2 , ...array]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    arrayUnshift123
    arrayConcat123
    arraySpread123

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Windows
View result in a separate tab
Test name Executions per second
arrayUnshift123 19592.8 Ops/sec
arrayConcat123 376.4 Ops/sec
arraySpread123 89.7 Ops/sec