Script Preparation code:
AخA
 
var array = Array(100).fill(1);
Tests:
  • splice

    x
     
    let i = 10000;
    while(i>0) {
    const t1 = array.slice()
    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: one month ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
splice 5121.6 Ops/sec
deconstruct 1207.4 Ops/sec