Script Preparation code:
AخA
 
var arr = [11, 22, 33, 44, 55, 66, 77, 88, 99, 111, 222, 333, 444, 555, 666, 777, 888, 999];
Tests:
  • Push to array Test

     
    arr.push(1000);
  • Spread Test

     
    arr = [...arr, 1000];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Push to array Test
    Spread Test

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.101 Safari/537.36
Chrome 104 on Linux
View result in a separate tab
Test name Executions per second
Push to array Test 5199428.5 Ops/sec
Spread Test 3.2 Ops/sec