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
one month ago
Test name Executions per second
value == null 17657900.0 Ops/sec
value == undefined 9187159.0 Ops/sec
value === null 17693058.0 Ops/sec
value === undefined 9225183.0 Ops/sec
value === null || value === undefined 6271860.0 Ops/sec
_.isNil(value) 8997134.0 Ops/sec
value != null 17664070.0 Ops/sec
value != undefined 9238154.0 Ops/sec
value !== null 17717960.0 Ops/sec
value !== undefined 9283781.0 Ops/sec
value !== null && value !== undefined 6272924.0 Ops/sec
!_.isNil(value) 8987247.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)