Script Preparation code:
AخA
 
var array1 = Array(100).fill(1);
var array2;
Tests:
  • slice

     
    array2 = array1.slice(1);
  • shift

     
    array1.shift();
    array2 = array1;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    slice
    shift

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36 OPR/77.0.4054.277
Opera 77 on Windows
View result in a separate tab
Test name Executions per second
slice 1442448.4 Ops/sec
shift 1540921.4 Ops/sec