Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
value == null 27861532.0 Ops/sec
value == undefined 9983249.0 Ops/sec
value === null 27793938.0 Ops/sec
value === undefined 10043756.0 Ops/sec
value === null || value === undefined 7348427.5 Ops/sec
_.isNil(value) 9675528.0 Ops/sec
value != null 27801500.0 Ops/sec
value != undefined 9934988.0 Ops/sec
value !== null 28411806.0 Ops/sec
value !== undefined 10208930.0 Ops/sec
value !== null && value !== undefined 7401903.5 Ops/sec
!_.isNil(value) 9789696.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)