HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.5/lodash.min.js'></script>
Tests:
  • lodash omit

     
    const a = { aa: 'oh', bb: 'my' };
    const b = _.omit(a, 'aa');
  • spread omit

     
    let a = { aa: 'oh', bb: 'my' };
    a = {...a, aa: undefined};
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash omit
    spread omit

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0
Firefox 105 on Linux
View result in a separate tab
Test name Executions per second
lodash omit 744297.2 Ops/sec
spread omit 12640192.0 Ops/sec