Tests:
  • Spread wide then narrow

    AخA
     
    const wideObject = { one: "one", two: "two", three: "three", four: "four", five: "five", six: "six" }
    const narrowObject = { foo: "bar" }
    const finalObject = {
        ...wideObject,
        ...narrowObject
    };
  • Spread narrow then wide

     
    const wideObject = { one: "one", two: "two", three: "three", four: "four", five: "five", six: "six" }
    const narrowObject = { foo: "bar" }
    const finalObject = {
        ...narrowObject,
        ...wideObject
    };
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Spread wide then narrow
    Spread narrow then wide

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Linux; Android 10; JSN-L21) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96 on Android
View result in a separate tab
Test name Executions per second
Spread wide then narrow 364875.1 Ops/sec
Spread narrow then wide 86712.8 Ops/sec