Script Preparation code:
AخA
 
var arr = [1];
Tests:
  • Array.prototype.push

     
    arr.pop();
    arr.push(1);
  • Index write

     
    arr.length = arr.length - 1;
    arr.push(1);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.prototype.push
    Index write

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132 on Windows
View result in a separate tab
Test name Executions per second
Array.prototype.push 62978168.0 Ops/sec
Index write 12437115.0 Ops/sec