Tests:
  • Using the spread operator

  • Using Object.assign

  • Using For-In loop

  • Using For-In loop with hasOwnProperty

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using the spread operator
    Using Object.assign
    Using For-In loop
    Using For-In loop with hasOwnProperty

    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: 2 months ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 16_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/122.0.6261.62 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 122 on iOS 16.7
View result in a separate tab
Test name Executions per second
Using the spread operator 9263728.0 Ops/sec
Using Object.assign 3761126.0 Ops/sec
Using For-In loop 20671620.0 Ops/sec
Using For-In loop with hasOwnProperty 2368874.0 Ops/sec