Script Preparation code:
AخA
 
    var list = [];
    for (var i = 0; i < 1000 * 1000; i++) {
        list.push(i);
    }
Tests:
  • 1

     
    list.push(...Array(11))
    list = list.slice(-11);
  • 2

     
    list.push(...Array(11))
    list = list.splice(-11);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    1
    2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Chrome 113 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
1 4398360.0 Ops/sec
2 4295135.5 Ops/sec