Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36
Chrome 117
Linux
Desktop
one year ago
Test name Executions per second
value == null 21954472.0 Ops/sec
value == undefined 7313648.0 Ops/sec
value === null 22019338.0 Ops/sec
value === undefined 7354393.5 Ops/sec
value === null || value === undefined 5478713.0 Ops/sec
_.isNil(value) 6999298.5 Ops/sec
value != null 21946950.0 Ops/sec
value != undefined 7274785.0 Ops/sec
value !== null 21909034.0 Ops/sec
value !== undefined 7244341.0 Ops/sec
value !== null && value !== undefined 5424194.0 Ops/sec
!_.isNil(value) 7002932.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • value == null

  • value == undefined

  • value === null

  • value === undefined

  • value === null || value === undefined

  • _.isNil(value)

  • value != null

  • value != undefined

  • value !== null

  • value !== undefined

  • value !== null && value !== undefined

  • !_.isNil(value)