Script Preparation code:
Tests:
  • Object.assign()

  • Spread

  • For-in (no hasOwnProperty check)

  • For-in (direct hasOwnProperty check)

  • For-in (indirect hasOwnProperty check)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.assign()
    Spread
    For-in (no hasOwnProperty check)
    For-in (direct hasOwnProperty check)
    For-in (indirect hasOwnProperty check)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; CrOS x86_64 13505.63.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
Chrome 87 on Chrome OS 13505.63.0
View result in a separate tab
Test name Executions per second
Object.assign() 908.7 Ops/sec
Spread 609.3 Ops/sec
For-in (no hasOwnProperty check) 821.5 Ops/sec
For-in (direct hasOwnProperty check) 647.1 Ops/sec
For-in (indirect hasOwnProperty check) 566.9 Ops/sec