Tests:
  • new array

    AخA
     
    const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
    const arr1 = [0, ...arr];
  • mutation

     
    const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9];
    arr.unshift(0);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    new array
    mutation

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
new array 15202711.0 Ops/sec
mutation 33625660.0 Ops/sec