Script Preparation code:
Tests:
  • Object.assign two objects

  • Spread two objects

  • Object.assign three objects

  • Spread three objects

  • Object.assign four objects

  • Spread four objects

  • Object.assign five objects

  • Spread five objects

  • Object.assign six objects

  • Spread six objects

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Object.assign two objects
    Spread two objects
    Object.assign three objects
    Spread three objects
    Object.assign four objects
    Spread four objects
    Object.assign five objects
    Spread five objects
    Object.assign six objects
    Spread six objects

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Windows
View result in a separate tab
Test name Executions per second
Object.assign two objects 45603.3 Ops/sec
Spread two objects 60204.3 Ops/sec
Object.assign three objects 24654.2 Ops/sec
Spread three objects 37689.7 Ops/sec
Object.assign four objects 14489.7 Ops/sec
Spread four objects 26588.9 Ops/sec
Object.assign five objects 13137.5 Ops/sec
Spread five objects 20257.2 Ops/sec
Object.assign six objects 11985.4 Ops/sec
Spread six objects 14285.8 Ops/sec