Script Preparation code:
AخA
 
var arr = [1, 4, 2]
Tests:
  • .unshift()

     
    arr.unshift(3)
  • .push()

     
    arr.push(3)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    .unshift()
    .push()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110 on Linux
View result in a separate tab
Test name Executions per second
.unshift() 509123.5 Ops/sec
.push() 33170938.0 Ops/sec