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(5);
    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: 2 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
slice 36620480.0 Ops/sec
push 7887572.5 Ops/sec