Script Preparation code:
AخA
 
var params = [ "hello", true, 7 , 3.03, "haha", false, null, undefined, 16];
Tests:
  • Array.prototype.slice

     
    const other = params.slice();
  • spread operator

     
    const other = [ ...params ];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.slice
    spread operator

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36
Chrome 88 on Mac OS X 11.2.1
View result in a separate tab
Test name Executions per second
Array.prototype.slice 19037340.0 Ops/sec
spread operator 18134888.0 Ops/sec