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:
 
var foo;
Tests:
  • lodash.isUndefined

     
    if (_.isUndefined(foo)) {
      foo;
    }
  • Native js

     
    if (foo === undefined) {
      foo;
    }
  • simplify native js

     
    if (!foo) {
      foo;
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    lodash.isUndefined
    Native js
    simplify native js

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
lodash.isUndefined 1024398848.0 Ops/sec
Native js 1030928384.0 Ops/sec
simplify native js 1036307200.0 Ops/sec