Script Preparation code:
AخA
 
var array = Array(100).map((el, index) => index);
Tests:
  • splice

    x
     
    let i = 10000;
    while(i>0) {
    const t1 = array.splice()
    i--;
    }
  • deconstruct

     
    let i = 10000;
    while(i>0) {
    const t1 = [...array];
    i--;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    splice
    deconstruct

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80 on Windows
View result in a separate tab
Test name Executions per second
splice 853.6 Ops/sec
deconstruct 108.3 Ops/sec