Script Preparation code:
Tests:
  • Push item to an array

  • Append an item by spread

  • Direct assign an item to an initialized array

  • Direct assign an item usign Array.from

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Push item to an array
    Append an item by spread
    Direct assign an item to an initialized array
    Direct assign an item usign Array.from

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/117.0
Firefox 117 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Push item to an array 194618.2 Ops/sec
Append an item by spread 234.9 Ops/sec
Direct assign an item to an initialized array 281840.6 Ops/sec
Direct assign an item usign Array.from 78561.2 Ops/sec


;