Script Preparation code:
x
 
var a = Array(6576);
a.fill(7);
a[48] = 1;
Tests:
  • splice

     
    const v = a.splice(48, 1)[0];
    a.splice(657, 0, v);
  • copyWithin

     
    const v = a[48];
    a.copyWithin(48, 49, 658);
    a[657] = v;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    splice
    copyWithin

    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; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94 on Windows
View result in a separate tab
Test name Executions per second
splice 63154.7 Ops/sec
copyWithin 326865.8 Ops/sec