Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Windows
Desktop
one year ago
Test name Executions per second
value == null 13642037.0 Ops/sec
value == undefined 4801687.0 Ops/sec
value === null 14455869.0 Ops/sec
value === undefined 4797041.0 Ops/sec
value === null || value === undefined 3688387.5 Ops/sec
_.isNil(value) 4400785.5 Ops/sec
value != null 14247587.0 Ops/sec
value != undefined 4895284.0 Ops/sec
value !== null 14221595.0 Ops/sec
value !== undefined 4826396.0 Ops/sec
value !== null && value !== undefined 2944752.5 Ops/sec
!_.isNil(value) 4639117.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)


;