Tests:
  • Object add new item

    AخA
     
    const obj = { one: 'val 1' }
    obj["two"] = "val 2"
    obj["three"] = "val 3"
    obj["four"] = "val 4"
  • Object spread

     
    let obj = { one: 'val 1' }
    obj = {...obj, two: 'val 2', three: 'val 3', four: 'val 4'}
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Object add new item
    Object spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
Chrome 70 on Linux
View result in a separate tab
Test name Executions per second
Object add new item 378073504.0 Ops/sec
Object spread 38753096.0 Ops/sec