Script Preparation code:
Tests:
  • array length = 0 and push

  • array = [...data]

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    array length = 0 and push
    array = [...data]

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 days ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 18_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0.1 Mobile/15E148 Safari/604.1
Mobile Safari 18 on iOS 18.0.1
View result in a separate tab
Test name Executions per second
array length = 0 and push 6596532.0 Ops/sec
array = [...data] 10729570.0 Ops/sec