Script Preparation code:
AخA
 
var sTest = Array.apply(null, Array(100)).map(function (x, i) { return i; });
var mTest = Array.apply(null, Array(1000)).map(function (x, i) { return i; });
var lTest = Array.apply(null, Array(10000)).map(function (x, i) { return i; });
Tests:
  • Small test: array deconstruct

     
    let result = [ ...sTest, 0 ];
  • Medium test: array deconstruct

     
    let result = [ ...mTest, 0 ];
  • Large test: array deconstruct

     
    let result = [ ...lTest, 0 ];
  • Small test: array push

     
    sTest.push(0);
  • Medium test: array push

     
    mTest.push(0);
  • Large test: array push

     
    lTest.push(0);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Small test: array deconstruct
    Medium test: array deconstruct
    Large test: array deconstruct
    Small test: array push
    Medium test: array push
    Large test: array push

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129 on Linux
View result in a separate tab
Test name Executions per second
Small test: array deconstruct 5833384.0 Ops/sec
Medium test: array deconstruct 1050047.1 Ops/sec
Large test: array deconstruct 145508.8 Ops/sec
Small test: array push 14408392.0 Ops/sec
Medium test: array push 14007903.0 Ops/sec
Large test: array push 13754903.0 Ops/sec