Tests:
  • Object.assign

    AخA
     
    const obj = {hello:"world"};
    const newOne = Object.assign({}, obj);
  • Direct

     
    const obj = {hello:"world"};
    const newOne = {...obj};
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Object.assign
    Direct

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.87 Safari/537.36
Chrome 80 on Linux
View result in a separate tab
Test name Executions per second
Object.assign 4028175.8 Ops/sec
Direct 31352464.0 Ops/sec