Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
value == null 29609722.0 Ops/sec
value == undefined 10620312.0 Ops/sec
value === null 29603550.0 Ops/sec
value === undefined 10632321.0 Ops/sec
value === null || value === undefined 7867991.5 Ops/sec
_.isNil(value) 10203271.0 Ops/sec
value != null 29627434.0 Ops/sec
value != undefined 10613950.0 Ops/sec
value !== null 29361242.0 Ops/sec
value !== undefined 10581595.0 Ops/sec
value !== null && value !== undefined 7878495.0 Ops/sec
!_.isNil(value) 10188455.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)