Tests:
  • object destruct

    x
     
    const a  = {
      hello: "world",
      world: "hello"
    };
    const b = {...a, right: "wrong", wrong: "right"};
  • Object.assign

     
    const a  = {
      hello: "world",
      world: "hello"
    };
    const b = Object.assign({}, a, {right: "wrong", wrong: "right"});
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    object destruct
    Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.81 Safari/537.36 Edg/104.0.1293.54
Chrome 104 on Windows
View result in a separate tab
Test name Executions per second
object destruct 1115649.1 Ops/sec
Object.assign 4325169.5 Ops/sec