Tests:
  • Using normal assignation

    AخA
     
    const canvas = {width: 300, height: 150};
    canvas.width = 1920;
    canvas.height = 1080;
  • Using Object.assign

     
    const canvas = {width: 300, height: 150};
    Object.assign(canvas, {width: 1920, height: 1080});
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Using normal assignation
    Using Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Linux; Android 11; Mi A3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106 on Android
View result in a separate tab
Test name Executions per second
Using normal assignation 371074336.0 Ops/sec
Using Object.assign 1332101.5 Ops/sec