Script Preparation code:
Tests:
  • Array update with spread operator

  • Array update with slice and assign

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array update with spread operator
    Array update with slice and assign

    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: 6 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array update with spread operator 2750849.0 Ops/sec
Array update with slice and assign 2455773.0 Ops/sec