Script Preparation code:
Tests:
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

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
Using the spread operator
975K/s
Using Object.assign
487K/s
Using For-In loop
422K/s
Using For-In loop with hasOwnProperty
216K/s
View exact numbers
Test name Executions per second
Using the spread operator 974,726 Ops/sec
Using Object.assign 487,341 Ops/sec
Using For-In loop 421,982 Ops/sec
Using For-In loop with hasOwnProperty 216,233 Ops/sec