Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36
Chrome 128
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
value == null 26616356.0 Ops/sec
value == undefined 10097961.0 Ops/sec
value === null 27009758.0 Ops/sec
value === undefined 10261336.0 Ops/sec
value === null || value === undefined 7907437.0 Ops/sec
_.isNil(value) 10195274.0 Ops/sec
value != null 27558090.0 Ops/sec
value != undefined 10348250.0 Ops/sec
value !== null 27130788.0 Ops/sec
value !== undefined 10457872.0 Ops/sec
value !== null && value !== undefined 7864778.0 Ops/sec
!_.isNil(value) 10170217.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)


;