Script Preparation code:
AخA
 
var obj = {
  a: { b: 1 },
  c: 'd',
  e: false
}
Tests:
  • delete

     
    var obj2 = { ...obj }; 
    delete obj2.c
  • rest

     
    const { c, ...obj2 } = obj;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    delete
    rest

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.50 Safari/537.36
Chrome 88 on Mac OS X 10.14.6
View result in a separate tab
Test name Executions per second
delete 2872778.2 Ops/sec
rest 2420622.2 Ops/sec