Script Preparation code:
AخA
 
var data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
Tests:
  • slice

     
    var copy = data.slice(3, 8);
  • push

     
    var copy = new Array(8 - 3);
    for (var i = 3; i < 8; i++) {
      copy[i] = data[i];
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.36
Chrome Mobile 117 on Android
View result in a separate tab
Test name Executions per second
slice 1319991.9 Ops/sec
push 266989.9 Ops/sec