Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Mac OS X 10.15.7
Desktop
5 months ago
Test name Executions per second
value == null 15617167.0 Ops/sec
value == undefined 5982489.0 Ops/sec
value === null 15890653.0 Ops/sec
value === undefined 5945591.5 Ops/sec
value === null || value === undefined 4578651.5 Ops/sec
_.isNil(value) 5821113.0 Ops/sec
value != null 15712769.0 Ops/sec
value != undefined 5970101.0 Ops/sec
value !== null 15706854.0 Ops/sec
value !== undefined 6034297.5 Ops/sec
value !== null && value !== undefined 4581183.0 Ops/sec
!_.isNil(value) 5798356.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)


;