Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0
Chrome 129
Windows
Desktop
2 months ago
Test name Executions per second
value == null 8044094.5 Ops/sec
value == undefined 3671204.0 Ops/sec
value === null 7909645.0 Ops/sec
value === undefined 3481470.8 Ops/sec
value === null || value === undefined 2866874.0 Ops/sec
_.isNil(value) 3320991.8 Ops/sec
value != null 8022801.0 Ops/sec
value != undefined 3709957.5 Ops/sec
value !== null 8152958.0 Ops/sec
value !== undefined 3647748.2 Ops/sec
value !== null && value !== undefined 2861175.5 Ops/sec
!_.isNil(value) 3244574.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)


;