Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
22 days ago
Test name Executions per second
value == null 145920048.0 Ops/sec
value == undefined 128319120.0 Ops/sec
value === null 172606784.0 Ops/sec
value === undefined 135087568.0 Ops/sec
value === null || value === undefined 140347008.0 Ops/sec
_.isNil(value) 95623896.0 Ops/sec
value != null 137243712.0 Ops/sec
value != undefined 105818416.0 Ops/sec
value !== null 155923744.0 Ops/sec
value !== undefined 143549680.0 Ops/sec
value !== null && value !== undefined 139671616.0 Ops/sec
!_.isNil(value) 94629896.0 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)