Script Preparation code:
AخA
 
const arr = [1,2,3,4,5];
Tests:
  • spread

     
    const arr2 = [...[1,2,3,4,5], 6];
  • push

     
    const arr2 = [1,2,3,4,5].push(6);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    spread
    push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Chrome 90 on Linux
View result in a separate tab
Test name Executions per second
spread 21446084.0 Ops/sec
push 37858252.0 Ops/sec