Script Preparation code:
AخA
 
var array = Array.from(Array(1000).keys())
Tests:
  • Unshift

     
    array.unshift(0);
  • Concat

     
    array = array.concat([0])
  • Spread

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Unshift
    Concat
    Spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36
Chrome 84 on Mac OS X 10.15.4
View result in a separate tab
Test name Executions per second
Unshift 26023.9 Ops/sec
Concat 1231.2 Ops/sec
Spread 299.7 Ops/sec