Script Preparation code:
Tests:
  • forEach push() then reverse()

  • forEach unshift()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    forEach push() then reverse()
    forEach unshift()

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 5 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82 on Windows
View result in a separate tab
Test name Executions per second
forEach push() then reverse() 409.9 Ops/sec
forEach unshift() 4935.3 Ops/sec

Recommended literature: