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", "entry4", "entry5", "entry6", "entry7", "entry8", "entry9", "entry10");
  • ES6 spread

     
    const {entry1, entry2, entry3, entry4, entry5, entry6, entry7, entry8, entry9, entry10, ...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: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.134 YaBrowser/22.7.0.1925 Yowser/2.5 Safari/537.36
Yandex Browser 22 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Lodash Omit 582.9 Ops/sec
ES6 spread 365.5 Ops/sec