HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Script Preparation code:
x
 
var n = 10000;
var o = {};
while (n) {
  o["entry"+ n] = true;
  n--;  
}
Tests:
  • Lodash Omit

     
    _.omit(o, "entry1", "entry2", "entry3", "entry4444", "entry5", "entry6", "entry7777", "entry8", "entry9999", "entry1000");
  • ES6 spread

     
    const {entry1, entry2, entry3, entry4444, entry5, entry6, entry7777, entry8, entry9999, entry1000, ...props} = o;
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Lodash Omit
    ES6 spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36
Chrome 91 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Lodash Omit 420.0 Ops/sec
ES6 spread 279.6 Ops/sec