Script Preparation code:
AخA
 
var data = [...Array.from(Array(10000).keys())]
Tests:
  • spread

     
    data.reduce((acc, curr) => [...acc, curr],[])
  • push

     
    data.reduce((acc, curr) => (acc.push(curr),acc),[])
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: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 16_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1
Mobile Safari 16 on iOS 16.3.1
View result in a separate tab
Test name Executions per second
spread 4.4 Ops/sec
push 18774.5 Ops/sec