Script Preparation code:
AخA
 
const obj = {
    height: 500,
    width: 300,
    _dasgdsa: '321321',
    onActive: function() { return false; },
    onClick: function() {},
    hasKey: false,
    elementRef: { element: {}, children: [] },
    hint: 'bla-bla-bla',
    isEnabled: true,
    isVisible: true,
    className: 'box',
    addChild: function() { return true; },
    accKey: 'dasdadasdasd#132132121dsadaf#easedada',
};
Tests:
  • Delete

     
    const obj2 = { ...obj };
    ['height', 'width', '_dasgdsa', 'onActive', 'onClick', 'hasKey', 'elementRef', 'hint', 'isEnabled', 'isVisible'].forEach(prop => delete obj2[prop]);
  • Destructure

     
    const {
        height,
        width,
        _dasgdsa,
        onActive,
        onClick,
        hasKey,
        elementRef,
        hint,
        isEnabled,
        isVisible,
        ...obj2,
    } = obj;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Delete
    Destructure

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!