HTML Preparation code:
AخA
 
1
<script src="//cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js"></script>
Script Preparation code:
 
var object = { 'a': 1, 'b': '2', 'c': 3 };
Tests:
  • Native object desctruction

     
    var { a, c, ...result2 } = object;
    return result2
  • Lodash omit

     
    return _.omit(object, ['a', 'c']);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Native object desctruction
    Lodash omit

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 17 days ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Native object desctruction 13299454.0 Ops/sec
Lodash omit 1099140.1 Ops/sec